How to use offers
Learn how to provide offers.
Getting an offer by identifier
curl --location --request GET
'https://api.digitalriver.com/shoppers/me/offers/{offerId}' \
--header 'Authorization: Bearer {API_key}' {
"offer": {
"uri": "https://api.digitalriver.com/v1/shoppers/me/offers/154344709",
"id": 154344709,
"name": "Home Page Security & Backup Recovery Features",
"policyName": "string",
"type": "FeatureProducts",
"image": "https://drh1.img.digitalriver.com/DRHM/Storefront/Site/demosft1/images/promo/security_header.gif",
"trigger": "Always Triggered",
"salesPitch": [
"[\"Header Message\",\"Footer Message\",\"Sales Pitch Extra Info\",\"Sales Pitch Extra Info 2\"]"
],
"productOffers": {
"uri": "https://api.digitalriver.com/v1/shoppers/me/offers/154344709/product-offers",
"productOffer": [
{
"uri": "https://api.digitalriver.com/v1/shoppers/me/offers/154344709/product-offers/64358400",
"id": 64358400,
"product": {
"uri": "https://api.digitalriver.com/v1/shoppers/me/products/64358400",
"displayName": "Class III",
"thumbnailImage": "https://drh1.img.digitalriver.com/DRHM/Storefront/Company/demosft1/images/product/thumbnail/classIIIThumb_v2.jpg"
},
"pricing": {
"listPrice": {
"currency": "USD",
"value": "19.99"
},
"salePriceWithQuantity": {
"currency": "USD",
"value": "19.99"
},
"formattedListPrice": "$39.99",
"formattedSalePriceWithQuantity": "$38.99",
"listPriceIncludesTax": "false"
}
}
]
},
"categoryOffers": {},
"offerBundleGroups": {}
}
}Getting the product for the offer
curl --location --request GET
'https://api.digitalriver.com/shoppers/me/offers/{offerId}/product-offers/{productOfferId}' \
--header 'Authorization: Bearer {API_key}'{
"productOffer": {
"uri": "https://api.digitalriver.com/v1/shoppers/me/offers/154344709/product-offers/64358400",
"id": 64358400,
"product": {
"uri": "https://api.digitalriver.com/v1/shoppers/me/products/64358400",
"displayName": "Class III",
"thumbnailImage": "https://drh-sys-ora.img.digitalriver.com/Storefront/Company/demosft1/images/product/thumbnail/classIIIThumb_v2.jpg"
},
"addProductToCart": {
"uri": "https://api.digitalriver.com/v1/shoppers/me/carts/active/line-items?productId=64578500&offerId=154344709",
"cartUri": "https://api.digitalriver.com/v1/shoppers/me/carts/active?productId=64578500&offerId=154344709"
},
"salesPitch": "For testing purposes",
"image": "https://drh-sys-ora.img.digitalriver.com/Storefront/Site/demosft1/images/promo/business_header.gif",
"pricing": {
"listPrice": {
"currency": "USD",
"value": "19.99"
},
"salePriceWithQuantity": {
"currency": "USD",
"value": "19.99"
},
"formattedListPrice": "$39.99",
"formattedSalePriceWithQuantity": "$38.99",
"listPriceIncludesTax": "false"
}
}
}Retrieving all offers for a product
Retrieving all offers
Getting all products for the offer
Last updated