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

Order

Will include the information about an order.

Fields:
  amount - The amount the order was for
  expirationDate - The date the vouchers will expire.
  headline - The Headline from the offer.
  merchantName - The name of the merchant.
  offerId - The offer id of the offer that was purchased.
  offerOptionId - The specific option id that was purchased.
  optionTitle - The title from the specific option purchased.
  orderDate - The date the order was made.
  orderId - The OrderId for the order.
  orderDetails - Contains a list of Order Detail.
  segmentKey - The segment key of the segment the offer is for
  status - The status of the order {Processing, Completed, ChargeFailed, Refunded, ContactSupport}
  subtitle - The subtitle from the offer.

Sample XML Response:
<order>
    <amount>70</amount>
    <expirationDate>2012-04-10T00:00:00</expirationDate>
    <headline>Haircut Concierge from Frank’s Chop Shop</headline>
    <merchantName>Frank's Chop Shop</merchantName>
    <offerId>126</offerId>
    <offerOptionId>82</offerOptionId>
    <optionTitle>Haircut Concierge from Frank’s Chop Shop</optionTitle>
    <orderDate>2010-11-23T21:38:28</orderDate>
    <orderDetails>
        <orderDetail>
            <firstName>noah</firstName>
            <isGift>false</isGift>
            <lastName>blumenthal</lastName>
            <price>70</price>
            <quantity>1</quantity>
            <vouchers>
                <voucher>
                    <redemptionUrl i:nil="true"/>
                    <voucherUrl>http://rewards.staging.thrillist.com/voucher?SecretKey=jH0YtKWDhL6AJhqeT0qLibbrgbkal%2fHs&amp;Code=P-1027-266-FFE</voucherUrl>
                </voucher>
            </vouchers>
        </orderDetail>
        <orderDetail>
            <firstName>noahfriend</firstName>
            <isGift>true</isGift>
            <lastName i:nil="true"/>
            <price>70</price>
            <quantity>1</quantity>
            <vouchers>
                <voucher>
                    <redemptionUrl i:nil="true"/>
                    <voucherUrl>http://rewards.staging.thrillist.com/voucher?SecretKey=JNZnzeylec%2bg%2f67fjw41z64ApiioSNfy&amp;Code=F-1EE-00-75C</voucherUrl>
                </voucher>
            </vouchers>
        </orderDetail>
    </orderDetails>
    <orderId>494</orderId>
    <segmentKey>ny</segmentKey>
    <status>Completed</status>
    <subtitle>Half-off Cuts, free scotch &amp; a table reservation at Milk and Honey</subtitle>
</order>



Sample JSON Response:
{
    "amount": 40,
    "expirationDate": "/Date(1405815600000-0400)/",
    "headline": "40% Off Dinner and a Movie",
    "merchantName": "TL Admin Test Company",
    "offerId": 1027,
    "offerOptionId": 265,
    "optionTitle": "40% Off Dinner and a Movie",
    "orderDate": "/Date(1299120610000-0500)/",
    "orderDetails": [
        {
            "firstName": "noah",
            "isGift": false,
            "lastName": "blumenthal",
            "price": 40,
            "quantity": 1,
            "vouchers": [
                {
                    "redemptionUrl": null,
                    "voucherUrl": "http://rewards.staging.thrillist.com/voucher?SecretKey=jH0YtKWDhL6AJhqeT0qLibbrgbkal%2fHs&Code=P-1027-266-FFE"
                }
            ]
        }
    ],
    "orderId": 3461,
    "segmentKey": "ny",
    "status" : "Completed",
    "subtitle": "This is the subtitle"
}
Comments