- Tổng quan
- Hướng dẫn xác thực
- API Beta 1.0
- API Zalo Mini App (Beta)
- Khách hàng
- Đơn hàng
- Sản phẩm
- Lịch khởi hành
- Lead (Cơ hội)
- Khách sạn
- Kế toán
- Phiếu thu
- Phiếu chi
- Hóa đơn
- Cấu hình
- Zalo ZNS
- Địa điểm
- Nhân sự nội bộ
- Webhook
- Trạng thái khách hàng
- Loại dịch vụ
- Zalo ZNS
Create customer
POST
/api/v1/customers
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
pronoun
string
optional
name
string
required
phone
string
required
phone_sec
string
optional
email
string
optional
email_sec
string
optional
country_code
string
optional
sub_group
string
optional
Default: standard
membership_tier_id
integer
optional
company_id
integer
optional
creator_email
string
optional
sales_email
string
optional
type_id
string
optional
source_id
string
optional
birthday
string
optional
Format: dd/mm/yyyy
identification
string
optional
passport
string
optional
address
string
optional
agent_level_id
integer
optional
facebook_link
string
optional
facebook_name
string
optional
gender
string
optional
Example
{
"pronoun": "Chị",
"name": "Thân Thị Cẩm Lệ",
"phone": "0888899008",
"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"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://demo.tourwell.net/api/v1/customers' \
--header 'Content-Type: application/json' \
--data-raw '{
"pronoun": "Chị",
"name": "Thân Thị Cẩm Lệ",
"phone": "0888899008",
"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"
}'
Responses
🟢201Created
application/json
Body
success
boolean
required
message
string
required
data
object
required
id
integer
required
name
string
required
code
string
required
link_erp
string
required
Example
{"success":true,"message":"The customer created successfully","data":{"id":2150,"name":"Thân Thị Cẩm Lệ","code":"KH2150","link_erp":"http://{{host}}/admin/customer/2150/show"}}
Modified at 2025-06-16 16:42:22