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


curl --location --request POST '' \
--header 'Content-Type: application/json' \
--header 'Token: f982a85e-8145-11ea-be3d-06ca571b73c9' \
--header 'Content-Type: text/plain' \
--data-raw '{
    "phone": "0984330700"


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 shop owner (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"