Skip to main content
POST
/
orders
Create a new order
curl --request POST \
  --url https://api.scaas.ai/orders \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ref": "<string>",
  "warehouse": "<string>",
  "servicelevel": "<string>",
  "items": [
    {
      "item": "<string>",
      "quantity": 123,
      "configuration": "<string>"
    }
  ]
}
'
{
  "order_id": 123,
  "status": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
ref
string
warehouse
string
servicelevel
string
items
object[]

Response

201 - application/json

Order created

order_id
integer
status
string