Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Input schema for creating an invoice.
UUID of the customer (required, must exist)
"123e4567-e89b-12d3-a456-426614174000"
Invoice line items (at least one required)
1Unique invoice number (auto-generated if not provided)
100"INV-2024-001"
Invoice date (defaults to today)
"2024-03-21"
Payment due date
"2024-04-21"
ISO 4217 currency code
"USD"
Invoice description
"Monthly services for March 2024"
Service period start date
"2024-03-01"
Service period end date
"2024-03-31"
Internal notes for the invoice
Additional email recipients
Custom fields as list of {field_name, field_value}
Initial invoice status (draft, ready-to-send, or sent)
"draft"
Response
Invoice created successfully
Output schema for invoice information.
The unique identifier for the invoice
"123e4567-e89b-12d3-a456-426614174000"
The current status of the invoice
"draft"
The total amount due for the invoice
1000
The currency code for the invoice
"USD"
The unique invoice number
"INV-2024-001"
The date when the invoice was created
"2024-03-21"
The date by which the invoice must be paid
"2024-04-21"
The start date of the service period
"2024-03-01"
The end date of the service period
"2024-03-31"
A description of the invoice
"Monthly services for March 2024"
The timestamp when the invoice was created
"2024-03-21T10:00:00Z"
Indicates if this is a recurring invoice
false
Indicates if the invoice was created from an external source
false
The name of the external source if applicable
"stripe"
The ID of the invoice in the external system
"inv_123456"
URL where the customer can pay this invoice
"https://app.justpaid.ai/portal/inv/123"
List of line items included in this invoice
URL to download the invoice PDF
"https://api.justpaid.ai/invoices/123.pdf"
Details of the customer associated with this invoice Output schema for customer information.
