curl --request POST \
--url https://stagingstores.xoxoday.com/chef/v1/oauth/api/getBalance \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "plumProAPI.query.getBalance",
"tag": "plumProAPI",
"variables": {
"data": {}
}
}
'{
"data": {
"getBalance": {
"status": 1,
"data": {
"value": 5000,
"currency": "USD"
}
}
}
}Fetch the available balance in your 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/getBalance \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "plumProAPI.query.getBalance",
"tag": "plumProAPI",
"variables": {
"data": {}
}
}
'{
"data": {
"getBalance": {
"status": 1,
"data": {
"value": 5000,
"currency": "USD"
}
}
}
}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.
| Path | Type | Description |
|---|---|---|
| data | object | Root response object. |
| data.getBalance | object | Container for balance details. |
| data.getBalance.status | number | API execution status (1 = success). |
| data.getBalance.data | object | Balance information object. |
| data.getBalance.data.value | number | Available balance value. |
| data.getBalance.data.currency | string | Currency code of the balance (e.g., USD). |
Note
Rather than fetching the balance before every order, you can use the Low Balance Notification option in the Admin Dashboard to receive alerts when the balance reaches the set threshold. Click here to know more.
Authorization: Bearer <access_token>
Balance fetched successfully.
Show child attributes