Skip to main content
POST
/
v1
/
orders
/
test
Create test order
curl --request POST \
  --url http://localhost:3000/v1/orders/test \
  --header 'Content-Type: application/json' \
  --data '
{
  "items": [
    {
      "sellable_product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "quantity": 2
    }
  ],
  "customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "notes": "<string>"
}
'
{
  "success": true,
  "order": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "order_number": "<string>",
    "status": "<string>",
    "total_amount": 123,
    "item_count": 123
  }
}

Body

application/json
items
object[]
required
Minimum array length: 1
customer_id
string<uuid>
notes
string

Response

201 - application/json

Test order created

success
boolean
required
order
object
required