Add Staff to the Store

API Add Staff to the Store

 

 

Use API add staff is mean manage your store.

Caution : The API Add Staff to the Store need to infusion Token and ShopId in header

 

post/get
https://online-gateway.ghn.vn/shiip/public-api/v2/shop/add-client
https://dev-online-gateway.ghn.vn/shiip/public-api/v2/shop/add-client
curl --location --request POST 'https://dev-online-gateway.ghn.vn/shiip/public-api/v2/shop/add-client' \
--header 'Content-Type: application/json' \
--header 'ShopId: 81221' \
--header 'Token: eb0554cd-cce6-11eb-bc42-967656021ee1' \
--data-raw '{"username":"0378174712"}'
 

Parameter

Field Type Description
token String

Must be sent with all client requests. This Token helps server to validate request source. Provided by GHN.

ShopId  Int

Choose an ID from GetStore

username  String

Phone number of staff. (The phone number created in system of GHN)

{
    "code": 200,
    "message": "Success",
    "data": {
        "client_shop_id":73941            
    }
}

Structure Response

Field Description
client_shop_id

Client Shop ID

{
    "code": 400,
    "message": "Client have existed in Shop",
    "data": null
    "code_message": "CLIENT_HAVE_EXISTED",
    "code_message_value": "Người dùng đã được thêm vào cửa hàng"
}