curl --request PATCH \
--url https://api.quentli.com/v1/customers/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"data": {
"name": "Juan Perez",
"email": "juan@example.com",
"phoneNumber": "+525512345678",
"password": "S3curePassw0rd!",
"username": "juan_perez_01",
"tags": [
"VIP",
"Colegiatura"
],
"tosIp": "189.203.12.45",
"secondaryPhoneNumber": "+525598765432",
"acceptedServiceAgreement": true,
"skipTaxInvoice": false,
"signature": "signed-by-customer",
"assigneeId": "cmab12cd3000x1a2b3c4d5e6f",
"optedOutWhatsappAt": "2025-01-15T10:30:00.000Z",
"hasChangedPassword": true,
"phoneNumberVerified": true,
"emailVerified": true,
"replyWithAssistant": false,
"metadata": [
{
"key": "studentId",
"value": "A-1029"
}
],
"meta": {
"grade": "5A"
}
},
"otp": "123456"
}
}
'{
"customer": {
"id": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"name": "<string>",
"username": "<string>",
"organizationId": "<string>",
"acceptedServiceAgreement": true,
"skipTaxInvoice": true,
"emailVerified": true,
"phoneNumberVerified": true,
"hasChangedPassword": true,
"email": "<string>",
"phoneNumber": "<string>",
"secondaryPhoneNumber": "<string>",
"archivedAt": "<string>",
"archivedById": "<string>",
"signatureAcceptedAt": "<string>",
"optedOutWhatsappAt": "<string>",
"optedInWhatsappAt": "<string>",
"startedWhatsappAt": "<string>",
"replyWithAssistant": true,
"metadata": [
{
"key": "<string>",
"value": "<string>"
}
],
"meta": {}
}
}Updates editable fields of an existing customer by id.
curl --request PATCH \
--url https://api.quentli.com/v1/customers/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"data": {
"name": "Juan Perez",
"email": "juan@example.com",
"phoneNumber": "+525512345678",
"password": "S3curePassw0rd!",
"username": "juan_perez_01",
"tags": [
"VIP",
"Colegiatura"
],
"tosIp": "189.203.12.45",
"secondaryPhoneNumber": "+525598765432",
"acceptedServiceAgreement": true,
"skipTaxInvoice": false,
"signature": "signed-by-customer",
"assigneeId": "cmab12cd3000x1a2b3c4d5e6f",
"optedOutWhatsappAt": "2025-01-15T10:30:00.000Z",
"hasChangedPassword": true,
"phoneNumberVerified": true,
"emailVerified": true,
"replyWithAssistant": false,
"metadata": [
{
"key": "studentId",
"value": "A-1029"
}
],
"meta": {
"grade": "5A"
}
},
"otp": "123456"
}
}
'{
"customer": {
"id": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"name": "<string>",
"username": "<string>",
"organizationId": "<string>",
"acceptedServiceAgreement": true,
"skipTaxInvoice": true,
"emailVerified": true,
"phoneNumberVerified": true,
"hasChangedPassword": true,
"email": "<string>",
"phoneNumber": "<string>",
"secondaryPhoneNumber": "<string>",
"archivedAt": "<string>",
"archivedById": "<string>",
"signatureAcceptedAt": "<string>",
"optedOutWhatsappAt": "<string>",
"optedInWhatsappAt": "<string>",
"startedWhatsappAt": "<string>",
"replyWithAssistant": true,
"metadata": [
{
"key": "<string>",
"value": "<string>"
}
],
"meta": {}
}
}Organization API key using Authorization: Bearer sk_....
Identifier of the customer.
Request body for updating a customer.
Client payload used to update a customer.
Show child attributes
Customer updated
Successful customer update response.
Customer record including identity, contact details, and messaging preferences.
Show child attributes
Was this page helpful?