Deals and Offers - Content Structure
The 'Deals and Offers’ content is available across all the categories. Please see below more details regarding the deals.
For more information, please do not hesitate to contact us
Features:
- The Search API results can be filtered by listings having deals (or) filter based on the deal types
- The Get Product API will return the full details of the deal(s) associated with each listing (Deals are applicable to the product and not the service)
- The deals are optional, so not all listings will return deals in the API response.
- A listing can contain a maximum of 3 deals.
- A deal is valid for a maximum of 3 months.
- The deal(s) will be removed from the API response once the validity date is reached.
- The deal tags provide options to filter listings based on the deal tags.
Content Standards:
| Field |
Field Definition |
Field Format |
Field Limit |
Mandatory (Yes/No) |
| Deal Flag |
Indicates if the deals & offers exists for the listing |
Boolean (true or false) |
n/a |
n/a |
| Deal ID |
Unique reference of the deal |
ID |
n/a |
Yes, if deal exists |
| Deal Type |
Type of the deal being offered |
Attribute ID |
10 characters |
Yes, if deal exists |
| Deal Name |
The name of the deal or offer |
Alphanumeric |
55 characters max |
Yes, if deal exists |
| Deal Description |
A broader description of the deal or offer |
Alphanumeric |
350 characters max |
Yes, if deal exists |
| Deal Terms |
Terms and conditions of the deal |
Alphanumeric |
150 characters max |
Yes, if deal exists |
| Deal Start Date |
Start date of the deal |
Date |
n/a |
Yes, if deal exists |
| Deal End Date |
End date of the deal |
Date |
n/a |
Yes, if deal exists |
| Deal URL |
Website URL for the deal |
Valid URL |
n/a |
No |
| Deal Tags |
Pre-defined set of tags for the deal |
Valid pre-defined attribute(s) |
n/a |
No |
List of available 'Deal Types' (Attribute):
- Discount
- Special Rate
- Bonus Offer
- Package
Note:
- ‘Deal flag’ is a separate field to indicate whether the ‘Deals & offers’ exists for the given listing.
- The above fields will be returned in the product detail API response only and not applicable to the search API and service API response.
List of available 'Deal Tags' (Attribute):
- Featured
- Campaign
- Do Not Display
Note:
- Deals Tags are attributes that have entered a specific marketing package or campaign with the ParrAPI.
- Similarly, the "Do Not Display" deal tag is also for the purpose of ParrAPI filtering. These Tags may not be of relevance to the non-ParrAPI distribution network.
Examples:
Instructions to use Example API calls:
- Please replace “[KEY]” in the example API calls with your actual distributor API key to view the results.
- Please replace “[PRODUCT_ID]” in the example API call with the required product id. The product id can be obtained from the Search API response.
Example Search API call to filter the results based on whether the deals exists or not:
| API Request |
https://api.parrapi.com/api/atlas/products?key=[KEY]&additionalQuery=hasDeals:true |
| Definition |
&additionalQuery=hasDeals:true - Filter results by products having deals & offers
&additionalQuery=hasDeals:false - Filter results by products that does not have the deals & offers
|
| Additional Info |
The Search API response will not return the details of the deal. To view the details of the deal for the given product, please use the product detail API call by specifying the product ID obtained from the search API response. |
Example Search API call to filter the results based on the deal types:
| API Request |
https://api.parrapi.com/api/atlas/products?key=[KEY]&att=DEALTYPESBONUSOFFER |
| Definition |
Find all products having a specific deal type - 'Bonus Offer' |
| Additional Info |
- You can filter the results by multiple attribtues using a comma separated list (to apply AND condition in the search) or a pipe separated list (to apply an OR condition in th search)
- Example request payload:
- &att=DEALTYPESBONUSOFFER,DEALTYPESDISCOUNT,DEALTYPESSPECIALRATE
- Find all listings containing the deal types - Bonus Offer and Discount and Special Rate
- Note: A product must have all the given deal types to be considered as a match and returned in the search results
- &att=DEALTYPESBONUSOFFER|DEALTYPESDISCOUNT|DEALTYPESSPECIALRATE
- Find all listings containing either one of the deal types - Bonus Offer or Discount or Special Rate
- Note: A product must have either one of the given deal types to be considered as a match and returned in the search results
- To view the list of available attributes for deal type, please click here
|
Example Search API call to filter the results based on the deal tags:
| API Request |
https://api.parrapi.com/api/atlas/products?key=[KEY]&att=DEALTAGSCAMPAIGN |
| Definition |
Find all products having a specific deal tag - 'Campaign' |
| Additional Info |
- You can filter the results by multiple attribtues using a comma separated list (to apply AND condition in the search) or a pipe separated list (to apply an OR condition in th search)
- Example request payload:
- &att=DEALTAGSCAMPAIGN,DEALTAGSFEATURED
- Find all listings containing the deal tags - Campaign and Featured
- Note: A product must have all the given deal tags to be considered as a match and returned in the search results
- &att=DEALTAGSCAMPAIGN|DEALTAGSFEATURED|DEALTAGSDONOTDISPLAY
- Find all listings containing either one of the deal tags - Campaign or Featured or Do Not Display
- Note: A product must have either one of the given deal tags to be considered as a match and returned in the search results
- To view the list of available attributes for deal tags, please click here
|
Example Get Product API call:
Sample Get Product API response payload showing the deals:
XML Output:
true
5996442e2ba54cf00f2bc3cd
Discount
Discount
Extra 10% off
Book 2 or more nights to receive 10% off
2020-07-01
2020-09-01
Enter the promo code '10OFF' when booking
https://mydeals.com.au/xmas_offer
DEALTAGS
Deal Tags
CAMPAIGN
Campaign
599651691f49ead352d57ff6
Bonus Offer
Bonus Offer
2 for 1
Book 2 people for the price of 1
2020-08-10
2020-10-10
Enter the promo code '2FOR1' when booking
https://mydeals.com.au/new_year_offer
DEALTAGS
Deal Tags
CAMPAIGN
Campaign
DEALTAGS
Deal Tags
FEATURED
Featured
JSON Output:
"dealFlag": "true"
"deals": [
{
"dealId": "5996519db235c2dd521688f9",
"attributeIdDealType": "Special Rate",
"attributeIdDealTypeDescription": "Special Rate",
"dealName": "Extra 10% off",
"dealDescription": "Book 2 or more nights to receive 10% off",
"dealStartDate": "2020-07-01",
"dealEndDate": "2020-09-01",
"dealTerms": "Enter the promo code '10OFF' when booking",
"dealUrl": "https://mydeals.com.au/xmas_offer",
"attributeIdDealTag": [
{
"attributeTypeId": "DEALTAGS",
"attributeTypeIdDescription": "Deal Tags",
"attributeId": "CAMPAIGN",
"attributeIdDescription": "Campaign"
}
]
},
{
"dealId": "5996519db235c2dd521688f9",
"attributeIdDealType": "Package",
"attributeIdDealTypeDescription": "Package",
"dealName": "2 for 1",
"dealDescription": "Book 2 people for the price of 1",
"dealStartDate": "2020-10-20",
"dealEndDate": "2020-11-20",
"dealTerms": "Enter the promo code '2FOR1' when booking",
"dealUrl": "https://mydeals.com.au/new_year_offer",
"attributeIdDealTag": [
{
"attributeTypeId": "DEALTAGS",
"attributeTypeIdDescription": "Deal Tags",
"attributeId": "CAMPAIGN",
"attributeIdDescription": "Campaign"
},
{
"attributeTypeId": "DEALTAGS",
"attributeTypeIdDescription": "Deal Tags",
"attributeId": "FEATURED",
"attributeIdDescription": "Featured"
}
]
}
]
Static API call:
Attributes for Deal Types:
Sample attributes response payload showing the deals types:
XML Output:
DEALTYPES
Deal Types
BONUSOFFER
Bonus Offer
DISCOUNT
Discount
PACKAGE
Package
SPECIALRATE
Special Rate
JSON Output:
[
{
"AttributeTypeId": "DEALTYPES",
"Description": "Deal Types",
"Attributes": [
{
"AttributeId": "BONUSOFFER",
"Description": "Bonus Offer"
},
{
"AttributeId": "DISCOUNT",
"Description": "Discount"
},
{
"AttributeId": "PACKAGE",
"Description": "Package"
},
{
"AttributeId": "SPECIALRATE",
"Description": "Special Rate"
}
]
}
]
Attributes for Deal Tags:
Sample attributes response payload showing the deals tags:
XML Output:
DEALTAGS
Deal Tags
FEATURED
Featured
CAMPAIGN
Campaign
DONOTDISPLAY
Do Not Display
JSON Output:
[
{
"AttributeTypeId": "DEALTAGS",
"Description": "Deal Tags",
"Attributes": [
{
"AttributeId": "FEATURED",
"Description": "Featured"
},
{
"AttributeId": "CAMPAIGN",
"Description": "Campaign"
},
{
"AttributeId": "DONOTDISPLAY",
"Description": "Do Not Display"
}
]
}
]