{
"phone_number": "+66875556666"
}
phone_number
: Country code is needed to put at the beginning without ‘0’ leading.
{"success": true,"data": {"ref_no": "GDDNE","transaction_id": "07816604-9caf-45b6-ace2-e4e3565193dc"}}
{"success": false,"message": "System error"}
{
"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.{"success": true,"data": {"ref_no": "GDDNE","transaction_id": "07816604-9caf-45b6-ace2-e4e3565193dc","user_id": "80a0e232-58b8-45f9-b1a7-c91bd97c7b2d","username": "sixruser","wallet_user": true}}
{"success": true,"error_code": 50,"error_message": "No operation."}/*About error_code50 : No operation for the request206 : Confirm code not matched*/
{
"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.{"user_id": "07816604-9caf-45b6-ace2-e4e3565193dc"}
{"success": true,"error_code": 50,"error_message": "No operation."}/*About error_code50 : No operation for the request120 : Verified OTP has expired220 : Decided username already exists*/
{"success": false,"message": "System error"}
{
"user_id": "07816604-9caf-45b6-ace2-e4e3565193dc",
"sixr_amount": 10
}
user_id
: Generated user identifier
sixr_amount
: Amount of SIXr to reward to user{"success": true,"data": {"tx_id": "a90b3dc20f28a861e687488eec68ca5a3af4165ca6930fb79e38011792b5da14"}}
{"success": true,"error_code": 50,"error_message": "No operation."}/*About error_code50 : No operation for the request210 : User not found*/
{"success": false,"message": "System error"}
{
"reward_id": "828",
"qty": 5
}
reward_id
: Known as product ID to be claimed
qty
: Claimed quantity{"status": 0,"message": "string","body": {"id": "string","event_type": "string","model_type": "string","timestamp": 0,"asset_type": "string","asset_issuer": "string","amount": 0,"amount_usd": 0,"amount_thb": 0,"memo": "string","ref_code": "string","tx_id": "string","direction_type": "string","from": {"wallet": {"model_type": "string","id": "string","type": "string","asset_type": "string","memo": "string","address": "string","balance": 0},"previous_balance": 0,"current_balance": 0},"to": {"wallet": {"model_type": "string","id": "string","type": "string","asset_type": "string","memo": "string","address": "string","balance": 0},"previous_balance": 0,"current_balance": 0}}}
{"success": false,"message": "System error"}
{
"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{"status": "Success","tx_id": "e-fbeab1f3-5671-49ef-854c-1b8d993cb92c"}/*tx_id : The returned transaction id.*/
{"success": false,"message": "System error"}