Users
Invoke this endpoint to add a new user to your loyalty program.
Authorizations
Body
wallet_addressstringRequired
the user's wallet_address
phonestringOptional
the user's phone (must be provided if email is blank)
emailstringOptional
the user's email (must be provided if phone is blank)
Responses
200
User was created successfully
application/json
400
Missing required parameters.
409
When any of the parameters passed in already exist in the system.
post
POST /partner-api/users HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 55
"wallet_address='text'&phone='text'&email='text'"
{
"user": {
"id": "text"
}
}