Skip to main content

Request a manual refund (ops only)

POST 

/refunds

RequestRefund, the ops route. Automatic refunds come from the RefundOnLostPackage and RefundOnReturnToSender policies. The order must have an authorization (else 404). groupNo is optional: absent or 0 refunds at the order level. Refunds of an order (and of a group) never exceed the captured total (ErrOverRefund); FAILED refunds do not count. The provider is tried once in the same call: the answer is 201 with the refund SUCCEEDED, FAILED (provider decline, failureCode set) or still REQUESTED (provider unreachable; a policy retries it), never 503.

Request​

Responses​

The requested refund (REQUESTED, SUCCEEDED or FAILED after the one provider attempt).

Response Headers
    Idempotency-Replayed

    "true" when the answer is the stored response of an earlier request with the same Idempotency-Key; absent on the first execution.