How to change an OmniChat order status
API Order management
To change the order status in OmniChat, you must call the statusChange API as shown in the example below:
curl --location 'https://orders-api.omni.chat/v2/orders/{ORDER_ID}/statusChange' \
--header 'Bearer {{x-api-secret}}' \
--header 'Content-Type: application/json' \
--data '{
"responsible": "personResponsible",
"status": "ORDER_GATEWAY_PROVISIONED",
"message": "Pedido aprovisionado com sucesso!",
"orderGwId": "12345" // ID do pedido criado no ERP
}'
Note: You can use this api to update the order to the following statuses:
β’ ORDER_GATEWAY_PROVISIONED
β’ PACKAGED
β’ PARTIALLY_SHIPPED
β’ SHIPPED
β’ DELIVERED
β’ CANCELLED
Updated 14 days ago
Whatβs Next