1. Getting the user’s existing clients
First, you should retrieve a list of the user’s clients. Be sure to include that user’saccess_token in the headers.
2. Adding or updating a client
You should update the following fields for any new or existing client:| Field | Description | Format |
|---|---|---|
| id | Id of the client record, if this is an update | Numeric |
| businessId | Id of the business that this should be billed from | String |
| name | Name of the client | Any string |
| status | Status of the client; use “OPEN” in most cases | Must be one of the following: “OPEN”, “ARCHIVED” |
| Client’s email address; new invoices created for this client will be sent to this email by default | Well-formatted string | |
| ccEmails | Emails that should be cc’ed on invoices created for this client by default | Array of strings |
| bccEmails | Emails that should be bcc’ed on invoices created for this client by default | Array of strings |