Skip to main content

Customers

Manage customer billing and shipping information for invoices and estimates.

Create Customer

POST https://api.invoiless.com/v1/customers

Create a new customer with billing and shipping information.

Example:

{
"billTo": {
"company": "Invoiless",
"email": "customer@example.com",
"phone": "202-555-0113",
"address": "4320 Ryder Avenue"
}
}

Body Parameters

NameTypeDescriptionRequired
billToobjectBill to addressYes
shipToobjectShip to addressNo
taxobjectTax identifier with a custom name (e.g. VAT ID, Tax Number, GST Number)No
registrationobjectLegal/company registration identifier (e.g. KVK, Handelsregister, SIREN)No
referencestringBuyer reference for internal routing, e.g. the Leitweg-ID for German B2G invoices (max 100 characters)No
peppolobjectBuyer Peppol electronic addressNo
ccarray[string]Cc email recipients (max 3, unique, cannot duplicate billTo.email or bcc emails)No
bccarray[string]Bcc email recipients (max 3, unique, cannot duplicate billTo.email or cc emails)No
currencystringISO 4217 currency codeNo
langstringCustomer language, possible values are en, fr, de, nl, es, bg, ro, ja, mn, da, sv, lt, fi, hu, cs, it, et, lv, pt, pl, sk, or zhNo
dateFormatstringDate format, possible values are DD/MM/YYYY, MM/DD/YYYY, YYYY/MM/DD, or YYYY/DD/MM, with 3 possible separators: /, -, or .No
attachPdfboolAttach PDF copy to emailsNo
notesstringPrivate notes (max 1000 characters)No
tagsarray[string]Customer tags (max 10 tags, each max 50 characters)No
eInvoiceobjectE-invoicing settingsNo

Bill To / Ship To Parameters

Either firstName and lastName, or company, is required.

NameTypeDescriptionRequired
firstNamestringFirst name (max 100 characters)No
lastNamestringLast name (max 100 characters)No
companystringCompany name (max 100 characters)No
emailstringEmail address (lowercase)No
phonestringPhone number (max 50 characters)No
addressstringStreet address (max 500 characters)No
citystringCity (max 100 characters)No
statestringState or province (max 100 characters)No
postalCodestringPostal code (max 20 characters)No
countrystringISO 3166-1 alpha-2 country code, e.g. USNo
legalstringAny legal details to show on documents (max 100 characters)No
info

If firstName is provided, lastName must also be provided.

Tax / Registration Parameters

NameTypeDescriptionRequired
idstringIdentifier value (max 50 characters)Yes, if name is provided
namestringIdentifier name, e.g. VAT ID (max 50 characters)No

Peppol Parameters

schemeId and participantId must be provided together.

NameTypeDescriptionRequired
schemeIdstring4-digit Peppol EAS scheme code, e.g. 0225 for FranceNo
participantIdstringPeppol participant identifier (max 130 characters)No

E-Invoice Parameters

NameTypeDescriptionRequired
standardstringE-invoicing standard for the customer's documents, possible values are XRechnung (German CIUS of EN 16931), FacturX (Factur-X hybrid PDF), or PeppolBis (Peppol BIS Billing 3.0). If omitted, plain PDFs are issuedNo

Update Customer

PUT https://api.invoiless.com/v1/customers/:id

PATCH https://api.invoiless.com/v1/customers/:id

Update an existing customer. See PUT vs PATCH for details on the differences.

Path Parameters

NameTypeDescriptionRequired
idstringCustomer idYes

Body Parameters

Accepts the same parameters as Create Customer.

Get Customer

GET https://api.invoiless.com/v1/customers/:id

Retrieve a specific customer by ID.

Path Parameters

NameTypeDescriptionRequired
idstringCustomer idYes

Get Customers

GET https://api.invoiless.com/v1/customers

Retrieve a paginated list of all customers.

Query Parameters

NameTypeDescriptionRequired
pagenumberPage numberNo, default is 1
limitnumberPage limitNo, default is 50
searchstringSearch by customer name, email, phone, or tagsNo

Delete Customer

DELETE https://api.invoiless.com/v1/customers/:id

Permanently delete a customer.

Path Parameters

NameTypeDescriptionRequired
idstringCustomer idYes