Void an uncaptured authorization
POST/payment-authorizations/:authorizationId/voids
VoidAuthorization. checkout calls this with key <sessionId>:void, and only after a definitive rejection of the place-order step (never while the outcome is in doubt; that side is guarded by checkout's ErrPlacementInDoubt). VoidUnboundAuthorizations also voids an authorization that no CheckoutCompleted bound within 24 h.
Request
Responses
- 200
- 400
- 404
- 409
- 422
- 500
- 503
The voided authorization.
Response Headers
"true" when the answer is the stored response of an earlier request with the same Idempotency-Key; absent on the first execution.
idempotency-key-required (no Idempotency-Key header), idempotency-key-invalid (not 1 to 128 printable ASCII characters) or malformed-request.
not-found (no such resource, or an identifier longer than 128 characters); not stored on a write; the order of a refund may be bound a moment later, so the key is released and the same Idempotency-Key runs again. resource-not-found for a path that carries a NUL character.
illegal-transition (already captured, voided or expired) or concurrent-update; neither is stored, the key is released and the same Idempotency-Key runs again. Or idempotency-key-reused (the Idempotency-Key was already used with a different request).
payment-declined (the provider refused the void). Not stored; the key is released and the same Idempotency-Key asks the provider again, which answers from its own record.
internal-error (an unexpected failure; the detail never carries the internal message).
payment-provider unreachable or timed out (payment-provider-unavailable). Retry with the same Idempotency-Key.