Create refund intent
POST
Products that use it:
Request's parameters
HEADER
x-test-scope
This is a temporary header. It should be used only in the development stage with the value "sandbox". When going to production, it should be removedstring
PATH
deviceId
Identifier of the device that will receive the refund intent, for example "PAX_A910__SMARTPOS1234345545". If you don't know this value, you can send a GET to "Search payment intent endpoint"string
REQUIRED
BODY
payment_id
Identification number of the payment to refund, for example "65412345". This payment must be already processed, not an intent.string
REQUIRED
Response parameters
id
Refund intent identifierstring
device_id
Identifier of the device to which the refund intent was assignedstring
payment_id
Identification number of the payment to refund.string
Errors
400Error
400
Bad request - Field is missing o incorrect
401Error
401
Unauthorized - Token is invalid or expired
403Error
403
Forbidden - Integrator isn't registered
404Error
404
Not Found - Device or Payment not found
409Error
409
Conflict error - Device has a queued intent
500Error
500
Internal server error
Request
curl -X POST \
'https://api.mercadopago.com/point/integration-api/devices/{deviceid}/refund'\
-H 'Content-Type: application/json' \
-H 'x-test-scope: sandbox' \
-H 'Authorization: Bearer TEST-7434*********159-03141*********cee51edf8*********f94f589-1*********' \
-d '{
"payment_id": "12345678"
}'
Sample answer
{
"id": "7f25f9aa-eea6-4f9c-bf16-a341f71ba2f1",
"device_id": "PAX_A910__SMARTPOS1234345545",
"payment_id": "12345678"
}