Use the /v1/oauth2/token endpoint to obtain an access token and pass it as a Bearer token in the Authorization header.
The unique identifier of the invoice
A single invoice
The unique identifier of the invoice
"1a901a90-1a90-1a90-1a90-1a901a901a90"
Unique code used to identify the billing entity. Must contain only alphanumeric characters, underscores, and hyphens.
^[a-zA-Z0-9_-]*$"acme_inc"
Sequential ID of the invoice, unique within the billing entity.
3
Status of the invoice
DRAFT, FINALIZED "FINALIZED"
Status of invoice payment
PENDING, FAILED, SUCCEEDED "PENDING"
Total amount due for the invoice, including breakdown of fees, taxes, and discounts.
{
"total_amount": { "value": 19.99, "currency_code": "USD" },
"breakdown": {
"fees": { "value": 1, "currency_code": "USD" },
"credit_notes": { "value": 0, "currency_code": "USD" },
"sub_total_excluding_taxes": { "value": 20, "currency_code": "USD" },
"taxes": { "value": 0.99, "currency_code": "USD" },
"sub_total_including_taxes": { "value": 19.99, "currency_code": "USD" }
}
}Due date for the invoice payment
^(?:[1-9]\d{3}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|02-(?:0[1-9]|1\d|2[0-8]))|(?:(?:\d{2}(?:0[48]|[2468][048]|[13579][26]))|(?:[02468][048]00|[13579][26]00))-02-29)$"2023-01-15"
Date when the invoice was issued
^(?:[1-9]\d{3}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|02-(?:0[1-9]|1\d|2[0-8]))|(?:(?:\d{2}(?:0[48]|[2468][048]|[13579][26]))|(?:[02468][048]00|[13579][26]00))-02-29)$"2023-01-01"
Invoice number, unique within the billing entity.
"INV-2023-001"
Version number of the invoice, indicating the revision of the invoice.
"INV-2023-001"
Indicates whether the invoice payment is overdue.
false
Type of invoice
SUBSCRIPTION, ONE_OFF, CREDIT "SUBSCRIPTION"
A customer represents an individual or organization that can be billed for services. It includes personal information, contact details, and metadata.
Timestamp when the invoice was created
"2023-01-01T00:00:00Z"
Timestamp when the invoice was last updated
"2023-01-01T00:00:00Z"