Reversal
/dpm/payments-gwproxy/v2/payments/reversal__Reversal__<br><br> The Reversal endpoint undoes an authorized Card Present transaction before it is captured. The authorization is canceled and no money moves, so the funds never leave the cardholder's account.<br><br> To find the original transaction, send its `payment_id` and the `x-seller-id` header.<br><br> **Usage Scenarios:**<br> - Undoing an authorization you no longer want to complete, such as one with a wrong amount.<br> - Releasing the reserved funds when the customer leaves before the transaction is captured.<br><br> **Notes:**<br> - A reversal always covers the full amount of the original authorization. Partial reversals are not supported.<br> - A reversal applies only to transactions that are not captured yet. To return the funds of a captured transaction, use [Cancel](#tag/payments/post/dpm/payments-gwproxy/v2/payments/cancel).<br> - This endpoint handles the reversals you request. It does not replace the automatic reversals that Getnet runs after communication failures, processing interruptions, or timeouts.<br> - The terminal codes in `additional_data.terminal` are mandatory for Brazil.<br> - Always send the `additional_data.card` object. Its fields are optional, so you can send an empty object (`"card": {}`). If you have the card data, send `number` or `track_2`.<br> - Available in all countries integrated with SEP Card Present.<br> - Subscribe to the `REVERSED_TRANSACTIONS` webhook event to get notified when a reversal is processed.
Header Parameters
Unique identifier of the commercial establishment (seller) registered on the Getnet platform. The reversal uses it to find the original transaction.
Country identifier.
Tenant identifier.
Body application/json
Idempotency key, used to control requests, must be unique per request, because if it is repeated, it will always be returned the same data.
`payment_id` returned by the original authorization. The reversal uses it to find the transaction to reverse.
Amount of the original authorization, in cents. A reversal always covers the full amount, so you can omit this field. Partial reversals are not supported.
Payment method of the original transaction. We recommend that you omit it: Getnet uses the payment method of the original transaction. If you send it, it must match the original authorization.
Customer key used to identify a cancellation request. (Key must be unique per transaction).
Card Present data of the original transaction.
Response
Transaction reversed successfully.
Idempotency key, used to control requests, must be unique per request, because if it is repeated, it will always be returned the same data.
ECommerce identification code
Request identifier. Unique for each request.
Payment identifier
Purchase identification code used by e-commerce (code or order number).
Reversed amount, in cents. Always the full amount of the original authorization.
Reversal status
Return code from the sender or the getnet capture system.
Authorization code.
Trace number of the transaction.
Date and time of the reversal.
Customer key used to identify a cancellation request. (Key must be unique per transaction).
Invalid Requisition
Detailed error message.
Name of the module or system in which the error occurred.
HTTP status code of the error.
Error details.
Error details.
combinedId.
orderId.
sellerId.
Invalid Authentication
Detailed error message.
Name of the module or system in which the error occurred.
HTTP status code of the error.
Error details.
Error details.
combinedId.
orderId.
sellerId.
Unprocessable Entity
Detailed error message.
Name of the module or system in which the error occurred.
HTTP status code of the error.
Error details.
Error details.
combinedId.
orderId.
sellerId.
Too Many Requests
Detailed error message.
Name of the module or system in which the error occurred.
HTTP status code of the error.
Error details.
Error details.
combinedId.
orderId.
sellerId.
Internal server or service error
Detailed error message.
Name of the module or system in which the error occurred.
HTTP status code of the error.
Error details.
Error details.
combinedId.
orderId.
sellerId.
Internal server or service error
Detailed error message.
Name of the module or system in which the error occurred.
HTTP status code of the error.
Error details.
Error details.
combinedId.
orderId.
sellerId.
Gateway Timeout
Detailed error message.
Name of the module or system in which the error occurred.
HTTP status code of the error.
Error details.
Error details.
combinedId.
orderId.
sellerId.