Intelligent search powered by OpenAI
Get invoices data
GET
Products that use it:
Request's parameters
PATH
id
Authorized payment identifier.number
REQUIRED
Response parameters
id
Unique invoice identifier.number
type
Type of invoice generated based on recurrence.string
scheduled: Payment automatically generated and scheduled by the recurrence engine.
date_created
Invoice creation date.string
last_modified
Invoice last modified date. An invoice is modified when an update occurs in collection attempts or payment.string
Errors
400Error
400
Bad-request
401Error
401
Unauthorized
500Error
500
Error
Request
curl -X GET \
'https://api.mercadopago.com/authorized_payments/{id}'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer TEST-3322*********190-03031*********46528954c*********0339910-1*********' \
Sample answer
{
"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"
}
}