Authorization: Bearer ********************
{
"pronoun": "Chị",
"name": "Thân Thị Cẩm Lệ",
"phone": "0888899000",
"phone_sec": "0912345678",
"email": "",
"email_sec": "",
"country_code": "+84",
"sub_group": "personal",
"membership_tier_id": 1,
"company_id": 123,
"creator_email": "admin@yourdomain.com",
"sales_email": "kd2@upwell.vn",
"type_id": "1",
"source_id": "1",
"birthday": "01/01/1990",
"identification": "123456789",
"passport": "B12345678",
"address": "123 Lý Thường Kiệt, Quận 10, TP.HCM",
"agent_level_id": 2,
"facebook_link": "",
"facebook_name": "Cẩm Lệ",
"gender": "female"
}
curl --location --request PUT 'https://demo.tourwell.net/api/v1/customers/' \
--header 'Content-Type: application/json' \
--data-raw '{
"pronoun": "Chị",
"name": "Thân Thị Cẩm Lệ",
"phone": "0888899000",
"phone_sec": "0912345678",
"email": "",
"email_sec": "",
"country_code": "+84",
"sub_group": "personal",
"membership_tier_id": 1,
"company_id": 123,
"creator_email": "admin@yourdomain.com",
"sales_email": "kd2@upwell.vn",
"type_id": "1",
"source_id": "1",
"birthday": "01/01/1990",
"identification": "123456789",
"passport": "B12345678",
"address": "123 Lý Thường Kiệt, Quận 10, TP.HCM",
"agent_level_id": 2,
"facebook_link": "",
"facebook_name": "Cẩm Lệ",
"gender": "female"
}'
{"success":true,"message":"Customer updated successfully","data":{"id":2147,"name":"Thân Thị Cẩm Lệ","code":"KH2147","link_erp":"http://{{host}}/admin/customer/2147/show"}}