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": "cus_1234567890abcdefghij",
    "createdAt": "2025-01-10T12:00:00.000Z",
    "updatedAt": "2025-01-10T12:00:00.000Z",
    "name": "Juan Pérez",
    "username": "juan_perez_01",
    "organizationId": "org_1234567890abcdefghij",
    "acceptedServiceAgreement": true,
    "skipTaxInvoice": false,
    "emailVerified": false,
    "phoneNumberVerified": true,
    "hasChangedPassword": true,
    "email": "juan@example.com",
    "phoneNumber": "+525512345678",
    "secondaryPhoneNumber": null,
    "archivedAt": null,
    "archivedById": "u_1234567890abcdefghij",
    "signatureAcceptedAt": "2025-01-10T12:00:00.000Z",
    "optedOutWhatsappAt": null,
    "optedInWhatsappAt": "2025-01-05T10:00:00.000Z",
    "startedWhatsappAt": "2025-01-05T09:55:00.000Z",
    "replyWithAssistant": false,
    "metadata": [
      {
        "key": "studentId",
        "value": "A-1029"
      }
    ],
    "meta": {
      "studentId": "A-1029"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.quentli.com/llms.txt

Use this file to discover all available pages before exploring further.

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.