Checking access…

Skip to main content
Audience: CCG Platform Engineers

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.

OrderCheckFailure
1Transaction exists404 Not Found
2X-Merchant-Id matches the transaction's merchant403 Forbidden
3Payment legs exist for the transaction404 Not Found
4All payment legs belong to X-Merchant-Id403 Forbidden
5No sibling allocation is in an abort state (FAILED, PAYMENT_METHOD_FAILED, CANCELED, CANCEL_INITIALIZED, CANCEL_FAILED)422 Unprocessable Entity
6The target allocation ID exists within this transaction422 Unprocessable Entity
7X-Checkout-Id matches the checkout ID stored in the allocation's metadata422 Unprocessable Entity
8The allocation status is AUTH_REQUIRED or CONFIRMATION_REQUIRED422 Unprocessable Entity
9Checkout 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 ConfirmMeaning
CONFIRMATION_INITIALIZEDConfirm accepted; processing with Stripe underway
AUTHORIZEDStripe confirms the PaymentIntent; awaiting capture
COMPLETEDAllocation fully captured and complete
FAILEDConfirmation 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 1Allocation 2Parent StatusDescription
⏳ CONFIRMATION_INITIALIZED⏳ AUTH_REQUIRED⏳ AUTH_REQUIREDOne confirmed, one still pending 3DS
⏳ CONFIRMATION_INITIALIZED⏳ CONFIRMATION_INITIALIZED⏳ CONFIRMATION_INITIALIZEDBoth confirmed, awaiting Stripe processing
βœ… COMPLETEDβœ… COMPLETEDβœ… COMPLETEDBoth complete β€” final state
❌ FAILED⏳ CONFIRMATION_INITIALIZED❌ FAILEDOne failed β€” parent immediately reflects failure
❌ PAYMENT_METHOD_FAILED⏳ AUTH_REQUIRED❌ PAYMENT_METHOD_FAILEDPayment method failure β€” cancel proceeds; no need to wait for 3DS
πŸ”„ ROLLED_BACK❌ FAILED❌ FAILEDRollback 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 StatusMerchant-Visible StatusDescription
AUTH_REQUIREDAUTH_REQUIRED3DS challenge pending β€” no capture until resolved
CONFIRMATION_REQUIREDPENDING3DS complete; awaiting the customer-facing checkout application's confirm call
CONFIRMATION_INITIALIZEDPENDINGConfirm accepted; awaiting Stripe processing
AUTHORIZEDPENDINGStripe PaymentIntent authorized (SALE flow)
CAPTURE_INITIALIZEDPENDINGCapture in progress
COMPLETEDCOMPLETEDCaptured β€” terminal
FAILEDFAILEDProcessing failed β€” terminal
PAYMENT_METHOD_FAILEDFAILEDPayment method rejected β€” terminal; maps same as FAILED
CANCEL_INITIALIZEDPENDINGRollback initiated for sibling allocation
CANCELEDCANCELEDRolled back β€” terminal

Error Handling​

Confirm-Specific Error Scenarios​

ScenarioHTTP StatusDescription
Missing X-Checkout-Id header400Required header not present in the request
Merchant mismatch403X-Merchant-Id does not own the transaction
Transaction not found404paymentId does not exist
Allocation not found422allocationId is not part of this transaction
Checkout ID mismatch422X-Checkout-Id does not match the checkout session in the allocation's metadata
Sibling allocation in abort state422A sibling is in FAILED, PAYMENT_METHOD_FAILED, CANCELED, CANCEL_INITIALIZED, or CANCEL_FAILED β€” completing 3DS would trigger an immediate rollback
Ineligible allocation status422Allocation is not in AUTH_REQUIRED or CONFIRMATION_REQUIRED
Checkout session invalid422Checkout session has expired, completed, or is agent-initiated
3DS in Agent Sessions

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.