POST
/
checkout-router
/

The Authorization needs to be in the following format:

Authorization: Token <YOUR_API_KEY>

Body

application/json
card
object
required

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

name
string
required

The first name of the client.

last_name
string
required

The last name of the client.

email_client
string
required

The email address of the client.

phone_number
string
required

The phone number of the client.

return_url
string
required

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

id_product
string
required

The identifier for the product.

quantity_product
integer
required

The quantity of the product in the transaction.

id_ship
string
required

The identifier for the shipping information.

instance_id_ship
string
required

The instance identifier for the shipping information.

amount
integer
required

The total monetary value of the transaction.

title_ship
string
required

The title or type of shipping.

description
string
required

A description of the transaction.

device_session_id
string
required

The identifier for the device session.

token_id
string

A token identifier associated with the transaction.

order_id
integer
required

An identifier or reference number for the order.

business_id
integer
required

The identifier for the business.

payment_id
integer
required

The identifier for the payment.

source
string
required

The source of the transaction.

Response

201 - application/json
status
string

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

message
string

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

psp_response
object

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

transaction_status
string

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

transaction_id
integer

The unique identifier for the transaction.

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'.

next_action
object

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

actions
object[]

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