Cancel Order
An existing order can be cancelled individually using the following API call:
-
Cancellation Endpoint:
DELETErequest to api endpoint-/order/:orderNumber. Example: To cancel an order withorderNumber: sf123, the cancellation endpoint will be/order/sf123. -
Payload: Reason for cancelling the order must be provided in the request body in a
reasonkey. -
Response: A response with status code
200will be received if the order cancellation is confirmed.
Eligibility
An order is eligible for cancellation according to the below criteria:
-
Payment status: Order must be in
BalanceDuepayment status. If transaction for the order is complete, it cannot be cancelled. -
Order status: Orders in
ShippedorPrinting in Progresspayment status cannot be cancelled. -
Line Item status: Line Items must be in
Initial,WaitingForArtwork,DocReviewInProgress,DocReviewRejected,DocReviewCancelled,FulfillmentRejectedstates.