Add New Client
Prod Env
{{subdomain}}/api2
Prod Env
{{subdomain}}/api2
POST
{{subdomain}}/api2
Last modified:2025-03-23 23:11:40
Maintainer:Not configured
type
* (integer): Client type (1: individual, 2: business)business_name
* (string): Business name (required for type 2)first_name
* (string): First namelast_name
* (string): Last nameemail
* (string): Email addresspassword
(string): Password for client portal accessphone1
(string): Primary phone numberphone2
(string): Secondary phone numberaddress1
(string): Street address line 1address2
(string): Street address line 2city
(string): Citystate
(string): State/provincepostal_code
(string): Postal/ZIP codecountry_code
* (string): 2-letter country code (e.g., US, UK)website
(string): Website URLtax_registration
(string): Tax registration numbernotes
(string): Internal notes about the clientgroup_id
(integer): Client group IDcustom_fields
(object): Custom field values{
"result": "success",
"code": 201,
"data": {
"Client": {
"id": 17,
// Other client fields...
}
},
"message": "Client created successfully"
}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '{{subdomain}}/api2/api2/clients.json' \
--header 'Content-Type: text/plain' \
--data-raw '{
"Client": {
"type": 2,
"business_name": "TechStart Corp",
"first_name": "Michael",
"last_name": "Johnson",
"email": "michael.johnson@techstart.com",
"password": "securepassword123",
"phone1": "555-7890",
"phone2": "555-0987",
"address1": "789 Innovation Blvd",
"address2": "Floor 4",
"city": "San Francisco",
"state": "CA",
"postal_code": "94107",
"country_code": "US",
"website": "https://techstart.example.com",
"tax_registration": "98-7654321",
"notes": "New technology startup client",
"group_id": 2,
"custom_fields": {
"industry": "Software Development",
"referral_source": "Conference"
}
}
}'
Response Response Example
201 - Success Response
{
"result": "success",
"code": 201,
"data": {
"Client": {
"id": 17,
"type": 2,
"business_name": "ACME Corp",
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@example.com",
"created": "2023-03-23 15:30:42",
"modified": "2023-03-23 15:30:42",
"active": 1
}
},
"message": "Client created successfully"
}
Request
Body Params text/plain