customers

Update customer contact

Partially updates a customer contact (e-mail/phone) and name. Document, type and externalId are immutable.

patch/api/v1/customers/{id}

Path parameters

idstring uuid required
Example:6f0d9c5a-7d4d-4f6a-9b6a-2b5a0b5a0b5a

Customer identifier (UUID v4).

Request body

emailstring nullable
phonestring nullable
birth_datestring nullable
social_namestring nullable
phone_is_whatsappboolean
namestring

Example request

{
  "birth_date": "1990-05-20"
}

Response

Customer updated.

idstring required
type'PF' | 'PJ' required
origin'ERP' | 'ORDER' | 'MANUAL' required
external_idstring nullable required
namestring required
emailstring nullable required
phonestring nullable required
birth_datestring nullable required
social_namestring nullable required
phone_is_whatsappboolean required
total_ordersnumber required
total_spentnumber required
avg_ticketnumber required
first_order_atstring nullable required
last_order_atstring nullable required
created_atstring required
updated_atstring required

Changes