As of May 10, 2019, JSON orders will return a new object called cancelReason. This object will return the reason filled by the user for the cancellation of an order.
Example of JSON with "cancel Reason":
- "cancelReason": "The customer bought the wrong product size"
The field value corresponds to the information filled in at the moment of cancellation of the order.
Main Advantages
The new field allows the ERP system to consume the information that was entered as justification for canceling an order. This field will soon be available in the report issued by the Order Management module.
What you need to do
It is imperative to review the integrations that use the Get Order APIs, such as ERP, for example. Those who are not prepared to receive the new answer need to be adjusted before April 30th, 2019.
To test this, you can use the beta route: https://{{accountName}}.vtexcommercebeta.com.br/api/oms/pvt/orders/{{orderId}}