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 andrefundAllocations[]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:
GETlookups return not-found for v1-origin resources. Cross-version write operations return409 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 Resource | Merchant Calls (v2 API) | Response Shape | Webhook Shape (Parallel Use) | Webhook Shape (Post-Migration) |
|---|---|---|---|---|
| v1 Payment or v1 Refund | GET /v2/payments/{id} or GET /v2/refunds/{id} | v2 response | Not applicable | Not applicable |
| v1 Payment | PATCH /v2/payments/{id}/capture when the state and environment are eligible | v2 response | v1 webhook | v2 webhook |
| v1 Payment | PATCH /v2/payments/{id}/cancel when the state and environment are eligible | v2 response | v1 webhook | v2 webhook |
| v1 Payment | POST /v2/refunds when the state and environment are eligible | v2 response | v2 webhook | v2 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.