Create alternative payment
POST /api/alternative-payments/v1/create
Creates alternative payment
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”object
Available providers where the payment can be created.
PLN value is required if customer.payment_method.type is blik, blik_paylater, leasing.
Order description can have from 1 to 256 characters.
Products are required if provider value is one of the following: santander.
object
Maximum length is about 2048 characters.
object
Required if payment_method.type is blik or blik_paylater.
Required if payment_method.type is blik or blik_paylater.
Required if payment_method.type is leasing.
Required if payment_method.type is blik or blik_paylater.
Required if payment_method.type is blik, blik_paylater, leasing.
object
object
Blik code - 6 digits
The field is required if provider value (from request root) is one of the following: imoje, leaselink.
Responses
Section titled “ Responses ”object
Internal operation id
External id
Unified id
object
Possible status codes grouped by status:
| Status | Status Code | Description |
|---|---|---|
| success | transaction_successful | Transaction successful. |
| success | contract_was_signed_on_client_side | The contract was signed on the client side. |
| success | refund_successful | Refund successful. |
| pending | pending | Pending. |
| failure | failed_to_create_transaction | Failed to create transaction. |
| failure | internal_error | Internal error. |
| failure | transaction_not_found | Transaction not found. |
| failure | wrong_cooperation_type | Wrong cooperation type. |
| failure | transaction_rejected | Transaction rejected. |
| pending | waiting_for_redirect | Waiting for redirect. |
| pending | confirmation_required | Confirmation required. |
| failure | order_expired | Order expired. |
| failure | transaction_declined | Transaction declined. |
| failure | user_not_found | User not found. |
| failure | insufficient_funds | Insufficient funds. |
| failure | transaction_is_canceled_by_payer | Transaction is canceled by payer. |
| failure | transaction_limit_exceeded | Transaction limit exceeded. |
| failure | transaction_not_supported | Transaction not supported. |
| failure | wrong_payment_count | Wrong number of payment count. |
| failure | wrong_installment_period | Wrong installment period. |
| failure | banking_application_is_not_installed | Banking application is not installed. |
| failure | bank_is_not_supported | The bank is not supported. |
| failure | invalid_phone_number | Invalid phone number. |
| failure | simultaneous_open_orders_not_supported_by_bank | Simultaneous open orders are not supported by the bank. |
| failure | transaction_amount_limit | Transaction amount limit. |
| failure | finmon_validation_failed | Finmon validation failed. |
| failure | insufficient_funds_for_refund | Insufficient funds on account for refund. |
Object which contains information about required post-request action. Will be null if action not required.
object
Action value. Usually it’s a checkout url or 3ds verification url.