Points (REST)
Endpoint
Authentication
Example
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
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
namestringRequired
Token name
Body
tokenAmountstringOptional
Token amount
tidstringOptional
Store TID
Responses
200
Points issued successfully
application/json
post
/points/{name}/issue200
Points issued successfully
Example
Accumulate
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
namestringRequired
Token name
rewardIdstringRequired
Reward ID
Body
tokenAmountstringOptional
Token amount
userAddressstringOptional
User wallet address to accumulate
Responses
200
Points are accumulated successfully
application/json
post
/points/{name}/{rewardId}/accumulate200
Points are accumulated successfully
Example
Status
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
namestringRequired
Token name
rewardIdstringRequired
Reward ID
Responses
200
Return successfully
application/json
get
/points/{name}/{rewardId}/status200
Return successfully
Example
Cancel
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
namestringRequired
Token name
rewardIdstringRequired
Reward ID
Body
tokenAmountstringOptional
Token amount
Responses
200
Canceled successfully
application/json
post
/points/{name}/{rewardId}/cancel200
Canceled successfully
Example
Error Codes (resCode)
Last updated
