curl --request POST \
--url https://stagingstores.xoxoday.com/chef/v1/oauth/api/sendPoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "storesAdmin.mutation.sendBalance",
"tag": "storeAdmin",
"variables": {
"sender_email": "superadmin@yourcompany.com",
"expiry_month": 12,
"recipients": [
{
"to_name": "John Smith",
"to_email": "john@company.com",
"amount": "100",
"citation": "Awesome work"
}
]
}
}
'{
"data": {
"unique_id": 987654321,
"email": "john@company.com",
"points": 100,
"name": "John Smith",
"phone_code": "+1",
"phone_number": "9998887776"
}
}Credit reward points to one or more recipients from the Super Admin wallet.
Real URL: POST https://stagingstores.xoxoday.com/chef/v1/oauth/api
curl --request POST \
--url https://stagingstores.xoxoday.com/chef/v1/oauth/api/sendPoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "storesAdmin.mutation.sendBalance",
"tag": "storeAdmin",
"variables": {
"sender_email": "superadmin@yourcompany.com",
"expiry_month": 12,
"recipients": [
{
"to_name": "John Smith",
"to_email": "john@company.com",
"amount": "100",
"citation": "Awesome work"
}
]
}
}
'{
"data": {
"unique_id": 987654321,
"email": "john@company.com",
"points": 100,
"name": "John Smith",
"phone_code": "+1",
"phone_number": "9998887776"
}
}Documentation Index
Fetch the complete documentation index at: https://help-plum.xoxoday.com/llms.txt
Use this file to discover all available pages before exploring further.
| Property | Type | Description |
|---|---|---|
variables.recipients_data.sender_email | String | Super Admin email sending the points. |
variables.recipients_data.expiry_month | Int/String | Expiry of points in month. |
variables.recipients_data.recipients | [Recipient] | List of recipient objects to whom balance will be sent. |
variables.recipients_data.recipients[].to_name | String | Recipient’s full name. |
variables.recipients_data.recipients[].to_email | String | Recipient’s email address. |
variables.recipients_data.recipients[].amount | String | Amount of balance/credits to be sent. |
variables.recipients_data.recipients[].citation | String | Purpose or reference note for the transaction. |
| Property | Type | Description |
|---|---|---|
data.unique_id | number | Unique identifier of the transaction. |
data.email | string | Email address of the recipient (optional). |
data.points | number | Number of points to be credited or transferred. |
data.name | string | Full name of the recipient user. |
data.phone_code | string | Country calling code of the recipient’s phone number. |
data.phone_number | string | Mobile number of the recipient user. |
Authorization: Bearer <access_token>
Always use storesAdmin.mutation.sendBalance.
storesAdmin.mutation.sendBalance Always use storeAdmin.
storeAdmin Show child attributes
Points sent successfully.
Show child attributes