Create and Update a Client
Explore how to create new clients, update their details, and retrieve a list of clients in your FreshBooks account using JavaScript. Understand the required API endpoints, request parameters, and how to perform these operations with proper authorization.
We'll cover the following...
In the previous lesson, we extracted the ACCOUNT_ID of the authenticated user. Here, the user is an admin who manages and interacts with the application. They're responsible for making all API calls. Meanwhile, a client is an entity for which a user maintains records.
This chapter walks us through some of the operations related to clients and contacts. In this lesson, we’ll create a new client and update it using the following endpoints:
Create and list clients:
/accounting/account/{ACCOUNT_ID}/users/clientsUpdate a client:
/accounting/account/{ACCOUNT_ID}/users/clients/{CLIENT_ID}
Note: These endpoints of
clientsrequireuser:clients:readanduser:clients:writepermissions to perform the intended tasks.
Create a client
In this section, we’ll create a new client using the
/accounting/account/{ACCOUNT_ID}/users/clients endpoint. This endpoint utilizes the ...