My Oracle Support Banner

Order JSON From Webhook Not Showing Any Promotion Details (Doc ID 2162378.1)

Last updated on DECEMBER 04, 2017

Applies to:

Oracle Commerce Cloud Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

The JSON response from the Submit Order webhook does not include any details about promotions applied to the order.  This is a specimen of the JSON returned from the webhook:

{
"order":{
"lastModifiedTime":1467110182363,
"shippingGroupCount":1,
"giftMessage":null,
"paymentGroupCount":1,
"locale":"en",
"state":"SUBMITTED",
"shippingGroups":[
{
"id":"sg30145",
"specialInstructions":{

},
"handlingInstructions":[

],
"trackingNumber":null,
"priceInfo":{
"amount":2.13,
"currencyCode":"USD",
"shippingTax":0,
"amountIsFinal":false,
"discounted":true,
"rawShipping":5
},
"shippingGroupClassType":"hardgoodShippingGroup",
"description":"sg30145",
"commerceItemRelationships":[
{
"amount":0,
"id":"r20140",
"commerceItemExternalId":null,
"relationshipType":"SHIPPINGQUANTITY",
"returnedQuantity":0,
"quantity":2,
"commerceItemId":"ci2000246"
},
{
"amount":0,
"id":"r20141",
"commerceItemExternalId":null,
"relationshipType":"SHIPPINGQUANTITY",
"returnedQuantity":0,
"quantity":1,
"commerceItemId":"ci2000247"
},
{
"amount":0,
"id":"r20142",
"commerceItemExternalId":null,
"relationshipType":"SHIPPINGQUANTITY",
"returnedQuantity":0,
"quantity":2,
"commerceItemId":"ci2000248"
}
],
"submittedDate":null,
"actualShipDate":null,
"state":"INITIAL",
"shipOnDate":null,
"shippingMethod":"100001",
"shippingAddress":{
"middleName":"",
"lastName":"smart",
"ownerId":null,
"state":"MN",
"address1":"101 oracle ave s",
"address2":"",
"address3":"",
"companyName":"",
"suffix":"",
"country":"US",
"city":"Richfield",
"faxNumber":"",
"postalCode":"55435",
"phoneNumber":"9953627307",
"email":"lnfo@oracle.com",
"county":"",
"prefix":"",
"firstName":"Laxmi",
"jobTitle":""
},
"stateDetail":null
}
],
"commerceItems":[
{
"id":"ci2000246",
"productDisplayName":"Oracle Cloud Commerce",
"returnedQuantity":0,
"priceInfo":{
"amount":61,
"quantityDiscounted":1,
"discountable":true,
"shippingSurcharge":0,
"priceListId":"listPrices",
"onSale":false,
"rawTotalPrice":122,
"currencyCode":"USD",
"amountIsFinal":false,
"listPrice":61,
"discounted":true,
"currentPriceDetailsSorted":[
{
"amount":61,
"currencyCode":"USD",
"tax":0,
"range":{
"lowBound":0,
"highBound":0,
"size":1
},
"amountIsFinal":false,
"discounted":false,
"orderDiscountShare":9.15,
"quantity":1,
"detailedUnitPrice":61
},
{
"amount":0,
"currencyCode":"USD",
"tax":0,
"range":{
"lowBound":1,
"highBound":1,
"size":1
},
"amountIsFinal":false,
"discounted":true,
"orderDiscountShare":0,
"quantity":1,
"detailedUnitPrice":0
}
],
"salePrice":0
},
"catalogId":null,
"quantity":2,
"lineAttributes":[

],
"catalogRefId":"KAV0289-TOB-S2",
"externalId":null,
"catalogKey":null,
"productId":"ORA123"
},
{
"id":"ci2000247",
"productDisplayName":"Oracle Cloud Commerce",
"returnedQuantity":0,
"priceInfo":{
"amount":25.17,
"quantityDiscounted":1,
"discountable":true,
"shippingSurcharge":0,
"priceListId":"listPrices",
"onSale":false,
"rawTotalPrice":31.46,
"currencyCode":"USD",
"amountIsFinal":false,
"listPrice":31.46,
"discounted":true,
"currentPriceDetailsSorted":[
{
"amount":25.17,
"currencyCode":"USD",
"tax":0,
"range":{
"lowBound":0,
"highBound":0,
"size":1
},
"amountIsFinal":false,
"discounted":true,
"orderDiscountShare":3.78,
"quantity":1,
"detailedUnitPrice":25.17
}
],
"salePrice":0
},
"catalogId":null,
"quantity":1,
"lineAttributes":[

],
"catalogRefId":"TNF002Y-SEORHEGR-S",
"externalId":null,
"catalogKey":null,
"productId":"TNF002Y"
},
{
"id":"ci2000248",
"productDisplayName":"Oracle Cloud Commerce",
"returnedQuantity":0,
"priceInfo":{
"amount":1799.9,
"quantityDiscounted":0,
"discountable":true,
"shippingSurcharge":0,
"priceListId":"listPrices",
"onSale":false,
"rawTotalPrice":1799.9,
"currencyCode":"USD",
"amountIsFinal":false,
"listPrice":899.95,
"discounted":false,
"currentPriceDetailsSorted":[
{
"amount":1799.9,
"currencyCode":"USD",
"tax":0,
"range":{
"lowBound":0,
"highBound":1,
"size":2
},
"amountIsFinal":false,
"discounted":false,
"orderDiscountShare":269.98,
"quantity":2,
"detailedUnitPrice":899.95
}
],
"salePrice":0
},
"catalogId":null,
"quantity":2,
"lineAttributes":[

],
"catalogRefId":"CDG0027-GRA-S",
"externalId":null,
"catalogKey":null,
"productId":"CDG0027"
}
],
"id":"o30145",
"siteId":"siteUS",
"priceInfo":{
"amount":1603.16,
"total":1605.29,
"shipping":2.13,
"currencyCode":"USD",
"tax":0,
"amountIsFinal":false,
"discounted":true,
"manualAdjustmentTotal":0,
"rawSubtotal":1886.07,
"discountAmount":282.90999999999985
},
"paymentGroups":[
{
"id":"pg10004",
"amount":1605.29,
"authorizationStatus":[
{
"amount":1605.29,
"errorMessage":null,
"transactionId":"h001",
"statusProps":{
"responseCode":"1000",
"currencyCode":"USD",
"responseReason":"1001",
"responseDescription":"1002",
"authorizationCode":"s001"
},
"transactionSuccess":true
}
],
"currencyCode":"USD",
"expirationMonth":"01",
"expirationYear":"2021",
"paymentGroupClassType":"creditCard",
"creditCardNumber":"1111",
"submittedDate":"2016-06-28T10:36:22.247Z",
"state":"AUTHORIZED",
"billingAddress":{
"middleName":null,
"lastName":"smart",
"ownerId":null,
"state":"MN",
"address1":"101 oracle ave s",
"address2":null,
"address3":null,
"companyName":null,
"suffix":null,
"country":"US",
"city":"Richfield",
"faxNumber":null,
"postalCode":"94059",
"phoneNumber":"6505067000",
"email":null,
"county":null,
"prefix":null,
"firstName":"Laxmi",
"jobTitle":null
},
"amountAuthorized":1605.29,
"paymentMethod":"creditCard"
}
],
"taxPriceInfo":{
"currencyCode":"USD",
"isTaxIncluded":false,
"countryTax":0,
"stateTax":0,
"cityTax":0,
"districtTax":0,
"miscTaxInfo":{

},
"amount":0,
"valueAddedTax":0,
"countyTax":0,
"amountIsFinal":false,
"miscTax":0,
"discounted":false
},
"profileId":"120002",
"creationTime":1467110181282,
"priceGroupId":"defaultPriceGroup",
"relationships":[
{
"amount":1605.29,
"id":"r20143",
"relationshipType":"ORDERAMOUNTREMAINING",
"paymentGroupId":"pg10004"
}
],
"salesChannel":"default",
"giftRegistryDetails":null,
"taxExempt":false,
"profile":{
"middleName":null,
"lastName":"Bhardwaj",
"email":"lnfo@oracle.com",
"firstName":"Laxmi",
"shippingAddress":{
"postalCode":"94059",
"phoneNumber":"6505067000",
"county":"",
"state":"CA",
"address1":"101 Oracle ave s",
"address2":"",
"address3":"",
"country":"US",
"city":"Richfield"
}
},
"totalCommerceItemCount":5
}
}

 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.