Tạo khách hàng
/customers
POST
Query Parameters
Name
Type
Description
merchant_token
string
Token do người dùng tự tạo trong hệ thống quản lý
Headers
Name
Type
Description
Accept
string
application/json
Content-Type
string
application/json
Request Body
Name
Type
Description
name
string
Tên khách hàng
phone
string
Số điện thoại
string
note
string
Ghi chú
street
string
Địa chỉ
ward_code
string
Mã phường xã
district_code
string
Mã quận huyện
province_code
string
Mã tỉnh thành
country_code
string
Mã quốc gia. Defaults to 'VN'
{
"code": "success",
"message": "Thành công",
"data": {
"code": "CM0000000002",
"name": "Nguyễn Thị Vân",
"phone": "01234567832",
"email": "[email protected]",
"note": "Customer note",
"image": null,
"address": {
"name": "Nguyễn Thị Vân",
"organization": null,
"email": "[email protected]",
"phone": "01234567832",
"postal_code": null,
"country_code": "VN",
"street": "15 Xuân La",
"ward_code": "13030",
"province_code": "10",
"district_code": "1290",
"full_location": "15 Xuân La"
}
}
}
Last updated