Points (REST)
Endpoint
Real Server : https://api.vixco.net/v1
Test Server : https://test1-api.vixco.net/v1
Authentication
To make a request, you need to include the JWT in the HTTP header. JWT can be received through the authentication server.
Example
If JWT is "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0ZXN0MTExQGRzdGEuY29tIiwicm9sZSI6IlJPTEVfU1RPUkUiLCJleHAiOjE2NDgyMDc1OTIsImlhdCI6MTY0ODEyMTE5Mn0.AYNcBLhKqtqwzxNm7kOREEUH0_3gFevOXxI94TBORao",
curl -X 'POST' \
'{endpoint}/nlp/issue' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0ZXN0MTExQGRzdGEuY29tIiwicm9sZSI6IlJPTEVfU1RPUkUiLCJleHAiOjE2NDgyMDc1OTIsImlhdCI6MTY0ODEyMTE5Mn0.AYNcBLhKqtqwzxNm7kOREEUH0_3gFevOXxI94TBORao' \
-H 'Content-Type: application/json' \
-d '{
"tokenAmount": "10"
}'API References
Issue
Token name
Token amount
Store TID
Points issued successfully
Points issued successfully
Example
Accumulate
Token name
Reward ID
Token amount
User wallet address to accumulate
Points are accumulated successfully
Points are accumulated successfully
Example
Status
Token name
Reward ID
Return successfully
Return successfully
Example
Cancel
Token name
Reward ID
Token amount
Canceled successfully
Canceled successfully
Example
Error Codes (resCode)
200: Success
400: Bad parameters
401: Unauthenticated
404: Not found
500: Internal server error. Please see resMessage
Last updated
