latestOpenAPI 3.0.02026-08-1284111344.5 KB
14666f4db0f8
Clients
Create a new Client
Beta: This endpoint is subject to change and may contain bugs. Breaking changes may occur without notice.
Creates a new client and returns the created client object. Either email or primaryPhone must be provided. The client's service location is created from addressDetails. Optionally accepts a billing address, an ad group, a parent client, tax exemption details, and custom field values.
post/v2/clients
Headers
Authorizationstring required
Example:Bearer <token>
Bearer Token
Request body
Example request
{
"firstName": "John",
"lastName": "Doe",
"companyName": "Example Inc.",
"email": "john.doe@example.com",
"primaryExt": "123",
"primaryPhone": "1234567890",
"secondaryExt": "456",
"secondaryPhone": "1234567890",
"addressDetails": {
"country": "US",
"state": "NY",
"city": "New York",
"zipCode": "10001",
"address": "123 Main St",
"unit": "100"
},
"billingAddressDetails": {
"country": "US",
"state": "NY",
"city": "New York",
"zipCode": "10001",
"address": "123 Main St",
"unit": "100"
},
"adGroupId": "AG-59kGnmvvyamryw1O",
"allowBilling": true,
"parentClientId": "CL-OvmDp2yvv1yqMwRl",
"taxExemptReason": "9",
"description": "This is a description",
"customFields": [
{
"id": "CF-DNr3zVoKWod6abEn",
"value": "test"
}
]
}Response
The created client.
Example response
{
"id": "CL-OvmDp2yvv1yqMwRl",
"serialId": 1023,
"firstName": "John",
"lastName": "Doe",
"fullName": "John Doe",
"companyName": "John Doe Inc.",
"email": "john.doe@example.com",
"primaryExt": "123",
"primaryPhone": "1234567890",
"secondaryExt": "456",
"secondaryPhone": "1234567890",
"country": "USA",
"state": "NY",
"city": "New York",
"zipcode": "10001",
"unit": "100",
"address": "123 Main St",
"serviceAddress": "123 Main St, New York, NY 10001",
"billingAddress": "123 Main St, New York, NY 10001",
"allowBilling": true,
"adGroup": {
"id": "AG-71b8d7310acbf8cc",
"name": "Ad Group 1"
},
"tags": [
{
"id": "TAG-211d1676f4b90c40",
"name": "Tag 1",
"color": "#edce4c"
}
],
"parentClient": {
"id": "CL-OvmDp2yvv1yqMwRl",
"serialId": 1023,
"firstName": "John",
"lastName": "Doe",
"fullName": "John Doe",
"companyName": "John Doe Inc.",
"email": "john.doe@example.com",
"primaryExt": "123",
"primaryPhone": "1234567890",
"secondaryExt": "456",
"secondaryPhone": "1234567890",
"country": "USA",
"state": "NY",
"city": "New York",
"zipcode": "10001",
"unit": "100",
"address": "123 Main St",
"serviceAddress": "123 Main St, New York, NY 10001",
"billingAddress": "123 Main St, New York, NY 10001",
"allowBilling": true
},
"clientContacts": [
{
"id": "CLC-211d1676f4b90c40",
"firstName": "John",
"lastName": "Doe",
"fullName": "John Doe",
"email": "john.doe@example.com",
"primaryPhone": "1234567890",
"secondaryPhone": "1234567890",
"country": "USA",
"state": "NY",
"city": "New York",
"zipcode": "10001",
"address": "123 Main St",
"role": "Property Manager",
"note": "Prefers contact by email."
}
],
"notes": [
{
"id": "CLN-211d1676f4b90c40",
"note": "Customer requested a follow-up call.",
"techName": "John Doe",
"createdAt": "2021-01-01 00:00:00"
}
],
"customFields": [
{
"id": "CF-eYLPK7198xVp6Z8q",
"fieldName": "Custom Field 1",
"value": "John Doe"
}
],
"created": "2026-01-01 00:00:00"
}