curl --request POST \
--url https://stagingstores.xoxoday.com/chef/v1/oauth/api/fetchFilters \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "plumProAPI.mutation.fetchFilters",
"tag": "plumProAPI",
"variables": {
"data": {
"categoryType": "offers",
"includeFilters": "5647",
"excludeFilters": "6444",
"countryIds": [
976
]
}
}
}
'{
"data": {
"fetchFilters": {
"status": 1,
"data": [
{
"filterGroupName": "Category",
"filterGroupDescription": "Filter by offer category",
"filterGroupCode": "voucher_category",
"filters": [
{
"filterValue": "Food & Restaurant",
"isoCode": "FR",
"filterValueCode": "food_restaurant"
}
]
}
]
}
}
}Retrieve available filters for the perks/offers catalog.
Note: This endpoint uses plumProAPI.mutation.fetchFilters (not getFilters) and accepts categoryType and countryIds fields not present in other categories.
Real URL: POST https://stagingstores.xoxoday.com/chef/v1/oauth/api
curl --request POST \
--url https://stagingstores.xoxoday.com/chef/v1/oauth/api/fetchFilters \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "plumProAPI.mutation.fetchFilters",
"tag": "plumProAPI",
"variables": {
"data": {
"categoryType": "offers",
"includeFilters": "5647",
"excludeFilters": "6444",
"countryIds": [
976
]
}
}
}
'{
"data": {
"fetchFilters": {
"status": 1,
"data": [
{
"filterGroupName": "Category",
"filterGroupDescription": "Filter by offer category",
"filterGroupCode": "voucher_category",
"filters": [
{
"filterValue": "Food & Restaurant",
"isoCode": "FR",
"filterValueCode": "food_restaurant"
}
]
}
]
}
}
}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.
| Field | Type | Description |
|---|---|---|
categoryType | String | Defines the product category for which filters are requested. |
includeFilters | String | Comma-separated list of filter keys that must be explicitly included in the response. |
excludeFilters | String | Comma-separated list of filter keys that should be excluded from the response. |
countryIds | Array | List of country IDs used to scope filters based on regional availability. |
| Field Path | Type | Description |
|---|---|---|
data.fetchFilters.data.filters | Array | List of filter values applicable for the requested category and country |
data.fetchFilters.data.filters[].filter_value_id | Number | Unique identifier of the filter value |
data.fetchFilters.data.filters[].filter_value | String | Display name of the filter value |
data.fetchFilters.data.filters[].image | String | Image URL associated with the filter value. Empty if not available |
data.fetchFilters.data.filters[].filters | Array | Nested filters under the filter value. Currently empty |
data.fetchFilters.data.filters[].categoryType | String | Category for which the filter applies (e.g. offers) |
data.fetchFilters.data.filters[].count | Number | Number of items available for this filter value |
data.fetchFilters.data.options | Array | Currently returned as an empty array for offers category |
data.fetchFilters.data.brands | Array | Currently returned as an empty array for offers category |
data.fetchFilters.data.countries | Array | Country-wise aggregation of available items |
data.fetchFilters.data.countries[].countryId | Number | Internal country identifier |
data.fetchFilters.data.countries[].countryName | String | Name of the country |
data.fetchFilters.data.countries[].count | String | Total number of items available for the country |
Authorization: Bearer <access_token>
Filter list returned successfully.
Show child attributes