Checking access…

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

Payment & Refund Backward Compatibility β€” Error & Version Reference

When to use this page

Looking up an exact error response payload or the v1/v2 behavioral comparison. For the integration walkthrough, see Payment & Refund Backward Compatibility (V1 to V2).

Error Response Messages (409 and 422)​

The following payload examples cover common 409 and 422 error responses for backward compatibility scenarios.

Sample Error Response Payloads

V1 GET on v2 Payment​

{
"title": "INVALID_REQUEST",
"status": 409,
"detail": "GET not allowed: resource is v2-native and cannot be modified via v1 API.",
"errorCode": "VERSION_CONFLICT"
}

V1 Capture on v2 Payment​

{
"title": "INVALID_REQUEST",
"status": 409,
"detail": "Capture not allowed: resource is v2-native and cannot be modified via v1 API.",
"errorCode": "VERSION_CONFLICT"
}

V1 Cancel on v2 Payment​

{
"title": "INVALID_REQUEST",
"status": 409,
"detail": "Cancel not allowed: resource is v2-native and cannot be modified via v1 API.",
"errorCode": "VERSION_CONFLICT"
}

V1 Refund on v2 Payment​

{
"title": "INVALID_REQUEST",
"status": 409,
"detail": "Refund not allowed: resource is v2-native and cannot be modified via v1 API.",
"errorCode": "VERSION_CONFLICT"
}
CROSS_VERSION_NOT_ENABLED​
{
"title": "INVALID_REQUEST",
"status": 409,
"detail": "Cross-version compatibility is not enabled.",
"errorCode": "CROSS_VERSION_NOT_ENABLED"
}

UNPROCESSABLE_ENTITY β€” paymentAllocationId/paymentId mismatch​

{
"title": "UNPROCESSABLE_ENTITY",
"status": 422,
"detail": "refundAllocations[n].paymentAllocationId must be associated with the specified paymentId"
}

UNPROCESSABLE_ENTITY β€” More than one allocation for v1 payment refund​

{
"title": "UNPROCESSABLE_ENTITY",
"status": 422,
"detail": "Maximum number of refundAllocations allowed for v1 payment is 1"
}

Merchant-Facing Outcomes​

  • Success: v1-origin resources are returned in v2 schema, with a single entry in paymentAllocations[] for payments and refundAllocations[] for refunds.
  • Not Found: If the payment or refund ID does not exist, the API returns the standard not-found outcome for that endpoint.
  • Migration Support Not Active: GET lookups return not-found for v1-origin resources. Cross-version write operations return 409 CROSS_VERSION_NOT_ENABLED.

For the complete list of split tender error codes, see Payment Error Codes.

Version Comparison​

The following table summarizes behavioral differences between v1 and v2 when operating on v1-origin resources through backward compatibility.

Behavior Reference: Merchant-Initiated API Operations
v1 ResourceMerchant Calls (v2 API)Response ShapeWebhook Shape (Parallel Use)Webhook Shape (Post-Migration)
v1 Payment or v1 RefundGET /v2/payments/{id} or GET /v2/refunds/{id}v2 responseNot applicableNot applicable
v1 PaymentPATCH /v2/payments/{id}/capture when the state and environment are eligiblev2 responsev1 webhookv2 webhook
v1 PaymentPATCH /v2/payments/{id}/cancel when the state and environment are eligiblev2 responsev1 webhookv2 webhook
v1 PaymentPOST /v2/refunds when the state and environment are eligiblev2 responsev2 webhookv2 webhook

Key Differences:

  • Request Format: V2 request construction applies, but allocation requirements and supported operations vary by resource origin.
  • Response Format: Identical for both; all responses use v2 schema
  • Status Mapping: No mapping required; v1 and v2 share the same status values
  • Webhook Transition: Keep version-aware webhook handling during parallel use; V1-origin payment actions and V2-created refunds can emit different webhook versions.
  • No Hard Cutover: Backward compatibility allows gradual migration without operational freeze

Check the capability parity matrix before using capture, cancel, or refund operations.