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


curl --location --request POST '' \
--header 'Content-Type: application/json' \
--header 'ShopId: 81221' \
--header 'Token: eb0554cd-cce6-11eb-bc42-967656021ee1' \
--data-raw '{"username":"0378174712"}'


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