Get Vouchers API

GetVouchers API enables the user to get a list of vouchers with desired filters available with the Xoxoday catalog

Get Voucher API Schema

ParameterTypeDescription
limitIntNumber of results to return per page (used for pagination).
pageIntPage number of results to fetch when using pagination.
includeProductsStringComma-separated list of product IDs to explicitly include in the response.
excludeProductsStringComma-separated list of product IDs to explicitly exclude from the response.
sortSortDataSorting configuration (e.g., by price, name, popularity).
sort.fieldStringThe field name to sort by (e.g., "name")
sort.orderStringSorting order → "ASC" for ascending or "DESC" for descending.
filtersArray of ObjectList of filters to apply. Each filter object should contain a key and value.
filters.keyStringThe filter key (e.g., country, currency, product_category).
filters.valueStringThe filter value corresponding to the key (e.g., IN, USD, Electronics).

Filter Reference Table

KeyValue TypeDescription
productNameStringProduct names to be included
countryStringCountries to be included
priceStringPrice range filters to be included
minPriceStringMinimum price of the products looked for
maxPriceStringMaximum price of the products looked for
currencyCodeStringCurrency codes to be included
deliveryTypeStringDelivery type to the voucher (realtime or delayed

Implementation Notes

  1. To fetch exchangeRate in the GetVouchersAPI, pass "exchangeRate": 1 in the request body
  2. To fetch the list of filters, use GetFiltersAPI
  3. If the value type for a product is "open_value", please refer to the "minValue" and the "maxValue" parameters
  4. The values passed in the "fee" and "discount" parameters are in percentage (%)
  5. We recommend you cache the response from GetVouchersAPI in your database every time you sync our catalog
  6. Use filters “minPrice” and “maxPrice” along with “currencyCode”, as this allows you to search prices with respect to a specific currency. If no currency is provided, the filter will not be applied.

Learn about Error Handling, Rate limiting and Best Practice .

Language
Credentials
OAuth2
Click Try It! to start a request and see the response here!