Upsert Customer
PUT
/v1/customers/source/{source}/externalId/{externalId}
customer
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT '/v1/customers/source/{{source}}/externalId/{{customerExternalId}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"externalId": "{{customerExternalId}}",
"source": "{{source}}",
"name": "Complyt",
"address": {
"city": "Sacramento",
"country": "US",
"state": "CA",
"street": "944 W. Wintergreen St.",
"zip": "95823"
},
"customerType": "RETAIL",
"externalTimestamps": {
"createdDate": "2022-10-19T07:00:00.000Z",
"updatedDate": "2022-10-19T09:07:54.585Z"
}
}'
Response Response Example
200 - Success
{
"complytId": "9f8ee193-1a71-42b4-801d-ee1d8a161fbe",
"externalId": "externalIdExample",
"source": "1",
"name": "Complyt",
"address": {
"city": "Sacramento",
"country": "US",
"county": null,
"state": "CA",
"street": "944 W. Wintergreen St.",
"zip": "95823",
"isPartial": false
},
"email": "example@some.mail.com",
"customerType": "RETAIL",
"internalTimestamps": {
"createdDate": "2023-01-10T17:40:44.357",
"updatedDate": "2023-01-11T17:10:21.275"
},
"externalTimestamps": {
"createdDate": "2022-10-19T07:00:00",
"updatedDate": "2022-10-19T09:07:54.585"
},
"comment": "this is a customer"
}
Request
Path Params
source
string
required
Example:
{{source}}
externalId
string
required
Example:
{{customerExternalId}}
Body Params application/json
Responses
Modified at 2025-01-01 15:21:30