Update a client
URL
POST https://api.complycube.com/v1/clients/:id
Updates the specified client by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Once a client is created, their type can no longer be amended.
Headers
Content-Type
*
string
The content-type must always be set to application/json
.
Authorization
*
string
The API live
or test
key.
Path parameters
id
*
string
The ID of the client.
Body
email
string
The client's email address.
mobile
string
The client's mobile number.
telephone
string
The client's telephone number.
externalId
string
A unique identifier that you can associate with the client. For example, this can be the client ID in your system.
joinedDate
string
The date and time when the client was registered with you. This is relevant for users that migrate existing customers. The format is YYYY-MM-DD
.
personDetails
object
Primary details for a client of type person
. This is required when the type
is person. Also, see the person details object below.
companyDetails
object
Primary details for a client of type company
. This is required when the type
is company. Also, see the company details object below.
metadata
object
Set of key-value pairs that you can associate with the client object. This is useful for storing additional information about the client in a structured format. You can specify up to 20 keys, with key names up to 40 characters long and values up to 500 characters long.
Example request
Example response
Last updated