Allocate Coins to User
DevelopingPOST
/api/v0/enkash-coins/allocate-coinThis API facilitates the allocation of Coins according to the event configured.
Request
Header Params
authorization
string
required
Example:
Bearer oBPOndfOxpjOvReBnipyNdUuqB4
Content-Type
string
required
Example:
application/json
Body Params application/json
companyId
string
required
Company ID of the user to which coins are allocated
event
string
required
Event Name
requestId
string
required
Unique Request ID For coins allocation
userId
string
required
User ID of user for which coins are allocated
Example
{
"companyId": "CEK0TCW2W8",
"event": "REFERRAL_EVENT",
"requestId": "COIN_REQ1234567",
"userId": "EKQZVMQK"
}
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
payload
string
required
response_code
integer
required
response_message
string
required
Example
{
"payload": "Successfully allocated enkash Coins",
"response_code": 0,
"response_message": "Success"
}
Last modified: 4 months ago