Skip to main content

Update Customer

Partial update of an existing customer projection. Only fields present in the request are applied; omitted fields are left untouched.

URL​

POST /api/c2a/customer/update

Request Parameters​

Body: UpdateCustomerRequest. Same shape as StoreCustomerRequest plus the target CustomerUrn (or ExternalIdentifier). Server accepts whichever identifier is supplied and resolves to the canonical record.

NameTypeDescription
customerobject (CustomerDto)Required. Must include customerUrn or externalIdentifier. Other fields are optional and overwrite the projection.
claimedRegionobject (ClaimedRegion)Optional region override.

Request Example​

{
"customer": {
"customerUrn": "cu.00.482",
"email": "jane.new@example.com",
"phoneNumber": "+49 170 9999999"
}
}

Response Parameters​

UpdateCustomerResponse. Same envelope as StoreCustomerResponse. The returned result reflects the post-update customer record.

NameTypeDescription
resultobject (AzotteCustomer)Updated customer record.
statusobject (AzotteStatus)Operation status envelope.

Sample Response​

{
"result": {
"customerUrn": "cu.00.482",
"externalIdentifier": "crm-9981273",
"email": "jane.new@example.com",
"status": "Active"
},
"status": { "messageCode": "SUCCESS" }
}

Sample Codes​

curl --location 'https://acme.sandbox.azotte.com/api/v1/c2a/customer/update' \
--header 'Content-Type: application/json' \
--header 'x-tn: e2a1c7b2-4f3a-4b8e-9c2d-1a2b3c4d5e6f' \
--header 'x-api-key: sk_dev_acme_sample_123456789' \
--data '{
"customer": {
"customerUrn": "cu.00.482",
"email": "jane.new@example.com",
"phoneNumber": "+49 170 9999999"
}
}'