Authorizations
One PaymentAuthorization per checkout session, with allocations per shipment group.
Authorize the quote total of a checkout session
AuthorizePayment. One authorization per checkout session (ErrDuplicateAuthorization; a replay with the same Idempotency-Key returns the existing one; so does a new key while the session holds a live authorization, answered 200 instead of 201). checkout calls this with key <sessionId>:auth and one allocation per shipment group (1 to 50, distinct groupNo); allocations must sum to the authorized total (ErrAllocationMismatch). On a provider decline the record is DECLINED (terminal, 201 with declineReason) and the checkout session stays open for another token.
List authorizations by order or checkout session
ListAuthorizations. Exactly one of orderId or checkoutSessionId is required (none or both is 422 validation-failed). Keyset-paged, oldest first (createdAt, authorizationId): follow nextCursor until it is absent and repeat the filter on every page request.
Get one authorization with its allocations
GetAuthorization.
Void an uncaptured authorization
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.