Skip to main content

Confirm the session with a payment method token

POST 

/checkout-sessions/:sessionId/confirmations

ConfirmSession with the PSP payment method token (never a card number). AUTHORIZING calls customer-payments POST /payment-authorizations (key <sessionId>:auth:<attempt>, the attempt counter grows on every retry after a decline; allocations per group); the authorized amount must equal the quote total (ErrAuthorizationMismatch). PLACING persists the placement request and calls customer-ordering POST /checkout with Idempotency-Key equal to the sessionId. Outcomes: 200 with the session in a definitive state (COMPLETED, DECLINED, REQUOTE_REQUIRED with requotedOffers after a successful void, or FAILED after a void plus an alert for a contract bug); 202 while the place-order outcome is unknown (the session stays PLACING; poll GET /checkout-sessions/{sessionId}). A DECLINED session may be confirmed again with another token while the price quote is valid.

Request​

Responses​

The session in a definitive state (COMPLETED, DECLINED, REQUOTE_REQUIRED or FAILED).

Response Headers
    Idempotency-Replayed

    Set to true on a replay of a stored answer (a retry carrying the same Idempotency-Key, method, path and body), and only on a replay: the first execution of a key never carries it.