Create customer

Get Cakes

POST

Query Parameters

NameTypeDescription

merchant_token

string

Token is created in management system.

Headers

NameTypeDescription

Accept

string

application/json

Content-Type

string

application/json

Request Body

NameTypeDescription

name

string

Customer name

phone

string

Phone numberr

email

string

Customer email address

note

string

Note

street

string

Customer street

ward_code

string

Customer ward code

district_code

string

Customer district code

province_code

string

Customer province code

country_code

string

Customer country code

{
    "code": "success",
    "message": "Thành công",
    "data": {
        "code": "CM0000000002",
        "name": "Nguyễn Thị Vân",
        "phone": "01234567832",
        "email": "customer@email.com",
        "note": "Customer note",
        "image": null,
        "address": {
            "name": "Nguyễn Thị Vân",
            "organization": null,
            "email": "customer@email.com",
            "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