Recursos para IA
Obter lista de reembolsoshttps://api.mercadopago.com/v1/payments/{id}/refunds
Consultar todos os reembolsos para um pagamento específico.
GET
Request parameters
Header
Authorization
string
OBRIGATÓRIO
Access Token obtido através do painel de desenvolvedores. Obrigatório ser enviado em todas as requisições.
Path
id
string
OBRIGATÓRIO
Identificador de pagamento
Response parameters
id
number
Identificador do reembolso
payment_id
number
Identificador de pagamento
amount
number
Identificador de pagamento
metadata
array
Contém metadados de pagamento que nos são enviados no post de payment
Erros
400Erro
400
Bad-Request
401Erro
5
Must-provide-your-access-token-to -proceed
404Erro
2000
Payment-not-found
Request
curl -X GET \
'https://api.mercadopago.com/v1/payments/{id}/refunds'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer APP_USR-1*********550113-12*********b4773884a*********e8df16347*********786' \
curl -X GET \
'https://api.mercadopago.com/v1/payments/{id}/refunds'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer APP_USR-1*********550113-12*********b4773884a*********e8df16347*********786' \
curl -X GET \
'https://api.mercadopago.com/v1/payments/{id}/refunds'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer APP_USR-1*********550113-12*********b4773884a*********e8df16347*********786' \
curl -X GET \
'https://api.mercadopago.com/v1/payments/{id}/refunds'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer APP_USR-1*********550113-12*********b4773884a*********e8df16347*********786' \
curl -X GET \
'https://api.mercadopago.com/v1/payments/{id}/refunds'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer APP_USR-1*********550113-12*********b4773884a*********e8df16347*********786' \
curl -X GET \
'https://api.mercadopago.com/v1/payments/{id}/refunds'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer APP_USR-1*********550113-12*********b4773884a*********e8df16347*********786' \
curl -X GET \
'https://api.mercadopago.com/v1/payments/{id}/refunds'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer APP_USR-1*********550113-12*********b4773884a*********e8df16347*********786' \
Response
{
"id": 1032332129,
"payment_id": 18552260055,
"amount": 4,
"metadata": [
{}
],
"source": [
{
"name": {
"en": "Firstname Lastname",
"pt": "Nome e sobrenome",
"es": "Nombre y apellido"
},
"id": "1003743392",
"type": "collector"
}
],
"date_created": "2021-11-24T13:58:49.312-04:00",
"unique_sequence_number": null,
"refund_mode": "standard",
"adjustment_amount": 0,
"status": "approved",
"reason": null,
"label": [
{}
],
"partition_details": [
{}
]
}