Skip to content

Instantly share code, notes, and snippets.

@IanSaunders
Created April 16, 2015 16:28
Show Gist options
  • Save IanSaunders/5476bf9cd15dec4d5b43 to your computer and use it in GitHub Desktop.
Save IanSaunders/5476bf9cd15dec4d5b43 to your computer and use it in GitHub Desktop.
{
"executionTime" : 4790105171,
"results" : [ {
"@type" : "apiQuote",
"subTotal" : 155.00,
"total" : 149.50,
"tax" : 0.00,
"discount" : 5.50,
"currency" : "USD",
"productName" : "Foo",
"productRatePlanName" : "bar",
"productID" : "PRO-0A968B11-1D02-4D88-AD8B-0126DD48",
"productRatePlanID" : "PRP-4014DEEA-824C-4DD3-8D58-FD163A74",
"costBreakdown" : [ {
"name" : "Bandwidth",
"type" : "subscription",
"quantity" : 5,
"amount" : 1.50,
"tax" : 0.00,
"discount" : 3.50,
"pricingComponentID" : "PCO-DDD0E038-02A8-4298-A97F-3A834DD4"
}, {
"name" : "Foo",
"type" : "usage",
"quantity" : 150,
"amount" : 148.00,
"tax" : 0.00,
"discount" : 2.00,
"pricingComponentID" : "PCO-9D704B56-EDF6-4BFA-9479-3579FE64"
} ],
"couponBreakdown" : [ {
"couponCode" : "coupon37E7C6F5",
"discount" : 1.00,
"calculation" : "1.00 (USD) discount off Bandwidth. Original cost: 5.00",
"pricingComponentName" : "Bandwidth",
"pricingComponentID" : "PCO-DDD0E038-02A8-4298-A97F-3A834DD4"
}, {
"couponCode" : "coupon37E7C6F5",
"discount" : 2.50,
"calculation" : "50.00% discount off Bandwidth. Orignal cost: 5.00",
"pricingComponentName" : "Bandwidth",
"pricingComponentID" : "PCO-DDD0E038-02A8-4298-A97F-3A834DD4"
}, {
"couponCode" : "coupon37E7C6F5",
"discount" : 2.00,
"calculation" : "2.00 (USD) discount off Foo. Original cost: 150.00",
"pricingComponentName" : "Foo",
"pricingComponentID" : "PCO-9D704B56-EDF6-4BFA-9479-3579FE64"
} ],
"quoteFor" : "RecurringPeriod",
"periodStart" : "2015-04-16T16:26:02Z",
"periodEnd" : "2015-05-16T16:26:02Z",
"totalPeriods" : 1.00,
"prorationEnabled" : false,
"uplift" : 1.00
} ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment