Skip to main content
POST
/
v1
/
public
/
orders
/
bulk
Bulk Create Orders
curl --request POST \
  --url https://api.sanka.com/v1/public/orders/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "orders": [
    {
      "externalId": "<string>",
      "items": [
        {
          "item_id": "<string>",
          "itemExternalId": "<string>",
          "quantity": 1,
          "price": 123,
          "tax": 123,
          "tax_rate": 123
        }
      ],
      "companyId": "<string>",
      "companyExternalId": "<string>",
      "orderAt": "<string>",
      "deliveryStatus": "<string>"
    }
  ],
  "createMissingItems": false,
  "triggerWorkflows": true
}
'
{
  "ok": true,
  "results": [
    {
      "external_id": "<string>",
      "status": "<string>",
      "order_id": "<string>",
      "errors": [
        "<string>"
      ]
    }
  ],
  "job_id": "<string>",
  "ctx_id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
orders
BulkOrderIn · object[]
required
createMissingItems
boolean
default:false
triggerWorkflows
boolean
default:true

Response

OK

ok
boolean
required
results
BulkOrderResult · object[] | null
job_id
string | null
ctx_id
string | null