Welcome‎ > ‎Version 2‎ > ‎Publisher Api (Read/Write)‎ > ‎Data Structures‎ > ‎

Offer Option

Holds the information about an offer option as pulled from the feed.

Fields:
  blurb - Html information to be displayed about the offer.
  displayOrder - The display order used when there are multiple offer options.
  externalBuyUrl - The url to a third party site where this offer option is purchased.  If this is null (as it is for most offer options), the purchase workflow should proceed as usual.  If it is set, any calls to purchase with this OfferOptionId will return an error.
  hasSoldOut - Determines whether this option is sold out.
  maxQuanity - The number of items that can be sold for this option.
  numberSold - The number of items sold for this option.
  offerOptionId - The id for the option.
  pricing - Pricing information about the option.
  pricingStrategy - The pricing strategy defined in the Publisher Admin tool for the offer.
  title - The title for the deal option.
 

Sample XML Response:
<option>
    <blurb>
        &lt;!-- BEGIN MEET THE OWNER --&gt;&#xD;
        &lt;div class="aside"&gt;&#xD;
        &lt;div class="thumb"&gt;&lt;img src="http://gcs-assets.s3.amazonaws.com/shared/images/deals/27/27/meet-the-chef-haru.png" alt="Meet the Chef" width="119" height="134" /&gt;&lt;/div&gt;&#xD;
        &lt;h3&gt;Meet the&lt;/h3&gt;&#xD;
        &lt;h4&gt;Chef&lt;/h4&gt;&#xD;
        &lt;span style="font-variant: small-caps;"&gt;{ Alex Aratake }&lt;/span&gt; &#xD;
        &lt;hr /&gt;&#xD;
        &lt;p&gt;&lt;strong&gt;What do you love most about New York City?&lt;/strong&gt;&lt;br /&gt; Its diverse food culture.&lt;/p&gt;&#xD;
        &lt;p&gt;&lt;strong&gt;What&amp;#237;s your favorite vacation destination?&lt;/strong&gt;&lt;br /&gt; Spain&amp;#160;&amp;#8212; I love Spanish food.&lt;/p&gt;&#xD;
        &lt;p&gt;&lt;strong&gt;What is the best piece of advice you&amp;#8217;ve ever gotten?&lt;/strong&gt;&lt;br /&gt; To always sharpen my knives.&lt;/p&gt;&#xD;
        &lt;/div&gt;&#xD;
        &lt;!-- END MEET THE OWNER --&gt; &lt;!-- BEGIN BODY TEXT --&gt;&#xD;
        &lt;p&gt;When it comes to sushi, snobs we are not. All we ask is that you make it fresh and let us afford dinner without a financier&amp;#237;s expense account. Throw in a sophisticated ambiance, world-class sake list, and enough variety to satiate four diners, and this Deal feels downright over the top. Haru may make snobs of us yet.&lt;/p&gt;&#xD;
        &lt;h4&gt;&lt;span&gt;The&lt;/span&gt; Place&lt;/h4&gt;&#xD;
        &lt;p&gt;The typical NYC hole-in-the-wall sushi restaurant might list its priorities as follows: food first, sake second, d&amp;#200;cor TBD. But the way Haru sees it, why compromise on any front? Located just north of Union Square, the hangar-size Gramercy Park location of the popular Japanese restaurant group features expansive banquet seating, two full bars and lounges, even an interior waterfall. The options for imbibing include a carefully crafted sake list, international brews, and a list of signature cocktails. And the food? Let&amp;#237;s just say you don&amp;#237;t fill a space this big with subpar spicy tuna rolls.&lt;/p&gt;&#xD;
        &lt;h4&gt;&lt;span&gt;The&lt;/span&gt; Offer&lt;/h4&gt;&#xD;
        &lt;p&gt;&lt;strong&gt;Four-Person Tasting Menu, $60&lt;/strong&gt;&lt;br /&gt; Round up three friends (or just one if you&amp;#237;re really hungry) and prepare to feast. The specially designed tasting menu offers a generous sampling of several of Haru&amp;#237;s most popular dishes (think tuna tataki and grilled spicy garlic shrimp) and signature rolls like the Kiss of Fire (super white tuna, salmon, jalape&amp;#210;o peppers, and wasabi tobiko wrapped around crunchy spicy tuna). In accordance with traditional omakase rules, dishes are chef&amp;#237;s choice. But fear not: There&amp;#237;s a reason the chosen dishes have achieved the status of crowd-pleaser. Drinks aren&amp;#237;t part of the deal &amp;#243; but when all your chow is only $60, you can certainly stand to splurge a little.&lt;/p&gt;&#xD;
        &lt;p&gt;&lt;span style="color: #808080;"&gt;&lt;span style="font-size: xx-small;"&gt;&lt;em&gt;Photos: Janelle Jones&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
        &lt;!-- END BODY TEXT--&gt;
    </blurb>
    <displayOrder>0</displayOrder>
    <externalBuyUrl>http://groupcommerce.com?somedeal=389483</externalBuyUrl>
    <hasSoldOut>false</hasSoldOut>
    <maxQuantity>99</maxQuantity>
    <numberSold>20</numberSold>
    <offerOptionId>109</offerOptionId>
    <pricing>
        <currency>USD</currency>
        <originalPrice>200</originalPrice>
        <price>20</price>
        <promotionalPrice>10</promotionalPrice>
    </pricing>
    <pricingStrategy>NotSpecified</
pricingStrategy>
    <title>90% off haru</title>
</option>


Sample JSON Response:
{
    "blurb": "<!-- BEGIN MEET THE OWNER -->\u000d\u000a<div class=\"aside\">\u000d\u000a<div class=\"thumb\"><img src=\"http:\/\/gcs-assets.s3.amazonaws.com\/shared\/images\/deals\/27\/27\/meet-the-chef-haru.png\" alt=\"Meet the Chef\" width=\"119\" height=\"134\" \/><\/div>\u000d\u000a<h3>Meet the<\/h3>\u000d\u000a<h4>Chef<\/h4>\u000d\u000a<span style=\"font-variant: small-caps;\">{ Alex Aratake }<\/span> \u000d\u000a<hr \/>\u000d\u000a<p><strong>What do you love most about New York City?<\/strong><br \/> Its diverse food culture.<\/p>\u000d\u000a<p><strong>What&#237;s your favorite vacation destination?<\/strong><br \/> Spain&#160;&#8212; I love Spanish food.<\/p>\u000d\u000a<p><strong>What is the best piece of advice you&#8217;ve ever gotten?<\/strong><br \/> To always sharpen my knives.<\/p>\u000d\u000a<\/div>\u000d\u000a<!-- END MEET THE OWNER --> <!-- BEGIN BODY TEXT -->\u000d\u000a<p>When it comes to sushi, snobs we are not. All we ask is that you make it fresh and let us afford dinner without a financier&#237;s expense account. Throw in a sophisticated ambiance, world-class sake list, and enough variety to satiate four diners, and this Deal feels downright over the top. Haru may make snobs of us yet.<\/p>\u000d\u000a<h4><span>The<\/span> Place<\/h4>\u000d\u000a<p>The typical NYC hole-in-the-wall sushi restaurant might list its priorities as follows: food first, sake second, d&#200;cor TBD. But the way Haru sees it, why compromise on any front? Located just north of Union Square, the hangar-size Gramercy Park location of the popular Japanese restaurant group features expansive banquet seating, two full bars and lounges, even an interior waterfall. The options for imbibing include a carefully crafted sake list, international brews, and a list of signature cocktails. And the food? Let&#237;s just say you don&#237;t fill a space this big with subpar spicy tuna rolls.<\/p>\u000d\u000a<h4><span>The<\/span> Offer<\/h4>\u000d\u000a<p><strong>Four-Person Tasting Menu, $60<\/strong><br \/> Round up three friends (or just one if you&#237;re really hungry) and prepare to feast. The specially designed tasting menu offers a generous sampling of several of Haru&#237;s most popular dishes (think tuna tataki and grilled spicy garlic shrimp) and signature rolls like the Kiss of Fire (super white tuna, salmon, jalape&#210;o peppers, and wasabi tobiko wrapped around crunchy spicy tuna). In accordance with traditional omakase rules, dishes are chef&#237;s choice. But fear not: There&#237;s a reason the chosen dishes have achieved the status of crowd-pleaser. Drinks aren&#237;t part of the deal &#243; but when all your chow is only $60, you can certainly stand to splurge a little.<\/p>\u000d\u000a<p><span style=\"color: #808080;\"><span style=\"font-size: xx-small;\"><em>Photos: Janelle Jones<\/em><\/span><\/span><\/p>\u000d\u000a<!-- END BODY TEXT-->",
    "displayOrder": 0,
    "externalBuyUrl": "http:\/\/groupcommerce.com?deal=38944",

    "hasSoldOut": false,
    "maxQuantity": 99,
    "numberSold": 10,
    "offerOptionId": 109,
    "pricing": {
        "currency": "USD",
        "originalPrice": 200,
        "price": 20,
        "promotionalPrice": 10
    },
    "
pricingStrategy": "NotSpecified",
    "title": "90% off haru"
}
Comments