Send Your First Reward Points
Send Your First Reward Points
Let’s send ourselves a test reward of 500 points to confirm everything is working.
Run the following cURL command, replacing:
- with your generated API key
- with your email address in
sender_email
- with your email address in
to_email
curl --request POST \
--url https://canvas.xoxoday.com/chef/v1/oauth/api \
--header 'Authorization: Bearer <your-access-token>' \
--header 'content-type: application/json' \
--data '
{
"query": "storesAdmin.mutation.sendBalance",
"tag": "storeAdmin",
"variables": {
"recipients_data": {
"sender_email": "[email protected]",
"recipients": [
{
"to_name": "name1",
"to_email": "[email protected]",
"amount": "500",
"citation": "Congratulations"
}
]
}
}
}
'
Response
{
"data": {
"sendBalance": {
"error": false,
"message": "points sent"
}
}
}
Congratulations — you’ve successfully made your first points transfer.
Updated 16 days ago