Fetch offer details
Changed onUse /offers/:offerId endpoint to get basic offer details. <br><br> This endpoint returns details of offer localizations matching a particular country or location. The country or location is determined based on the customer IP address. <br><br> You can query using the offer short ID - without a country suffix (e.g. S123123123) to dynamically retrieve details of the offer localization matching the current country of the user. You can query using the offer long ID - with country suffix e.g. (S123123123_US) to retrieve details of the offer localization for a particular country. <br><br> If you want to fetch offer details for a specific customer use this endpoint. <br><br> **Note: <br> **Please note that this endpoint will not return taxes for the USA and Canada. Taxes will only be shown during the checkout process (they are returned in the order method: Create order or Get an order).
Request
- Base URLhttps://mediastoreapi-sandbox.cleeng.com
- URLhttps://mediastoreapi-sandbox.cleeng.com/offers/{offerId}
- Authnone required
Path parameters
Cleeng offer ID, e.g. S123123123_US or S123123123.
Query parameters
Recommended. IP address of customer current location. Add this param to get offer details for a specific location (e.g. the price may vary depending on the country tax policy)
Response
200
Example response
{
"responseData": {
"offerId": "S567921766_NL",
"offerPrice": 22.22,
"offerCurrency": "EUR",
"offerCurrencySymbol": "€",
"offerCountry": "NL",
"customerPriceInclTax": 22.58,
"customerPriceExclTax": 18.36,
"customerCurrency": "EUR",
"customerCurrencySymbol": "€",
"customerCountry": "PL",
"offerUrl": "https://google.com.ua",
"offerTitle": "Monthly subscription (recurring) to qadigger",
"active": true,
"createdAt": 1580116969,
"updatedAt": 1580116969,
"applicableTaxRate": 0.21,
"averageRating": 4,
"period": "month",
"accessToTags": [
"(all)"
]
}
}Changes
- warning
removed the optional property
from the response with the status - info
api operation id
get-an-offerremoved and replaced withfetch-offer-details - info
added the new optional
queryrequest parametercustomerIP - info
added the non-success response with the status
- info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
added the optional property
to the response with the status
- warning