API Add Staff to Store by OTP (Affiliate)
Use API add staff is mean manage your store.
Caution : The API Add Staff to the Store need to infusion token in header
post/get
https://online-gateway.ghn.vn/shiip/public-api/v2/shop/affiliateCreateWithShop
https://dev-online-gateway.ghn.vn/shiip/public-api/v2/shop/affiliateCreateWithShop
curl --location --request POST 'https://dev-online-gateway.ghn.vn/shiip/public-api/v2/shop/affiliateCreateWithShop' \
--header 'Token: 637170d5-942b-11ea-9821-0281a26fb5d4' \
--header 'Content-Type: application/json' \
--data-raw '{
"phone": "0705099871",
"otp": "831973",
"shop_id": 59037
}'
Parameter
Field | Type | Description |
---|---|---|
token | String |
Must be sent with all client requests. This Token helps server to validate request source. Provided by GHN. |
phone | Int |
Phone number of staff(The phone number created in system of GHN). |
otp | Int |
Get in API OTP |
shop_id | Int |
Manage information for shop/seller |
{
"code": 200,
"message": "Success",
"data": null
}
{
"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"
}