POST
/
business
/
{business}
/
payments
/

The Authorization needs to be in the following format:

Authorization: Token <YOUR_API_KEY>

This endpoint enables the creation of a new payment by using the unique identifier of a preexisting order.

Path Parameters

business
string
required

A business unique identifier.

Body

application/json
amount
number
required

The total monetary value associated with the order.

date
string
required

The timestamp representing the date and time of the order.

order
integer
required

The unique identifier number for the order.

Response

201 - application/json
pk
integer

The primary key or identifier associated with the payment.

order
integer

The unique identifier number associated with the order.

amount
string

The total monetary value of the order.

status
string

The current status of the order.

date
string

The timestamp indicating the date and time the payment was created.

paid_date
string

The timestamp indicating the date and time the order was paid, or null if not paid.

shipping_address
object

Details of the shipping address in the order.

shipping_address_id
integer

The identifier associated with the shipping address in the order.

billing_address
object

Details of the billing address in the order.

billing_address_id
string

The identifier associated with the billing address in the order.

client
string

The identifier or reference associated with the client or customer.

customer_order_reference
string

The customer's reference or identifier associated with the order.