POST
/
orders
/

The Authorization needs to be in the following format:

Authorization: Token <YOUR_API_KEY>

This endpoint enables the creation of new orders by adding an existing customer using their unique identifier.

Body

application/json
business
string
default: <YOUR_API_KEY>required

Your Tonder API Key. You can retrieve it from the dashboard.

client
string
default: <YOUR_CLIENT_AUTH_TOKEN>required

The client authorization token: auth_token

billing_address_id
string

The identifier for the billing address.

shipping_address_id
string

The identifier for the shipping address.

amount
integer
required

The total monetary value of the transaction.

status
string
required

A code indicating the status of the transaction.

reference
string
required

A unique identifier or reference number associated with the transaction.

is_oneclick
boolean
required

A boolean value indicating whether the transaction involves a one-click purchase.

items
object[]
required

An array containing details about the items included in the transaction.

Response

201 - application/json
id
integer

An identifier associated with the order.

created
string

The timestamp indicating the creation date and time of the order.

amount
string

The total monetary value of the order.

status
string

The status of the order.

payment_method
string

The payment method used in the order.

reference
string

A unique identifier or reference number associated with the order.

is_oneclick
boolean

A boolean value indicating whether the order involves a one-click purchase.

items
object[]

An array containing details about the items included in the order.

billing_address
string

The billing address information in the order.

shipping_address
string

The shipping address information in the order.

client
object

Contains information about the client.