How to implement the "OrderCancel" API
API Order management
Like the OrderProvisioning api, this one is also asynchronous, however it must carry out the relevant processes to cancel the order, and change its status to “CANCELLED”. For this, you can make the call as in the example below:
curl --location 'https://orders-api.omni.chat/v2/orders/{ORDER_ID}/statusChange' \
--header x-api-key:exemplodeapikey2014 \
--header x-api-secret:r:exemplodeapisecret2014 \
--header 'Content-Type: application/json' \
--data '{
"responsible": "personResponsible",
"status": "CANCELLED",
"message": "Motivo do cancelamento"
}'
Updated over 1 year ago
What’s Next