Skip to main content

Invalidate a retail order

POST 

/retail_orders/:id/actions/invalidate

note

This endpoint is a work in progress and may change before being stabilized.

Invalidate a previously created retail order. This action marks the order as invalid and prevents any further processing or fulfillment.

Use this endpoint when you need to invalidate an order that has not yet been completed or shortly after completion depending on the product to correct for user or technical issues.

Note: Once an order is invalidated, it cannot be reactivated or processed again. A new order needs to be created.

Request

Responses

Retail order invalidated successfully

Error Codes

HTTP StatusClassCodeDescription
404not_foundentity_not_foundEntity not found
400invalid_stateorder_processingThe order is still processing and cannot be invalidated
400invalid_stateorder_invalidatedThe order has already been invalidated
400invalid_stateorder_failedThe order already failed
400invalid_stateorder_invalidation_period_expiredThe order invalidation period has expired