All documentation

Objects and enums

The order payload, its field names, and every value the status field can hold.

Field naming

Writes accept camelCase or snake_case (clientName and client_name are both read). Reads always return snake_case, matching the underlying column names. Normalize on your side rather than assuming the casing you sent comes back.

Order

FieldTypeNotes
iduuidServer generated. Your handle for every later read.
workspace_iduuidServer generated from the session. Ignored if you send it.
client_namestringRequired on create. Max 120 chars.
phonestringRequired on create. Stored as +212XXXXXXXXX.
store_namestringRequired on create. Max 120 chars.
products_namestringRequired on create. Max 500 chars.
addressstring | nullOptional. Max 250 chars. Send "" to clear.
statusenumDefaults to pending. See values below.
operation_iduuid | nullThe conversation attached at create time.
created_attimestamptzISO 8601, UTC.

status

Any other value is rejected with 400. Treat unknown values as non-terminal if you pin this list in your code.

pendingprocessingcallingconfirmedunconfirmedfailedno-answerpostponedorder-changedunrecognized

Status lifecycle

Group these into your own states rather than branching on all ten.

GroupValuesMeaning for your integration
In flightpending, processing, callingKeep polling. Do not act.
Shippableconfirmed, order-changedorder-changed means the customer altered quantity, product, or address. Read the operation before fulfilling.
Not shippableunconfirmed, no-answer, failed, unrecognizedTerminal without a confirmation.
DeferredpostponedThe customer asked to be contacted later. Will be retried.

Operations

An operation is the conversation attached to an order: the call or chat, its transcript, its duration, and its outcome. Creating an order attaches one pending outbound operation assigned to the order handler agent, and links it back through orders.operation_id. Operations are not yet exposed as an endpoint; transcripts are readable in the dashboard only.

Mutability

status can be changed at any point in the order's life. The content fields (client_name, phone, store_name, products_name, address) are only writable while the order is still pending, because after an agent starts calling, editing them would break the record of what was actually confirmed.