Cập nhật thông tin

/customers

PUT

Query Parameters

NameTypeDescription

merchant_token

string

Token do người dùng tự tạo trong hệ thống quản lý

Headers

NameTypeDescription

Accept

string

application/json

Content-Type

string

application/json

Request Body

NameTypeDescription

code

string

Mã khách hàng

name

string

Tên khách hàng

phone

string

Số điện thoại

email

string

Email

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": "Phạm Thị Hà",
        "phone": "01234567832",
        "email": "customer@email.com",
        "note": "Customer note",
        "image": null,
        "address": {
            "name": "Phạm Thị Hà",
            "organization": null,
            "email": "customer@email.com",
            "phone": "01234567832",
            "postal_code": null,
            "country_code": "VN",
            "street": "15 Xuân Đỉnh",
            "ward_code": "13030",
            "province_code": "10",
            "district_code": "1290",
            "full_location": "15 Xuân Đỉnh"
        }
    }
}

Last updated