Recerc

Create order

Creates a new order for the current workspace.

POST/api/unstable/orders

Creates a new order for the current workspace.

Request Body

application/json

customerId?string

Customer identifier to associate with the new order.

Example"cust_123"
customerMembershipId?string

Selected customer contact membership for the order.

Example"cm_123"
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?string

Currency code to use for the new order.

Length1 <= length
Example"CLP"
customFields?

Custom field values for the new order.

Example{ "requested_delivery_date": "2026-03-20" }
isFromDuplication?boolean

Whether this creation originated from duplicating another order.

Examplefalse
[key: string]?never

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json