Skip to main content
The PaymentResponse object contains the result of any payment operation (payment, refund, or void), including the payment status, transaction history, and any relevant details such as consumer, billing, shipping, product items, and payment method information. This unified model is used across all payment-related endpoints.

Properties

When an operation fails, the API returns HTTP 402 with a shorter response: paymentId, merchantReference, amount, currency, status and failure. There, status is always FAILED and describes the operation you requested, not always the payment. amount is the amount of the attempt, so for a partial refund it is the refund amount requested. For payment creation the attempt and the payment are the same. After a failed capture, refund or void, the payment keeps its previous status; query it with GET /v1/payments/{paymentId}. See Failed operations.