How to Make a Split-Tender Payment
Platform engineers implementing or debugging the actual two-card request/response cycle, including the rolled-back-allocation response shape. For the conceptual model (rollback, 3DS, comparison to single payment), see Split-Tender Payment Flow. For validation rules and internal status tables, see Split-Tender Payment β Reference.
API Requestβ
Sample Request β Split-Tender (2 Cards)
curl -X POST "https://api-stg.uhg.com/api/financial/commerce/nonprodcheckout/v2/payments" \
-H "Authorization: Bearer <token>" \
-H "X-Merchant-Id: b955db5e-aef2-47de-bbb9-c80b9cc16e8f" \
-H "X-Upstream-Env: dev" \
-H "Content-Type: application/json" \
-d '{
"merchantTransactionId": "split-20260404-001",
"amount": 20000,
"currencyCode": "USD",
"authorizeCard": false,
"partialAuthorization": false,
"customer": {
"hsid": "b313c1d1-b5b6-4ec7-8b5a-3a9cf7755060"
},
"paymentAllocations": [
{
"amount": 12000,
"paymentMethodId": "b0b3c48d-4cf6-404a-a554-e14640a51c5b"
},
{
"amount": 8000,
"paymentMethodId": "c1d4e5f6-7890-1234-5678-90abcdef1234"
}
],
"metadata": {
"orderId": "split-order-789"
}
}'
API Response β Both Succeed (GET 200)β
{
"url": "https://api-stg.uhg.com/.../v2/payments/660e8400-e29b-41d4-a716-446655440000",
"data": {
"id": "660e8400-e29b-41d4-a716-446655440000",
"merchantTransactionId": "split-20260404-001",
"amount": 20000,
"authorizedAmount": 20000,
"capturedAmount": 20000,
"currencyCode": "USD",
"status": "COMPLETED",
"paymentAllocations": [
{
"id": "aaaa1111-2222-3333-4444-555566667777",
"amount": 12000,
"authorizedAmount": 12000,
"capturedAmount": 12000,
"status": "COMPLETED",
"paymentMethod": {
"id": "b0b3c48d-4cf6-404a-a554-e14640a51c5b",
"type": "CARD",
"card": { "lastFour": "4242", "brand": "visa", "expMonth": 12, "expYear": 2028 }
},
"vendor": { "name": "STRIPE", "transactionId": "pi_alloc1_abc" }
},
{
"id": "bbbb1111-2222-3333-4444-555566667777",
"amount": 8000,
"authorizedAmount": 8000,
"capturedAmount": 8000,
"status": "COMPLETED",
"paymentMethod": {
"id": "c1d4e5f6-7890-1234-5678-90abcdef1234",
"type": "CARD",
"card": { "lastFour": "1234", "brand": "mastercard", "expMonth": 6, "expYear": 2027 }
},
"vendor": { "name": "STRIPE", "transactionId": "pi_alloc2_def" }
}
]
}
}
API Response β One Fails + Rollback (422)β
When allocation[1] fails, allocation[0] is automatically rolled back:
{
"title": "PAYMENT_ERROR",
"status": 422,
"detail": "Payment processing failed for all records. Check individual records for error details",
"data": {
"id": "660e8400-e29b-41d4-a716-446655440000",
"merchantTransactionId": "split-20260404-001",
"amount": 20000,
"status": "FAILED",
"paymentAllocations": [
{
"id": "aaaa1111-2222-3333-4444-555566667777",
"amount": 12000,
"status": "ROLLED_BACK",
"remediation": {
"action": "CANCEL",
"reason": "CCG_AUTOMATED_CANCEL",
"vendorTransactionId": "pi_cancel_abc"
},
"paymentMethod": {
"type": "CARD",
"card": { "lastFour": "4242", "brand": "visa" }
}
},
{
"id": "bbbb1111-2222-3333-4444-555566667777",
"amount": 8000,
"status": "FAILED",
"error": {
"code": "card_declined",
"message": "Your card was declined."
},
"paymentMethod": {
"type": "CARD",
"card": { "lastFour": "1234", "brand": "mastercard" }
}
}
]
}
}