SIXR API
/auth
POST
https://partnerapi.six.th/v1/auth
This endpoint allows you to let user do authentications
Headers
x-api-id
string
An API id
x-api-key
string
An API key
Request Body
authrequest
object
{
"phone_number": "+66875556666"
}
phone_number
: Country code is needed to put at the beginning without ‘0’ leading.
/auth
PUT
https://partnerapi.six.th/v1/auth
This endpoint allows you to let user do authentications
Headers
x-api-id
string
An API id
x-api-key
string
An API Key
Request Body
authrequest
object
{
"ref_no": "GDDNE",
"transaction_id": "07816604-9caf-45b6-ace2-e4e3565193dc",
"confirm_code": "554133"
}
ref_no
: Random 5 alphabet character referenced to OTP code which will also be part of the SMS message.
transaction_id
: Reference transaction id refer to generated OTP code. This code will not seen by the user.
confirm_code
: 6--digits of number received via user’s SMS message.
/users
POST
https://partnerapi.six.th/v1/users
Headers
x-api-id
string
An API id
x-api-key
string
An API KEY
Request Body
createUserRequest
object
{
"ref_no": "GDDNE",
"transaction_id": "07816604-9caf-45b6-ace2-e4e3565193dc",
"username": "foo"
}
ref_no
: Ref No. of the OTP which has been already verified.
transaction_id
: The transaction ID of the OTP which has been already verified.
username
: Decided username.
/transactions/reward-six
POST
https://partnerapi.six.th/v1/transactions/reward-six
Headers
x-api-id
string
An API id
x-api-key
string
An API Key
Request Body
rewardTxRequest
object
{
"user_id": "07816604-9caf-45b6-ace2-e4e3565193dc",
"sixr_amount": 10
}
user_id
: Generated user identifier
sixr_amount
: Amount of SIXr to reward to user
/sixr/redeems/claims
POST
https://partnerapi.six.th/sixr/redeems/claims
For claim SIXR
Request Body
x-six-authorization
string
SIX Authorization
claimRequest
object
{
"reward_id": "828",
"qty": 5
}
reward_id
: Known as product ID to be claimed
qty
: Claimed quantity
/sixr/tx
POST
https://partnerapi.six.th/sixr/tx
Request Body
x-six-authorization
string
SIX Authorization
txRequest
object
{
"type": "Payment",
"asset_name": "SIXR",
"to_username": "v"
}
type
: Tx type, for now it’s only Payment
asset_name
: Asset name, now there’s only SIXR
to_username
: Username of the destination user
Last updated