GET
/
deals
/
discount
/
curl --request GET \
  --url https://api.paritydeals.com/api/v1/deals/discount/
{
"bar": {
"backgroundColor": "#04888e",
"backgroundTransparency": "0",
"fontColor": "#59ebf1",
"highlightFontColor": "#DD5C64",
"placement": "top",
"borderRadius": "0",
"addCloseIcon": false,
"noStyle": false
},
"couponCode": "PD8CEXAAJL",
"discountPercentage": "50.00",
"countryCode": "IN",
"currencyCode": "INR",
"currencySymbol": "₹",
"country": "India",
"countryFlag": "🇮🇳",
"holiday": null,
"time": null,
"isProxy": false,
"isTor": false,
"isVpn": false,
"usdConversionRate": "82.2",
"baseCurrencyConversionRate": "82.2",
"pricingLocale": "en-IN",
"message": "Message with HTML tags",
"messageText": "Message string",
"data": {
"stripePromoCodeId": "promo_1RaFH8EEwDDegOMGqiAG",
"polarDiscountId": "DISC123",
"dodoDiscountId": "DODO123"
}
}

Query Parameters

url
string

Required for client-side API calls. The browser's current URL (e.g., window.location.href). The API call will only return a response if made from a website configured in the deal for security.

pd_identifier
string

Required for server-side API calls. A unique identifier associated with a particular banner deal.

ip_address
string

Required for server-side API calls. The user's IP address.

base_currency_code
string

Optional for server-side API calls. The desired base currency code for the discount information (e.g., EUR).

Response

200 - application/json

Successful retrieval of discount information. The response will either contain the discount details or a message indicating that no discounts are available.

The response is of type object.