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 about 1 year ago