Confirm Allocation β Reference
Looking up the confirm endpoint's validation order, a status mapping, or an error scenario. For the conceptual model, see Confirming a Payment Allocation (3DS). For the request/response walkthrough, see How to Confirm a Payment Allocation.
Validationβ
The endpoint performs the following checks in order. The first failure short-circuits and returns an error.
| Order | Check | Failure |
|---|---|---|
| 1 | Transaction exists | 404 Not Found |
| 2 | X-Merchant-Id matches the transaction's merchant | 403 Forbidden |
| 3 | Payment legs exist for the transaction | 404 Not Found |
| 4 | All payment legs belong to X-Merchant-Id | 403 Forbidden |
| 5 | No sibling allocation is in an abort state (FAILED, PAYMENT_METHOD_FAILED, CANCELED, CANCEL_INITIALIZED, CANCEL_FAILED) | 422 Unprocessable Entity |
| 6 | The target allocation ID exists within this transaction | 422 Unprocessable Entity |
| 7 | X-Checkout-Id matches the checkout ID stored in the allocation's metadata | 422 Unprocessable Entity |
| 8 | The allocation status is AUTH_REQUIRED or CONFIRMATION_REQUIRED | 422 Unprocessable Entity |
| 9 | Checkout session is active (not expired or in a terminal state) | 422 Unprocessable Entity |
If the checkout session expires before confirm is called, the request fails at check 9, returning 422. A new checkout session and payment must be initiated.
Status Handlingβ
Post-Confirm Status Progressionβ
| Allocation Status After Confirm | Meaning |
|---|---|
CONFIRMATION_INITIALIZED | Confirm accepted; processing with Stripe underway |
AUTHORIZED | Stripe confirms the PaymentIntent; awaiting capture |
COMPLETED | Allocation fully captured and complete |
FAILED | Confirmation processing failed at the processor |
Status Mapping Tableβ
The parent transaction's status reflects the lowest-ranked allocation status across all legs (i.e., the allocation that is furthest behind drives the parent). If one allocation has been confirmed but another still requires 3DS, the parent remains in AUTH_REQUIRED.
| Allocation 1 | Allocation 2 | Parent Status | Description |
|---|---|---|---|
β³ CONFIRMATION_INITIALIZED | β³ AUTH_REQUIRED | β³ AUTH_REQUIRED | One confirmed, one still pending 3DS |
β³ CONFIRMATION_INITIALIZED | β³ CONFIRMATION_INITIALIZED | β³ CONFIRMATION_INITIALIZED | Both confirmed, awaiting Stripe processing |
β
COMPLETED | β
COMPLETED | β
COMPLETED | Both complete β final state |
β FAILED | β³ CONFIRMATION_INITIALIZED | β FAILED | One failed β parent immediately reflects failure |
β PAYMENT_METHOD_FAILED | β³ AUTH_REQUIRED | β PAYMENT_METHOD_FAILED | Payment method failure β cancel proceeds; no need to wait for 3DS |
π ROLLED_BACK | β FAILED | β FAILED | Rollback complete β final state |
If one allocation's confirm fails after the other has already progressed, CCG automatically rolls back the successful allocation (cancellation) and the parent transaction moves to FAILED, as shown in the last row above.
Statusesβ
Merchants see abstracted statuses (AUTH_REQUIRED, COMPLETED, FAILED). Internally, CCG uses finer-grained statuses. The confirm call transitions a single allocation from AUTH_REQUIRED/CONFIRMATION_REQUIRED β CONFIRMATION_INITIALIZED.
AUTH_REQUIRED is a publishable split-payment status. When all allocations share AUTH_REQUIRED, CCG publishes a transaction event. Mixed statuses (e.g., one AUTH_REQUIRED, one CONFIRMATION_INITIALIZED) do not trigger an event publish β the transaction waits for all legs to align.
Internal Status Combinations After Confirm
| Allocation Internal Status | Merchant-Visible Status | Description |
|---|---|---|
AUTH_REQUIRED | AUTH_REQUIRED | 3DS challenge pending β no capture until resolved |
CONFIRMATION_REQUIRED | PENDING | 3DS complete; awaiting the customer-facing checkout application's confirm call |
CONFIRMATION_INITIALIZED | PENDING | Confirm accepted; awaiting Stripe processing |
AUTHORIZED | PENDING | Stripe PaymentIntent authorized (SALE flow) |
CAPTURE_INITIALIZED | PENDING | Capture in progress |
COMPLETED | COMPLETED | Captured β terminal |
FAILED | FAILED | Processing failed β terminal |
PAYMENT_METHOD_FAILED | FAILED | Payment method rejected β terminal; maps same as FAILED |
CANCEL_INITIALIZED | PENDING | Rollback initiated for sibling allocation |
CANCELED | CANCELED | Rolled back β terminal |
Error Handlingβ
Confirm-Specific Error Scenariosβ
| Scenario | HTTP Status | Description |
|---|---|---|
Missing X-Checkout-Id header | 400 | Required header not present in the request |
| Merchant mismatch | 403 | X-Merchant-Id does not own the transaction |
| Transaction not found | 404 | paymentId does not exist |
| Allocation not found | 422 | allocationId is not part of this transaction |
| Checkout ID mismatch | 422 | X-Checkout-Id does not match the checkout session in the allocation's metadata |
| Sibling allocation in abort state | 422 | A sibling is in FAILED, PAYMENT_METHOD_FAILED, CANCELED, CANCEL_INITIALIZED, or CANCEL_FAILED β completing 3DS would trigger an immediate rollback |
| Ineligible allocation status | 422 | Allocation is not in AUTH_REQUIRED or CONFIRMATION_REQUIRED |
| Checkout session invalid | 422 | Checkout session has expired, completed, or is agent-initiated |
If a split-tender allocation requires 3DS authentication during an agent-assisted session, the entire payment fails. Agents cannot complete 3DS challenges. The confirm endpoint will reject requests from agent checkout sessions.