/fizenPay/createTransactionGenerate Domestic Transaction
This endpoint allows to init payment process via Fizen Pay service. Initiating the payment process, it is necessary to provide some key information about the payment as well as information for subsequent payment processing like userId, callback address. You must also specify recipient data like recipientName, recipientAddress, recipientAccountNumber.
Only one expiration parameter can be used: either days or minutes. Providing both at the same time is not allowed.
For corporate accounts, certain banks require additional information.
Corporate Bank Accounts:
- For Paribas and Credit Agricole corporate accounts, the parameter
nipis required. This represents the company's tax identification number (NIP).
Treść żądania
| Pole | Typ | Opis |
|---|---|---|
transferTitlewymagany | string | A unique identifier or reference for the transfer, such as an order number. |
amountwymagany | string | The amount to be transferred, formatted as a string (e.g., "420.69"). |
userIdwymagany | string | The unique identifier associated with the user initiating the transfer (e.g., "USER_69420"). |
callbackSuccesswymagany | string | The callback URL for a successful transaction. |
callbackFailurewymagany | string | The callback URL for a failed transaction. |
recipientNameopcjonalny | string | The name of the recipient. |
recipientAddressopcjonalny | string | The address of the recipient. |
recipientAccountNumberopcjonalny | string | The account number of the recipient. |
nipopcjonalny | string | **Required for corporate accounts at Paribas and Credit Agricole.** The company's tax identification number (NIP). |
linkExpirationDaysopcjonalny | integer | The number of days the link remains valid, after which the link expires. |
linkExpirationMinutesopcjonalny | integer | The number of minutes the link remains valid, after which the link expires. |
Odpowiedzi
- 200OK
- 400Bad Request
- 401Not Found
- 500Internal Server Error
curl -X POST 'https://api.sandbox.fizen.com/fizenPay/createTransaction' \ -H 'apiKey: [apiKey]' \ -H 'token: [token]' \ -H 'Content-Type: application/json' \ -d '{ "transferTitle": "", "amount": "", "userId": "", "callbackSuccess": "", "callbackFailure": "", "recipientName": "", "recipientAddress": "", "recipientAccountNumber": "", "nip": "1234567890", "linkExpirationDays": 3, "linkExpirationMinutes": 25}'{ "transferTitle": "", "amount": "", "userId": "", "callbackSuccess": "", "callbackFailure": "", "recipientName": "", "recipientAddress": "", "recipientAccountNumber": "", "nip": "1234567890", "linkExpirationDays": 3, "linkExpirationMinutes": 25}"https://sandbox.fizen.com/secure.fizenpay?transactionId=a91a47b4"