Users

The user-related APIs allow you to register for an account and obtain access tokens.

Register

This API allows you to register a new account on the SuperShip system.

Endpoint

post/v1/partner/auth/register

Request

Parameters

FieldRequiredTypeDescription
projectYesStringThe name of the shop/company. For example: HMN Store.
nameYesStringThe full name of the representative. For example: Hoàng Mạnh Nam.
phoneYesStringThe phone number of the shop/company. For example: 0989998888.
emailYesStringThe email of the shop/company. For example: hmn.store@gmail.com.
passwordYesStringThe password.
partnerYesStringThe secret code for large e-commerce partners of SuperShip.

Example

curl --request POST \
     --url https://api.mysupership.vn/v1/partner/auth/register \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --data '{
    	"project": "HMN Store",
    	"name": "Hoàng Mạnh Nam",
    	"phone": "0989998888",
    	"email": "hmn.store@gmail.com",
    	"password": "323423",
    	"partner": "lPxLuxfiTotCyZ1ZnQjMepUL24HLd05ybNBhVGFN"
    }'

Response

Returned Result

FieldTypeDescription
projectStringName of the Shop/Company. For example: HMN Store.
nameStringFull name of the Representative. For example: Hoàng Mạnh Nam.
phoneStringPhone number of the Shop/Company. For example: 0989998888.
emailStringEmail address of the Shop/Company. For example: hmn.store@gmail.com.
referralStringReferral code. For example: PLOKJ52747.
token_typeStringType of Token. For example: Bearer.
expires_inIntegerTime (in seconds) until the Access Token expires. For example: 31536000.
access_tokenStringAccess Token. For example: ZT2PS0pmHPHDKjRu6EMIcoM8rFM8XYHZ1Ye3zRiQ.

Example

{
    "status": "Success",
    "results": {
        "code": "S748146",
        "project": "HMN Store",
        "name": "Hoàng Mạnh Nam",
        "phone": "0989998888",
        "email": "hmn.store@gmail.com",
        "referral": "PLOKJ52747",
        "token_type": "Bearer",
        "expires_in": 31536000,
        "access_token": "<Access-Token>"
    }
}
Last Updated: 5/6/2023, 4:28:03 PM