curl --request POST \
--url https://stagingstores.xoxoday.com/chef/v1/oauth/api/fetchPoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "storesAdmin.query.user_balance",
"tag": "storeAdmin",
"variables": {
"user_data": {
"email": "your.email@example.com",
"phone": "+91-8999888887"
}
}
}
'{
"data": {
"user_balance": {
"success": 1,
"message": null,
"data": {
"total": 1500
}
}
}
}Fetch the current reward points balance for a specific user. Can be used to display balances inside your own UI.
Real URL: POST https://stagingstores.xoxoday.com/chef/v1/oauth/api
curl --request POST \
--url https://stagingstores.xoxoday.com/chef/v1/oauth/api/fetchPoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "storesAdmin.query.user_balance",
"tag": "storeAdmin",
"variables": {
"user_data": {
"email": "your.email@example.com",
"phone": "+91-8999888887"
}
}
}
'{
"data": {
"user_balance": {
"success": 1,
"message": null,
"data": {
"total": 1500
}
}
}
}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 |
|---|---|---|
user_data.email | String | User’s email ID to fetch balance. |
user_data.phone | String | User’s phone number to fetch balance. |
| Path | Type | Description |
|---|---|---|
| data | object | Root response object. |
| data.user_balance | object | Container for user points/balance data. |
| data.user_balance.success | number | API execution status (1 = success). |
| data.user_balance.message | string/null | API message (null when no message is returned). |
| data.user_balance.data | object | Actual points data. |
| data.user_balance.data.total | number | Total available reward points for the user. |
Authorization: Bearer <access_token>
User points balance returned successfully.
Show child attributes