Skip to main content

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 scope
integer
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

The payment_link field contains a direct link you can share with the customer. It’s null if a payment has already been initiated.

Create Invoice

Create a new invoice with line items.
string
required
Bearer token with billing.write scope

Request 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 format
string
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

HTTP Status: 201 Created

Item Structure

Each item in the items array should have:

Send Payment Reminder

Send a payment reminder email for an unpaid invoice.
string
required
Bearer token with billing.write scope
integer
required
The invoice ID

Request Example

Response

Error Responses

Invoice already paid:
HTTP Status: 400 Bad Request Invoice not found:
HTTP Status: 404 Not Found

Invoice Statuses


MCP Integration Example

Here’s how to use the invoice API with an MCP billing agent: