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
| Name | Type | Description | Required |
|---|---|---|---|
| billTo | object | Bill to address | Yes |
| shipTo | object | Ship to address | No |
| cc | array[string] | Cc email recipients (max 3, unique, cannot duplicate billTo.email or bcc emails) | No |
| bcc | array[string] | Bcc email recipients (max 3, unique, cannot duplicate billTo.email or cc emails) | No |
| currency | string | ISO 4217 currency code | No |
| lang | string | Customer 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 zh | No |
| dateFormat | string | Date format, possible values are DD/MM/YYYY, MM/DD/YYYY, YYYY/MM/DD, or YYYY/DD/MM, with 3 possible separators: /, -, or . | No |
| attachPdf | bool | Attach PDF copy to emails | No |
| notes | string | Private notes (max 1000 characters) | No |
| tags | array[string] | Customer tags (max 10 tags, each max 50 characters) | No |
Bill To / Ship To Parameters
Either
firstNameandlastName, orcompany, is required.
| Name | Type | Description | Required |
|---|---|---|---|
| firstName | string | First name (max 100 characters) | No |
| lastName | string | Last name (max 100 characters) | No |
| company | string | Company name (max 100 characters) | No |
string | Email address (lowercase) | No | |
| phone | string | Phone number (max 50 characters) | No |
| address | string | Full address (max 500 characters) | No |
| legal | string | Legal info, e.g. Company number (max 100 characters) | No |
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
| Name | Type | Description | Required |
|---|---|---|---|
| id | string | Customer id | Yes |
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
| Name | Type | Description | Required |
|---|---|---|---|
| id | string | Customer id | Yes |
Get Customers
GET https://api.invoiless.com/v1/customers
Retrieve a paginated list of all customers.
Query Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| page | number | Page number | No, default is 1 |
| limit | number | Page limit | No , default is 50 |
| search | number | Search by customer name, email, or phone | No |
Delete Customer
DELETE https://api.invoiless.com/v1/customers/:id
Permanently delete a customer.
Path Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| id | string | Customer id | Yes |