Skip to navigation

Create an invoice

Creates an invoice addressed to exactly one of recipientContact or recipientBusiness. Send application/json, or multipart/form-data with a JSON data field plus one or more files (PDF or image, max 25 MB each) to attach documents. Sending the same externalId again later updates the invoice instead of creating a duplicate.

Authentication

AuthorizationBearer

A short-lived access token from POST /api/v1/access-token (30 minutes by default). Send as Authorization: Bearer <jwt>.

Request

The fields used to create or update an invoice. Exactly one of recipientContact or recipientBusiness is required.

merchantobjectRequired
The merchant billing the invoice.
referenceNumberstringRequired

Your human-readable reference for the invoice.

issueDatedatetimeRequired

The date the invoice was issued (ISO 8601).

totalAmountdoubleRequired>=0
The total amount due, in the invoice's currency.
externalIdstringOptional
The invoice's identifier in your system. Send it again on a later request to update the same record.
recipientContactobjectOptional

The contact the invoice is addressed to. Mutually exclusive with recipientBusiness.

recipientBusinessobjectOptional

The business the invoice is addressed to. Mutually exclusive with recipientContact.

typeenumOptional
The document type.
Allowed values:
invoiceNamestringOptional
An optional display name for the invoice.
dueDatedatetime or nullOptional

The date payment is due (ISO 8601). Null for open-ended requests.

amountPaiddoubleOptional>=0
The amount already paid.
statusenumOptional
The invoice's current status.
isPartialbooleanOptional
Whether the invoice has been partially paid.
requiresSignaturebooleanOptional
Whether the invoice requires a signature before payment.
notestringOptional
An optional note shown with the invoice.

Response

Invoice created.
dataobject
An invoice addressed to a contact or a business.

Errors

400
Bad Request Error
401
Unauthorized Error
409
Conflict Error
500
Internal Server Error