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

Pricing

Pricing data container showing currency, and pricing information for the offer.

Fields:

  currency - The current type.  eg "USD"
  originalPrice - The original price of the options.
  price - The special price offer for the deal.
  promotionalPrice - The promotional price for the offer.  Can be null if there is not one defined.
  discountPercent - The discount percent off the original price.
  savings - The difference between the originalPrice and price.

Sample XML Response:
<pricing>
    <currency>USD</currency>
    <discountPercent>.90</discountPercent>
    <originalPrice>200</originalPrice>
    <price>20</price>
    <promotionalPrice>10</promotionalPrice>
    <savings>10</savings>
</pricing>


Sample JSON Response:
{
    "pricing": {
        "currency": "USD",
        "discountPercent" : .90,
        "originalPrice": 200,
        "price": 20,
        "promotionalPrice": 10,
        "savings" : 180
    }
}
Comments