Cancellation Request Created
This event is triggered when an order cancellation request is first created. The event will have a topic oforder.cancellationrequest.created.
When a cancellation request is created, the status will always be pending.
orderId
The unique identifier for the order.
poNumber
Purchase order number associated with this order. Defined by the person that placed the order. Is null when not available.
status
The current status of the cancellation request. Will be one of:
Pending- The cancellation request is awaiting reviewApproved- The cancellation request was approved and the order has been cancelledDenied- The cancellation request was denied and the order continues processing
reason
The reason provided for the cancellation request.
createdAt
The timestamp when the cancellation request was created in ISO 8601 format.
updatedAt
The timestamp when the cancellation request was last updated in ISO 8601 format.
Example payload
Cancellation Request Updated
This event is triggered when an order cancellation request status changes. The event will have a topic oforder.cancellationrequest.updated.
This event fires when:
- A pending cancellation request is approved (status changes to
Approved) - A pending cancellation request is denied (status changes to
Denied) - A cancellation request status changes back to pending (status changes to
Pending)
pending status. Use order.cancellationrequest.created for that. The .updated event only fires for subsequent status changes.
Fields
All fields are the same asorder.cancellationrequest.created.
status
For the .updated event, status will be one of:
Pending- The cancellation request status changed back to pendingApproved- The cancellation request was approved and the order has been cancelledDenied- The cancellation request was denied and the order continues processing