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

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
addressstringFull address (max 500 characters)No
legalstringLegal info, e.g. Company number (max 100 characters)No
info

If firstName is provided, lastName must also be provided.

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
searchnumberSearch by customer name, email, or phoneNo

Delete Customer

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

Permanently delete a customer.

Path Parameters

NameTypeDescriptionRequired
idstringCustomer idYes