Single Payment β Status & Response Reference
When to use this page
Looking up the exact response shape, status values, or webhook events for a single-allocation payment. For the integration walkthrough, see Single Payments API.
API Response Catalogβ
Response Structure
The complex object is trimmed for brevity. Refer to the API Spec for the full response structure.
- The
paymentAllocationsarray contains one entry β the single card. - The parent status directly mirrors the allocation status (
COMPLETEDorFAILED). - No
remediationobject is ever present (no rollback needed).
Successful Responseβ
Sample Response β COMPLETED
{
"url": "http://api-stg.uhg.com:443/v2/payments/3222ac8a-c8fa-4426-bd99-e96a909569b0",
"data": {
"id": "3222ac8a-c8fa-4426-bd99-e96a909569b0",
"merchantTransactionId": "30d279fa-9d7d-48c9-8e61-c3783eecf18c",
"amount": 100,
"description": "Single Allocation Payment",
"currencyCode": "USD",
"status": "COMPLETED",
"vendor": {
// ... see API Spec for full vendor object ...
},
"paymentDateUtc": "2026-03-21T00:24:01.741688Z",
"metadata": {
"orderId": "123",
"orderType": "prescription"
},
"merchant": {
// ... see API Spec for full merchant object ...
},
"paymentAllocations": [
{
"id": "8cd647c5-f9ff-42a0-b7d9-084c7f5d7d47",
"amount": 100,
"status": "COMPLETED",
"paymentMethod": {
"id": "7b30960f-8a19-4ae0-8d73-46849365f81d",
"type": "CARD",
"last4": "4242",
"cardBrand": "VISA"
}
}
],
"customer": {
"id": "fa6dcef4-6400-467b-aa28-0f02a7afd724"
}
}
}
Failure Responseβ
Sample Response β FAILED
{
"title": "PAYMENT_ERROR",
"detail": "Your card was declined.",
"status": 422,
"data": {
"id": "9cbecc7b-6401-4f1b-bc1d-c2769d466e7f",
"merchantTransactionId": "95b8da69-cf36-49cb-8dbe-1f0948cd38ed",
"amount": 100,
"currencyCode": "USD",
"status": "FAILED",
"vendor": { "name": "STRIPE" },
"paymentDateUtc": "2026-03-21T00:25:45.206679Z",
"merchant": {
"id": "b955db5e-aef2-47de-bbb9-c80b9cc16e8f",
"groupId": "3cf34cba-ffec-48fb-b7ca-09977db1077a",
"name": "ccg-optum-rx"
},
"paymentAllocations": [
{
"id": "99407904-f239-4a50-9968-c75fa4d99623",
"amount": 100,
"status": "FAILED",
"paymentMethod": {
"id": "7b30960f-8a19-4ae0-8d73-46849365f81d",
"type": "CARD",
"last4": "4242",
"cardBrand": "VISA"
},
"error": {
"title": "PAYMENT_ERROR",
"detail": "Your card was declined.",
"errorDetails": {
"code": "card_declined",
"message": "Your card was declined.",
"declineCode": "generic_decline",
"networkAdviceCode": null,
"networkDeclineCode": "01"
}
}
}
],
"customer": {
"id": "5e395f2d-d000-4e79-9f33-ca68280bd2b6"
}
}
}
Status Mappingβ
| Allocation Status | Parent Status | Description |
|---|---|---|
| β³ PENDING | β³ PENDING | Card is processing |
| β COMPLETED | β COMPLETED | Payment captured successfully |
| β FAILED | β FAILED | Card declined or error |
There is no
ROLLED_BACKorPARTIAL_SUCCESSstatus for single allocation payments. The parent status directly mirrors the single allocation.
Webhook Eventsβ
| Event | When Triggered |
|---|---|
PAYMENT_SUCCEEDED | Card completed |
PAYMENT_FAILED | Card failed |
caution
PAYMENT_FAILED is not final if retries remain. It becomes final only after the 5th failure or when the merchant stops retrying.
FAQβ
Q: Is there a PARTIAL_SUCCESS or ROLLED_BACK status?
- No. Those statuses only apply when multiple allocations are involved.
Q: Can I poll individual allocation IDs?
- No. Always use the parent
paymentIdormerchantTransactionId.