Get OTP (Affiliate)

API GET OTP (Affiliate)

 

 

Use API get OTP then add Client in Shop.

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/affiliateOTP
https://dev-online-gateway.ghn.vn/shiip/public-api/v2/shop/affiliateOTP
curl --location --request POST 'https://dev-online-gateway.ghn.vn/shiip/public-api/v2/shop/affiliateOTP' \
--header 'Content-Type: application/json' \
--header 'Token: f982a85e-8145-11ea-be3d-06ca571b73c9' \
--header 'Content-Type: text/plain' \
--data-raw '{
    "phone": "0984330700"
}'

Parameter

Field Type Description
token String Token of partner
phone Int

Phone number of partner's customers

{
    "code": 200,
    "message": "Success",
    "data": {
        "TLL":600            
    }
}
{
    "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"
}