Skip to main content

Start here

Use the Orders API to create new orders. Provide an external ID and line items.

Prepare data

Required fields:
  • Order external ID (example: ORDER-2026-0001)
  • Item external IDs (example: APPLE-001)
  • Quantities

Create the order

curl -X POST "https://api.sanka.com/v1/public/orders" \
  -H "Authorization: Bearer <access_token>" \
  -H "Content-Type: application/json" \
  -d '{
    "order": {
      "externalId": "ORDER-2026-0001",
      "companyExternalId": "ABC-COMPANY",
      "items": [
        {
          "itemExternalId": "APPLE-001",
          "quantity": 3,
          "price": 120
        }
      ]
    },
    "createMissingItems": false,
    "triggerWorkflows": true
  }'

Verify the result

On success, message is returned. Confirm the record via the list endpoint.
  • Bulk create: /v1/public/orders/bulk