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

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

Response

201
application/json

Successful response

The response is of type object.