Get invoice data - Invoices - Mercado Pago Developers
Get invoices data

GET

/authorized_payments/{id}
Obtains all the information of a invoice from its ID. Invoices are automatically schedules and charged based on the recurrence defined in the subscription.
Request's parameters
id

REQUIRED

number
Localization: pathAuthorized payment identifier
Response parameters
id
number
Localization: bodyUnique invoice identifier.
type
string
Localization: bodyType of invoice generated based on recurrence.
scheduled: Automatically generated and scheduled by the recurrence engine
date_created
string
Localization: bodyInvoice creation date.
last_modified
string
Localization: bodyInvoice last modified date. An invoice is modified when an update occurs in collection attempts or payment.
Request
curl
curl -X GET \
    'https://api.mercadopago.com/authorized_payments/{id}' \
    -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' 
Answer
json
{
  "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
400400--Bad-request--Binding exception, parameters passed are invalid
401bad_request
401401--Unauthorized--Unauthorized access to resource
500bad_request
500500--Error--Internal server error