Search in invoices - Invoices - Mercado Pago Developers
Search invoices

GET

/authorized_payments/search
Search the invoices of a subscriptions by different parameters. You can search by subscription, payment or customer ID.
Request's parameters
id

REQUIRED

number
Localization: pathUnique ID that identifies a invoice.
preapproval_id

REQUIRED

string
Localization: pathUnique subscription ID to find related invoices.
payment_id

REQUIRED

number
Localization: pathUnique payment ID to find related invoice.
payer_id

REQUIRED

number
Localization: pathUnique payer ID to find your related invoices.
Response parameters
paging
object
Localization: bodyInformation for pagination of search results.
results
array
Localization: body
Request
curl
curl -X GET \
    'https://api.mercadopago.com/authorized_payments/search' \
    -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' 
Answer
json
{
  "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": "ARS",
      "transaction_amount": 10,
      "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"
      }
    }
  ]
}
Errors
400bad_request
400Search parameters are required
400Binding exception, parameters passed are invalid
401bad_request
401Unauthorized access to resource
500bad_request
500Internal server error