POST
/
checkout-router

The Authorization needs to be in the following format:

Authorization: Token <YOUR_API_KEY>

Body

application/json
amount
integer
required

The total monetary value of the transaction.

business_id
integer
required

The identifier for the business.

card
object
required

Contains information related to the payment card used in the transaction.

description
string
required

A description of the transaction.

device_session_id
string
required

The identifier for the device session.

email_client
string
required

The email address of the client.

id_product
string
required

The identifier for the product.

id_ship
string
required

The identifier for the shipping information.

instance_id_ship
string
required

The instance identifier for the shipping information.

last_name
string
required

The last name of the client.

name
string
required

The first name of the client.

order_id
integer
required

An identifier or reference number for the order.

payment_id
integer
required

The identifier for the payment.

phone_number
string
required

The phone number of the client.

quantity_product
integer
required

The quantity of the product in the transaction.

return_url
string
required

The URL to which the user will be redirected after completing the transaction.

source
string
required

The source of the transaction.

title_ship
string
required

The title or type of shipping.

token_id
string

A token identifier associated with the transaction.

Response

201 - application/json
actions
object[]

An array of actions that can be performed for the transaction, each represented by an object with 'name', 'url', and 'method' properties.

message
string

A message providing additional information about the success or failure of the response.

next_action
object

Details about the next action required for the transaction. If not applicable, an empty object is provided.

payment_id
integer

The unique identifier for the payment associated with the transaction.

provider
string

The payment provider used for the transaction, e.g., 'stripe'.

psp_response
object

The response from the payment service provider (PSP) containing detailed information about the payment transaction.

status
string

The HTTP status code indicating the success or failure of the response.

transaction_id
integer

The unique identifier for the transaction.

transaction_status
string

The status of the transaction, e.g., 'Success'.