Busca inteligente powered by OpenAI
Obter reembolso específico
GET
Produtos relacionados:
Parâmetros de requisição
PATH
id
Identificador de pagamento.string
OBRIGATÓRIO
refund_id
Identificador do reembolso.string
OBRIGATÓRIO
Parâmetros de resposta
id
Identificador do reembolso.number
payment_id
Identificador do pagamento.number
amount
Valor do reembolso.number
metadata
Contém metadados de pagamento que nos são enviados no post de paymentarray
Erros
400Erro
400
Bad-Request
401Erro
5
Must-provide-your-access-token-to-proceed
404Erro
2000
Payment-not-found
2032
Refund-not-found
Requisição
curl -X GET \
'https://api.mercadopago.com/v1/payments/{id}/refunds/{refund_id}'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer TEST-5599*********291-02171*********139a4791e*********f7f5835-1*********' \
curl -X GET \
'https://api.mercadopago.com/v1/payments/{id}/refunds/{refund_id}'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer TEST-5599*********291-02171*********139a4791e*********f7f5835-1*********' \
curl -X GET \
'https://api.mercadopago.com/v1/payments/{id}/refunds/{refund_id}'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer TEST-5599*********291-02171*********139a4791e*********f7f5835-1*********' \
curl -X GET \
'https://api.mercadopago.com/v1/payments/{id}/refunds/{refund_id}'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer TEST-5599*********291-02171*********139a4791e*********f7f5835-1*********' \
curl -X GET \
'https://api.mercadopago.com/v1/payments/{id}/refunds/{refund_id}'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer TEST-5599*********291-02171*********139a4791e*********f7f5835-1*********' \
Resposta de exemplo
{
"id": 1032332129,
"payment_id": 18552260055,
"amount": 10,
"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": [
{}
]
}