POST
/
orders
/
curl --request POST \
  --url https://stage.tonder.io/api/v1/orders/ \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": 123,
  "billing_address_id": "null",
  "business": "<YOUR_API_KEY>",
  "client": "<YOUR_CLIENT_AUTH_TOKEN>",
  "is_oneclick": true,
  "items": [
    {
      "amount_total": 123,
      "description": "<string>",
      "discount": 123,
      "name": "<string>",
      "price_unit": 123,
      "product_reference": 123,
      "quantity": 123,
      "taxes": 123
    }
  ],
  "reference": "<string>",
  "shipping_address_id": "null",
  "status": "<string>"
}'
{
  "amount": "1200.0000",
  "billing_address": "<string>",
  "client": {
    "client_profile": {
      "date_birth": "null",
      "gender": "<string>",
      "phone": "<string>",
      "terms": true
    },
    "email": "pruebas@sdk.com",
    "first_name": "<string>",
    "last_name": "<string>",
    "name": "<string>"
  },
  "created": "2024-01-18T10:09:36.499975-06:00",
  "id": 5910,
  "is_oneclick": true,
  "items": [
    {
      "amount_total": "1200.0000",
      "description": "description test",
      "discount": "0.0000",
      "price_unit": "1.0000",
      "product_reference": "1",
      "quantity": "1.0000",
      "taxes": "0.0000"
    }
  ],
  "payment_method": "null",
  "reference": "1234556",
  "shipping_address": "<string>",
  "status": "Activa"
}

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
amount
integer
required

The total monetary value of the transaction.

billing_address_id
string

The identifier for the billing address.

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

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.

reference
string
required

A unique identifier or reference number associated with the transaction.

shipping_address_id
string

The identifier for the shipping address.

status
string
required

A code indicating the status of the transaction.

Response

201 - application/json
amount
string

The total monetary value of the order.

billing_address
string

The billing address information in the order.

client
object

Contains information about the client.

created
string

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

id
integer

An identifier 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.

payment_method
string

The payment method used in the order.

reference
string

A unique identifier or reference number associated with the order.

shipping_address
string

The shipping address information in the order.

status
string

The status of the order.