curl --request POST \
--url 'https://api.stateset.com/api/v1/orders' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"billing_address": null,
"currency": null,
"customer_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"items": [
{
"discount": null,
"name": "string",
"product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"quantity": 1,
"sku": "string",
"tax_amount": null,
"unit_price": "string",
"variant_id": null
}
],
"notes": null,
"payment_method": null,
"shipping_address": null,
"shipping_method": null
}'
{
"created_at": "2026-07-24T12:00:00Z",
"currency": "string",
"customer_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"fulfillment_status": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"items": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"quantity": 1,
"sku": "string",
"total": "string",
"unit_price": "string"
}
],
"order_number": "string",
"payment_status": "string",
"status": "string",
"total_amount": "string",
"updated_at": "2026-07-24T12:00:00Z"
}
`POST /api/v1/orders`
POST /api/v1/orders
POST
/
api
/
v1
/
orders
curl --request POST \
--url 'https://api.stateset.com/api/v1/orders' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"billing_address": null,
"currency": null,
"customer_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"items": [
{
"discount": null,
"name": "string",
"product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"quantity": 1,
"sku": "string",
"tax_amount": null,
"unit_price": "string",
"variant_id": null
}
],
"notes": null,
"payment_method": null,
"shipping_address": null,
"shipping_method": null
}'
{
"created_at": "2026-07-24T12:00:00Z",
"currency": "string",
"customer_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"fulfillment_status": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"items": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"quantity": 1,
"sku": "string",
"total": "string",
"unit_price": "string"
}
],
"order_number": "string",
"payment_status": "string",
"status": "string",
"total_amount": "string",
"updated_at": "2026-07-24T12:00:00Z"
}
Request body
CreateOrderRequest
object
string,null
ISO currency code (default: USD).
string (uuid)
required
The customer placing the order.
CreateOrderItemRequest[]
required
Line items for the order.
string,null
Optional notes.
string,null
Payment method identifier.
object
string,null
Shipping method identifier.
Responses
OrderResponse
Order created
ErrorBody
Invalid request
ErrorBody
Idempotency-Key reused with a different body
ErrorBody
Idempotency-Key header required on this endpoint (configurable)
curl --request POST \
--url 'https://api.stateset.com/api/v1/orders' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"billing_address": null,
"currency": null,
"customer_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"items": [
{
"discount": null,
"name": "string",
"product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"quantity": 1,
"sku": "string",
"tax_amount": null,
"unit_price": "string",
"variant_id": null
}
],
"notes": null,
"payment_method": null,
"shipping_address": null,
"shipping_method": null
}'
{
"created_at": "2026-07-24T12:00:00Z",
"currency": "string",
"customer_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"fulfillment_status": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"items": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"quantity": 1,
"sku": "string",
"total": "string",
"unit_price": "string"
}
],
"order_number": "string",
"payment_status": "string",
"status": "string",
"total_amount": "string",
"updated_at": "2026-07-24T12:00:00Z"
}
โI