Search in invoiceshttps://api.mercadopago.com/authorized_payments/search
Search the invoices of a subscriptions by different parameters. You can search by subscription, payment or customer ID.
GET
Request parameters
Header
Authorization
Access Token obtained through the developer panel. Must be sent in all requests.string
REQUIRED
Path
id
Unique ID that identifies a invoice.number
REQUIRED
preapproval_id
Unique subscription ID to find related invoices.string
REQUIRED
payment_id
Unique payment ID to find related invoice.number
REQUIRED
payer_id
Unique payer ID to find your related invoices.number
REQUIRED
Response parameters
paging
Information for pagination of search results.object
results
array
Errors
400Error
400
Bad-request
401Error
401
Unauthorized
500Error
500
Error
Request
curl -X GET \
'https://api.mercadopago.com/authorized_payments/search'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer APP_USR-8*********88776-122*********fc20dede6*********a497d7225*********64' \
Response
{
"paging": {
"offset": 0,
"limit": 20,
"total": 100
},
"results": [
{
"id": 6114264375,
"type": "scheduled",
"date_created": "2022-01-01T11:12:25.892-04:00",
"last_modified": "2022-01-01T11:12:25.892-04:00",
"preapproval_id": "2c938084726fca480172750000000000",
"reason": "Yoga classes",
"external_reference": 23546246234,
"currency_id": "BRL",
"transaction_amount": "24.50",
"debit_date": "2022-01-01T11:12:25.892-04:00",
"retry_attempt": 4,
"status": "scheduled",
"summarized": "pending",
"payment": {
"id": 19951521071,
"status": "approved",
"status_detail": "accredited"
}
}
]
}