Create client hub

Create client hub for customer.

Address

For addresses with a 3-level structure (Province/City, District, Ward/Commune — based on Vietnam’s administrative divisions before July 1, 2025), provide the following fields:

  • ProvinceName: Recipient’s province/city name.

  • DistrictName: Recipient’s district name.

  • WardName: Recipient’s ward/commune name.

For addresses with a 2-level structure (Province/City, Ward/Commune — based on Vietnam’s administrative divisions from July 1, 2025), provide the following fields:

  • ProvinceName: Recipient’s province/city name.

  • DistrictName: leave null.

  • WardName: Recipient’s ward/commune name.

CustomerInsertClientHub

POST /Api/Customer/CustomerInsertClientHub

Request Body

Name
Type
Description

Address*

string

Customer's Addresss following Apartment number/Street name, Ward name, District name, Province name.

ContactName*

string

Contact name

ContactPhone*

string

Contact phone

ProvinceName*

string

Province name

DistrictName*

string

District name

WardName

string

Ward name

CusWarehouseID

string

ID of Shop/WareHouse

CusWarehouseName

String

Name of Shop/WareHouse

{
    "HubInfo": {
        "Address": "HH1, Yên Hòa, Cầu Giấy, Hà Nội",
        "WardID": "CYGYHO",
        "ClientHubID": "248",
        "ContactName": "Nguyễn Thành Trung",
        "ContactPhone": "0986226622",
        "DistrictID": "CGY",
        "IsMain": "true",
        "ProvinceID": "HNI",
        "CustomerID": "15",
        "Status": "Init",
        "StatusName": "Chờ duyệt",
        "CusWarehouseName: "Chi nhánh HN1"
    },
    "Errors": [],
    "ErrorMessage": ""
}

Example

{
    "HubInfo": 
	{
        "Address": "326 Võ Văn Kiệt, Phường Cầu Ông Lãnh, Hồ Chí Minh",
        "ContactName": "Nguyễn Văn A",
        "ContactPhone": "0909123456",
        "ProvinceName": "Thành phố Hồ Chí Minh",
        "WardName": "Phường cầu ông lãnh",
        "CusWarehouseID": "30984",
        "CusWarehouseName": "Chi nhánh số 3"
    }
}

Last updated

Was this helpful?