{
"checkoutResponse":{
"cart":{
"id":"1",
"items":[
{
"id":"313fb143-3478-4a4c-b688-e3cb5dcdaa62",
"catalog":"19",
"sku":"4380192",
"pricing":[
{
"value":89.99,
"type":"unit",
"modifier":"Clearance"
},
{
"value":99.0,
"type":"unitFull",
"modifier":"Clearance"
},
{
"value":0,
"type":"surcharge",
"modifier":"Clearance"
}
],
"deliveryMethods":[
{
"quantity":1,
"type":"STANDARD",
"gift":false,
"giftWrapped":false,
"giftMessage":[
],
"address":{
"id":"8795a9e8-680c-4191-aa58-ae2a84452ea5"
}
}
],
"directShip":false,
"inHome":false,
"freeShip":false,
"freePersonalization":false
}
],
"addresses":[
{
"id":"dfab3564-1a54-4b2f-adbc-09a86f73c16a",
"fullName":"Abilash Ramachandran",
"line1":"6601 Blue Oaks Blvd",
"line2":"303",
"city":"Rocklin",
"state":"CA",
"postalCode":"95765",
"country":"US",
"verificationStatus":"unverified",
"classification":"",
"phoneNumber":"1234567890",
"role":"primary"
},
{
"id":"8795a9e8-680c-4191-aa58-ae2a84452ea5",
"nickName":"you",
"fullName":"Abilash Ramachandran",
"line1":"6601 Blue Oaks Blvd",
"line2":"303",
"city":"Rocklin",
"state":"CA",
"postalCode":"95765",
"country":"USA",
"verificationStatus":"unverified",
"classification":"",
"phoneNumber":"1234567890",
"role":"primary"
}
],
"billingAddress":{
"id":"dfab3564-1a54-4b2f-adbc-09a86f73c16a"
},
"totals":{
"merchandise":89.99,
"shipping":11.0,
"destination":0.0,
"surcharge":0.0,
"giftWrap":0.0,
"monogramming":0.0,
"tax":7.58
},
"paymentMethods":[
],
"order":{
"id":"991791066202",
"conceptCode":"PT",
"type":"NORMAL",
"emailId":"emailId"
},
"promotions":[
]
},
"addressMap":null,
"itemDetailsMap":{
"4380192":{
"itemId":"4380192",
"shortName":"Capiz Table Lamp + CFL Bulb , Blue/Green",
"primaryGroupId":"Capiz Table Lamp",
"primaryCategory":"Table Lamps",
"superCategory":"Lighting",
"directShip":false,
"bulk":false,
"homeDeliveryFlag":false,
"whiteGloveFlag":false,
"limitedWhiteGloveFlag":false,
"unlimitedWhiteGloveFlag":false,
"inHome":false,
"furniture":false,
"freeShip":false,
"giftWrapEligible":false,
"monogrammable":false,
"itemPriceInfo":{
"selling":89.99,
"regular":99.00,
"surcharge":null,
"retail":119.00,
"priceType":"SALE"
},
"itemImageInfo":{
"sku":{
"rel":"sku",
"href":"https://imgproc-prd-rk1v.wsgc.com/pubimagesuat/pt/images/wcm/201826/0199/img30m.jpg",
"width":383,
"height":383,
"size":"m",
"alt":"Capiz Table Lamp + CFL Bulb , Blue/Green"
}
},
"minimumDeliveryDate":null,
"maximumDeliveryDate":null
}
},
"deliveryGroups":[
{
"address":{
"id":"8795a9e8-680c-4191-aa58-ae2a84452ea5",
"nickName":"you",
"fullName":"Abilash Ramachandran",
"line1":"6601 Blue Oaks Blvd",
"line2":"303",
"city":"Rocklin",
"state":"CA",
"postalCode":"95765",
"country":"USA",
"verificationStatus":"unverified",
"classification":"",
"phoneNumber":"1234567890",
"role":"primary"
},
"serviceLevel":"STANDARD",
"deliveryMethods":[
{
"type":"PACKAGE_DELIVERY",
"estimatedDeliveryDates":[
{
"estimatedDeliveryDate":"Jul 1 - Jul 3",
"serviceLevelDisplay":"Standard (UPS 3 Day Select)",
"items":[
{
"itemId":"4380192",
"catalog":"19",
"quantity":1,
"rushEligible":false,
"monogramming":null,
+ "promotion":
- "promotionDiscounts":[
{
- "code":"MERCHSHIPWRAP",
+ "description": "4th of July Sale!",
+ "discounts": {
- "discountsMap":{
"monogramming":"10.00",
"merch":"18.00",
"surcharge":"5.00"
}
}
- ]
}
]
}
]
}
],
"gift":false,
"giftMessage":[
],
"rushEligible":false
}
],
+ "promotion":
- "orderPromotionDiscounts":[
{
"code":"MERCHSHIPWRAP",
+ "description":"4th of July Sale!",
+ "total": "-20.00", // The total discounted amount (14 shipping + 6.00 gift wrap = -20.00)
- "discountMap":{
- "shipping":"14.00",
- "giftwrap":"6.00",
- }
}
- ],
+ "errors": []
- "errors":null
}
}
Last active
July 18, 2019 21:01
-
-
Save bzitzow/5f302b71e4ddc4e1c55f9bccae8b38a7 to your computer and use it in GitHub Desktop.
POST /checkout/carts/promotion.json
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment