Checking access…

Skip to main content
Version: v2
Audience: Consumers, CCG Platform Engineers

Split Tender Refunds API

When to use this page

Refunding a split-tender transaction — full across both cards or partial against one — with each card processed independently.

Split Tender Refund allows merchants to refund a split tender transaction — either in full across both cards, or partially against a specific card. Each card refund is processed independently. This guide covers how to initiate refunds, monitor status, and handle errors and webhook notifications.

Single-allocation refunds? Use the same Create Refund and Get Refund operations. For a full linked refund, include paymentId and omit refundAllocations. For a partial linked refund, include paymentId and exactly one refundAllocations[] item. No multi-allocation PARTIAL_SUCCESS handling is involved.

  • Refund model: Full Refund and Per-payment allocation — each allocation is refunded independently
  • Partial refunds: Supported per card; merchant must specify card and amount
  • No rollback on partial failure: Unlike payments, if one card refund fails, the other is not reversed — result is PARTIAL_SUCCESS
  • Status: Rolled up from both card refund statuses

When to Use​

Use Split Tender Refund when:

  • The original payment was a split tender transaction (two cards charged)
    • A full refund is needed — both cards should be refunded for their original amounts
    • A partial refund is needed — a specific card should be refunded for a specific amount
    • A subsequent refund is needed after a previous partial refund on the same transaction

Note: Each refund allocation is processed independently. If one card fails (e.g., expired or disputed), the other card's refund still proceeds, resulting in PARTIAL_SUCCESS. Unlike payments, there is no automatic rollback.

Business Context

For business context, eligibility, scenarios see Split Tender Refunds — Business Document.


Integration Details
  • API Endpoint:
    • POST v2/refunds — create a refund
    • GET v2/refunds/{refundId} — poll refund status
  • Scope: All operations are at the merchant scope.
  • API Specs: Create Refund | Get Refund
  • Webhook Specs: Refund Webhooks
  • API: v2
  • Testing: Use Test Cards to simulate refund scenarios. See Test Cards
  • ⚠️ Error Handling: See Refund Error Codes for split tender–specific errors and resolution steps


API Request​

API Specification
Sample Request — POST v2/refunds
curl -X POST "https://api-stg.uhg.com/api/financial/commerce/nonprodcheckout/v2/refunds" \
-H "Authorization: <token>" \
-H "X-Merchant-Id: <merchantId>" \
-H "X-Upstream-Env: dev" \
-H "X-Source: <source>" \
-H "Content-Type: application/json" \
-d '{
"reason": "REQUESTED_BY_CUSTOMER",
"paymentId": "620bba81-10d1-4abc-9e4a-c2c1752da349",
"merchantTransactionId": "28402815-8048-4725-b092-809f5fd28470",
"refundAllocations": [
{
"paymentAllocationId": "1ff243ca-e0f3-436f-a5b2-53c205715619",
"amount": 1000
},
{
"paymentAllocationId": "37cf8ca3-4e54-4599-ab36-2c9fd2ad42f4",
"amount": 100
}
]
}'

Poll Refund Status​

Refund processing is asynchronous — the API returns INITIATED immediately. Poll GET v2/refunds/{refundId} until the status settles to a terminal state (COMPLETED, PARTIAL_SUCCESS, or FAILED).

Sample Request — GET v2/refunds/refundId
curl -X GET "https://api-stg.uhg.com/api/financial/commerce/nonprodcheckout/v2/refunds/<refundId>" \
-H "Authorization: <token>" \
-H "X-Merchant-Id: <merchantId>" \
-H "X-Upstream-Env: dev" \
-H "Accept: application/json"

API Response​

The refundAllocations array contains one entry per card, each with its own status and error details if failed. The parent refund status is computed from both allocations — COMPLETED if both succeed, FAILED if both fail, or PARTIAL_SUCCESS if one succeeds and one fails (no rollback).

Full response catalog

For the exact JSON shape of COMPLETED, PARTIAL_SUCCESS, and FAILED responses, see Split Tender Refund — Status, Response & Error Reference.


Status Handling​

Polling Guidelines​

Refund processing is asynchronous — the API returns INITIATED immediately. Poll GET v2/refunds/{refundId} until the status settles to a terminal state (COMPLETED, PARTIAL_SUCCESS, or FAILED).

  • ✅ Supported:
    • Poll the parent refund using refundId only.
    • Get real-time status for all allocations in a single response.
    • See per-card error details when a card refund fails.
  • ❌ Not Supported:
    • Polling by merchantTransactionId (not available).
    • Polling individual allocation (child) refund IDs.
    • Component-level webhook subscriptions per card.
warning

Always use the parent refund refundId for polling. Polling by merchantTransactionId or allocation IDs is not supported and will result in API errors.


Both the parent refund and each allocation (card) carry their own status, and the parent status is computed from both allocation outcomes — PARTIAL_SUCCESS means one card succeeded and one failed, with no rollback of the successful one.

Full status definitions, mapping table, and lifecycle diagrams

See Split Tender Refund — Status, Response & Error Reference for the complete status tables and state/flow diagrams.


Error Handling​

Error Code Reference

For the complete list of error codes, status codes, and error details, see Refund Error Codes.

Split Tender–Specific Errors​

Beyond standard refund errors, split tender refunds have these specific failure modes:

  • Partial failure — no rollback: Unlike payments, if one card refund fails, the other card's refund is not rolled back. The result is PARTIAL_SUCCESS and the merchant must resolve the failed allocation separately.
  • Already refunded: If a paymentAllocationId has already been fully refunded, the allocation returns REFUND_ERROR: This payment is already refunded.
  • Expired or closed card: Refunds to expired or closed cards fail at the processor level — the other card's refund still proceeds, resulting in PARTIAL_SUCCESS.

Webhooks​

CCG sends one webhook per refund request — not per card: REFUND_SUCCESS, REFUND_PARTIAL_SUCCESS, or REFUND_FAILED. Subscribe to these events to get real-time refund outcomes without polling.

Full event table

Retry Handling​

Split tender refunds do not support retries in the same way as payments. Each refund request is a distinct operation, identified by a unique merchantTransactionId — reusing one returns 422. A PARTIAL_SUCCESS failed allocation is not retried automatically; submit a new refund request for just that paymentAllocationId, or issue an unlinked/manual refund if the card is expired, closed, or disputed.

Full recovery steps

See Split Tender Refund — Status, Response & Error Reference for the situation-by-situation recovery table and the uncertain-outcome procedure.


V1 vs V2 API Comparison​

Split Tender Refund is a new capability in v2 that extends the single-payment refund model.

Downloadable field-by-field comparison

See Split Tender Refund — Status, Response & Error Reference for the comparison workbook and version-specific spec links.


Backward Compatibility​

During v1 to v2 migration, CCG supports cross-version refund operations so v2 refund endpoints can continue to operate on eligible v1-origin payment resources.

  • Supported operations: POST /v2/refunds can create refunds against eligible v1-origin payments, and GET /v2/refunds/{refundId} can retrieve those refunds.
  • v1 baseline: In v1, split payments are not supported; refunds are tied to single-allocation payments.
  • v2 normalization: When a v1-origin refund is returned via v2 APIs, CCG normalizes it into v2 shape with a single refundAllocations[] entry.
  • Webhook behavior: During parallel use, webhook shape follows the resource version; after full v2 migration, webhooks are delivered in v2 shape.
  • Behavior and safety: Refund processing remains allocation-independent, and partial failures surface as PARTIAL_SUCCESS (no rollback of successful refund allocations).

For complete behavior, rollout controls, and migration flow, see Split Tender Backward Compatibility.


FAQ​

Q: How do I refund only one card in a split tender transaction?

  • Specify the paymentAllocationId of the card to refund along with the amount in refundAllocations. Omit the other allocation.

Q: What happens if one card refund fails?

  • The other card's refund still proceeds. The result is PARTIAL_SUCCESS — unlike payments, there is no rollback. Handle the failed allocation manually.
More FAQs

Questions about full refunds without allocations, polling individual allocation status, and when a status is final are answered in Split Tender Refund — Status, Response & Error Reference.

Q: How do I correlate webhook events with refund records?

  • Use the refundId or merchantTransactionId in both the API response and webhook payload to match events.

Q: What if I don't receive a webhook?

  • Poll GET v2/refunds/{refundId} to get the current status. Check your endpoint logs and ensure it returns a 2xx status. See Webhook Configuration.

Integration Checklist​

  • Merchant account is configured for split tender payments
  • API endpoints and authentication are set up
  • Refund request specifies correct paymentId and merchantTransactionId
  • For partial refunds: refundAllocations includes paymentAllocationId and amount
  • Status polling uses parent refundId — not allocation IDs
  • PARTIAL_SUCCESS handling is implemented (manual resolution for failed card)
  • Webhook endpoint is configured and returns 2xx
  • Webhook handler is idempotent and logs all payloads
  • All error codes and PARTIAL_SUCCESS scenarios are handled
  • Integration tested with test cards and simulated partial failures