Invoice Endpoints
Manage your invoices programmatically with these endpoints. All endpoints require authentication and the appropriate OAuth scope.List All Invoices
Retrieve a paginated list of all your invoices.string
required
Bearer token with
billing.read scopeinteger
default:"25"
Number of invoices per page (max 100)
integer
default:"1"
Page number for pagination
Request Example
Response
Get Invoice Details
Retrieve detailed information about a specific invoice.integer
required
The invoice ID
Request Example
Response
Get Invoice Statistics
Get aggregated statistics about your invoices.Request Example
Response
Response Fields
Get Overdue Invoices
Retrieve all invoices that are past their due date. Ideal for payment follow-up automation and AI billing agents.Request Example
Response
Create Invoice
Create a new invoice with line items.string
required
Bearer token with
billing.write scopeRequest Body
integer
required
The ID of an existing customer
string
Custom invoice number (auto-generated if not provided)
string
Your internal reference (e.g., project name, PO number)
string
required
Invoice date in
YYYY-MM-DD formatstring
required
Due date in
YYYY-MM-DD format (must be on or after invoice date)string
Additional notes to include on the invoice
array
required
Array of invoice line items (minimum 1 item)
Request Example
Response
201 Created
Item Structure
Each item in theitems array should have:
Send Payment Reminder
Send a payment reminder email for an unpaid invoice.string
required
Bearer token with
billing.write scopeinteger
required
The invoice ID
Request Example
Response
Error Responses
Invoice already paid:400 Bad Request
Invoice not found:
404 Not Found