Create order
Creates a new order for the current workspace.
POST
/api/ordersCreates a new order for the current workspace.
Request Body
application/json
Request payload for Create order.
customerId?|
Customer identifier to associate with the new order.
customerMembershipId?|
Selected customer contact membership for the order.
items*array<|||||>
Initial order items to persist with the new order.
Example
[
{
"id": "item_123",
"type": "product",
"name": "Industrial Pump",
"productId": "prod_123",
"quantity": 2,
"price": 12990,
"originalPrice": {
"priceListId": "pl_retail",
"price": 12990,
"currency": "CLP",
"timestamp": "2026-03-11T10:15:00.000Z"
},
"taxes": [
{
"name": "VAT",
"rate": 19,
"type": "VAT",
"calculation": "exclusive"
}
],
"baseUnit": {
"type": "base",
"code": "unit",
"name": "Unit",
"dimension": "count",
"step": 1
}
}
]currencyCode?|
Currency code.
customFields?|
Custom field values for the new order.
isFromDuplication?|
Whether this creation originated from duplicating another order.
[key: string]?never
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json