Skip to main content

Authorize a return (AuthorizeReturn)

POST 

/return-authorizations

Authorizes one order group's return and publishes ReturnAuthorized. The group must be SHIPPED or DELIVERED (group-not-shipped otherwise); the lines are resolved against the placed group (validation-failed on an unknown lineNo) and the disposition is decided from the read models. A repeat of the same key and body replays the first answer when it was the 201. A refusal that depends on state that can change (group-not-shipped, no-return-destination, validation-failed, concurrent-update) is not stored -- the key is released and the same key and body executes again.

Request​

Responses​

The authorization, decided and stored.

Response Headers
    Idempotency-Replayed

    Set to the literal true when this response was replayed from the idempotency store; absent otherwise.