Fetch Offers API

Fetch Offers API enables the user to get a list of Offers with desired filters available with the Xoxoday catalog

Request Parameter

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
sort.fieldStringThe field name to sort by.
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
filters.valueStringThe filter value corresponding to the key

Response Schema

PathTypeDescription
dataobjectRoot object.
data.getVouchersobjectContainer for perk data.
data.getVouchers.statusnumberStatus of request.
data.getVouchers.dataarrayList of perks.
data.getVouchers.data[].productIdnumberUnique product/perk ID.
data.getVouchers.data[].namestringPerk name.
data.getVouchers.data[].descriptionstring (HTML)Description of the perk.
data.getVouchers.data[].termsAndConditionsInstructionsstring (HTML)T&C details.
data.getVouchers.data[].expiryAndValiditystring (HTML)Expiry/validity info.
data.getVouchers.data[].redemptionInstructionsstring (HTML)Redemption steps.
data.getVouchers.data[].categoriesstringCategory name.
data.getVouchers.data[].lastUpdateDatestringLast updated timestamp.
data.getVouchers.data[].imageUrlstringPerk image URL.
data.getVouchers.data[].currencyCodestringCurrency code.
data.getVouchers.data[].currencyNamestringCurrency name.
data.getVouchers.data[].countryNamestringCountry applicable.
data.getVouchers.data[].countryCodestringISO country code.
data.getVouchers.data[].countriesarrayApplicable countries.
data.getVouchers.data[].countries[].codestringISO code.
data.getVouchers.data[].countries[].namestringCountry name.
data.getVouchers.data[].valueTypestringAlways fixed_denomination for perks.
data.getVouchers.data[].maxValuenumberMax value (zero for perks).
data.getVouchers.data[].minValuenumberMin value.
data.getVouchers.data[].valueDenominationsstringValues (often 0).
data.getVouchers.data[].tatInDaysstringDelivery time.
data.getVouchers.data[].usageTypestringonline, offline, both.
data.getVouchers.data[].deliveryTypestringrealtime
data.getVouchers.data[].orderQuantityLimitnumberMax allowed quantity.
data.getVouchers.data[].isRecommendednumberRecommended flag.
data.getVouchers.data[].filterGroupCodestringoffer_category for perks.
data.getVouchers.data[].isPhoneNumberMandatorybooleanWhether phone number is required.
data.getVouchers.data[].feenumberAny fee applied.
data.getVouchers.data[].discountnumberDiscount if any.
data.getVouchers.data[].metadataobjectPerk-specific data block.
data.getVouchers.data[].metadata.categorytypestringAlways offers.
data.getVouchers.data[].metadata.typestringPerk type (code/link).
data.getVouchers.data[].metadata.codestringPromo code (if available).
data.getVouchers.data[].metadata.linkstringRedirect link.
data.getVouchers.data[].metadata.expiryDatestringExpiry date.

Implementation Notes

  1. Read the "metadata" field in the Fetch Offers API response to get the Offer information like,
    1. Code
    2. Link
    3. Expiry Date of the Code / Link
  2. We recommend you cache the response from Fetch Offers API in your database every time you sync our catalog

Learn about Error Handling, Rate limiting and Best Practice .

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