Skip to main content
POST

Overview

Asks to cancel an order. Accepted (202) as a request: cancellation is not guaranteed once the mail has been submitted for printing. Read the order to see whether it was canceled and refunded. Free. An order not yet submitted is canceled at once. A submitted one is canceled only if the request reaches production before cancel_before, which is an estimate. A confirmed cancellation refunds the full amount, service fee included, as credits, once. Cancelling an order that is already canceled or failed returns the order unchanged.

Authentication

X-Agent-ID plus a signed x-agent-proof with scope: "write", or an access token. See proof authentication. 60 requests a minute per agent.

Path Parameters

string
required
Order ID from Send
No request body.

Response

202 with the order as it stands right after the request. Its fields are listed on Get an order. cancellation_requested is true. An order not yet submitted comes back canceled at once; a submitted one stays accepted until the request is confirmed, and refunded_at is set when the refund is credited.