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: 552' \
--header 'Token: 402ce5b3-6d79-11ea-bf2c-c61b2981381b' \
--header 'Content-Type: text/plain' \
--data-raw '{"username":"0973800333"}'

}'

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            
    }
}
{
    "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"
}