Invoices

List invoices

get

Get a paginated list of invoices with optional filtering

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Query parameters
limitintegerOptional

Number of items to return

Default: 100
afterstringOptional

Specifies the cursor after which to start returning results. For the first page, this should be left empty. For subsequent pages, use the value of the end_cursor field from the previous response.

beforestringOptional

Specifies the cursor before which to return results. Use this to paginate backwards. For example, to load the previous page, provide the value of the start_cursor field from the last response.

created_at_startstringOptional

Filter by creation date start (RFC3339 format)

created_at_endstringOptional

Filter by creation date end (RFC3339 format)

due_date_startstringOptional

Filter by due date start (RFC3339 format)

due_date_endstringOptional

Filter by due date end (RFC3339 format)

customer_idstringOptional

Filter by customer ID

invoice_numberstringOptional

Filter by invoice number

statusstring · enumOptional

Filter by invoice status

Possible values:
Responses
chevron-right
200

OK

application/json
end_cursorstringOptionalExample: gaFpxBACEaXBVABEYbHG+X9LyLnH
has_next_pagebooleanOptionalExample: true
has_previous_pagebooleanOptional
start_cursorstringOptionalExample: gaFpxBACEaXBVABEYbHG+X9LyLnH
get
/invoices

Create an invoice

post

Create a new invoice with line items

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Body
customer_idstringOptional
due_datestringOptional

Due date in YYYY-MM-DD format. If omitted, defaults to the current date from invoice creation.

Example: 2025-01-01
exclude_from_autopaybooleanOptional

When true, this invoice is excluded from Autopay at creation time. Use this when your integration pays the invoice synchronously via API and you want to guarantee Autopay never charges the same invoice. Defaults to false.

Responses
post
/invoices

Get an invoice

get

Get invoice details by ID

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
idstringRequired

Invoice ID

Responses
chevron-right
200

OK

application/json
created_atstringOptional
currencystringOptional
customer_idstringOptional
due_datestringOptional
idstringOptional
invoice_numberstringOptional
last_notification_atstringOptional
memostringOptional
statusstringOptional
sub_totalnumberOptional
totalnumberOptional
get
/invoices/{id}

Archive an invoice

delete

Archive an invoice

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
idstringRequired

Invoice ID

Responses
chevron-right
200

OK

application/json
created_atstringOptional
currencystringOptional
customer_idstringOptional
due_datestringOptional
idstringOptional
invoice_numberstringOptional
last_notification_atstringOptional
memostringOptional
statusstringOptional
sub_totalnumberOptional
totalnumberOptional
delete
/invoices/{id}
get

Get a payment link for the specified invoice

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
idstringRequired

Invoice ID

Responses
chevron-right
200

OK

application/json
urlstringOptional
get
/invoices/{id}/payment-link
get

Get a signed PDF URL for the specified invoice

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
idstringRequired

Invoice ID

Responses
chevron-right
200

OK

application/json
urlstringOptional
get
/invoices/{id}/pdf-link

Restore an invoice

post

Restore an invoice

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
idstringRequired

Invoice ID

Responses
chevron-right
200

OK

application/json
created_atstringOptional
currencystringOptional
customer_idstringOptional
due_datestringOptional
idstringOptional
invoice_numberstringOptional
last_notification_atstringOptional
memostringOptional
statusstringOptional
sub_totalnumberOptional
totalnumberOptional
post
/invoices/{id}/restore

Last updated

Was this helpful?