Get invoice
Returns an invoice by id.
Authorizations
Organization API key using Authorization: Bearer sk_....
Path Parameters
Identifier of the invoice.
Response
Invoice details
Invoice details response. Returns null if the invoice does not exist.
Unique identifier of the invoice.
"inv_1234567890abcdefghij"
Date and time when the invoice was created.
"2025-01-10T12:00:00.000Z"
Date and time when the invoice was last updated.
"2025-01-10T12:00:00.000Z"
Identifier of the customer this invoice belongs to.
"cus_1234567890abcdefghij"
Identifier of the subscription that generated this invoice, if any.
"sub_1234567890abcdefghij"
How payment is collected: AUTOMATIC, SEND_REMINDER, or NONE.
AUTOMATIC, SEND_REMINDER, NONE "SEND_REMINDER"
Computed total amount of the invoice in minor units.
150000
ISO 4217 currency code for the invoice.
"MXN"
Date and time when payment is due.
"2025-02-01T06:00:00.000Z"
Date and time when the invoice expires.
null
Identifier of the organization that owns this invoice.
"org_1234567890abcdefghij"
Whether the invoice has been fully paid.
false
Identifier of the customer who paid the invoice.
null
Total amount paid so far in minor units.
0
Identifier of the beneficiary customer, if any.
null
Whether payment is accepted outside the due window.
false
Identifier of the payment that settled the invoice.
null
Date and time when the invoice was canceled.
null
Identifier of the user who canceled the invoice.
null
Line items included in this invoice.
Flattened metadata map where each key maps to a string value.