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
Token name (nlp or nuri)
Token amount
Store TID
Points issued successfully
Reward ID
Token symbol (NLP or NURI)
Token amount
Contract address for token
Issued Date, for example, 20220325151440+0900
POST /v1/points/{name}/issue HTTP/1.1
Host: test1-api.finenex.net
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 35
{
"tokenAmount": "text",
"tid": "text"
}Points issued successfully
{
"rewardId": "text",
"tokenSymbol": "text",
"tokenAmount": "text",
"contractAddress": "text",
"rewardDate": "text"
}Example
Accumulate
Token name (nlp or nuri)
Reward ID
Token amount
User wallet address to accumulate
Points are accumulated successfully
User wallet address to accumulate
Token symbol (NLP or NURI)
Token amount
Contract address for token
POST /v1/points/{name}/{rewardId}/accumulate HTTP/1.1
Host: test1-api.finenex.net
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"tokenAmount": "text",
"userAddress": "text"
}Points are accumulated successfully
{
"userAddress": "text",
"tokenSymbol": "text",
"tokenAmount": "text",
"contractAddress": "text"
}Example
Status
Token name (nlp or nuri)
Reward ID
Return successfully
User wallet address if accumulated, otherwise null
Is points accumulated
Token symbol (NLP or NURI)
Contract address for token
GET /v1/points/{name}/{rewardId}/status HTTP/1.1
Host: test1-api.finenex.net
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Return successfully
{
"userAddress": "text",
"accumulated": true,
"tokenSymbol": "text",
"contractAddress": "text"
}Example
Cancel
Token name (nlp or nuri)
Reward ID
Token amount
Canceled successfully
User wallet address or null
Token symbol
Token amount
Contract address for token
POST /v1/points/{name}/{rewardId}/cancel HTTP/1.1
Host: test1-api.finenex.net
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 22
{
"tokenAmount": "text"
}Canceled successfully
{
"userAddress": "text",
"tokenSymbol": "text",
"tokenAmount": "text",
"contractAddress": "text"
}Example
Error Codes (resCode)
Last updated
