Skip to main content
PATCH
/
v1
/
customers
/
{id}
Update customer
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": {}
  }
}

Authorizations

Authorization
string
header
required

Organization API key using Authorization: Bearer sk_....

Path Parameters

id
string
required

Identifier of the customer.

Body

application/json

Request body for updating a customer.

input
object
required

Client payload used to update a customer.

Response

Customer updated

Successful customer update response.

customer
object
required

Customer record including identity, contact details, and messaging preferences.