handleOrderAmendment

post

/ccagent/v1/orderAmendments/{orderId}

Handle Order Amendment. Performs either of the operations initiateAmendment(initiates the order amendment process), checkAmendmentInProgress, priceOrderAmendmentcheck by passing op value. Additonally takes x-ccsite header to submit the edited order in a site. If the site information is not provided takes the order site. Optionally takes X-CCOrganization header which is a JSON field with organization ID as value.

Request

Supported Media Types
  • application/json
Path Parameters
orderId
Type: string
Required: true
The order id.
Header Parameters
X-CCOrganization
Type: string
The organization Id to which the order belongs
x-ccsite
Type: string
the site id in which the orders is placed
Body Parameter
Root Schema : handleOrderAmendment_request
Nested Schema : billingAddress
Type: object
Billing address for the order. Related Endpoint Operations - preAuthorizeAmendOrder
Nested Schema : payments
Type: object
Payment in the cart. Related Endpoint Operations - preAuthorizeAmendOrder
Nested Schema : shippingAddress
Type: object
shipping address for the order. Related Endpoint Operations - priceOrderAmendment, preAuthorizeAmendOrder
Nested Schema : shippingMethod
Type: object
Shipping method information. Related Endpoint Operations - priceOrderAmendment, preAuthorizeAmendOrder
Nested Schema : shoppingCart
Type: object
Shopping cart information. Related Endpoint Operations - priceOrderAmendment, preAuthorizeAmendOrder
Nested Schema : customProperties
Type: object
Custom object with dynamic properties. This will be passed to the webhook request
Nested Schema : items
Type: array
Items in the cart.
Nested Schema : items
Type: object
Nested Schema : childItems
Type: array
Child items of the commerce item
Nested Schema : discountInfo
Type: array
Discount Information.
Nested Schema : externalData
Type: array
External data to be associated with a commerce item, provided by a configurator system.
Nested Schema : items
Type: object
Nested Schema : childItems
Type: array
Child items of the commerce item
Nested Schema : externalData
Type: array
External data to be associated with a commerce item, provided by a configurator system.
Nested Schema : selectedOptions
Type: array
Child Product Variant Information.
Nested Schema : items
Type: object
Nested Schema : externalData
Type: array
External data to be associated with a commerce item, provided by a configurator system.
Nested Schema : selectedOptions
Type: array
Child Product Variant Information.
Nested Schema : items
Type: object
Nested Schema : values
Type: object
The array of values associated with an externalData item.
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : values
Type: object
The array of values associated with an externalData item.
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : values
Type: object
The array of values associated with an externalData item.

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : handleOrderAmendment_response
Nested Schema : cloneOrder
Type: object
The clone order details. Related Endpoint Operations - initiateAmendment
Nested Schema : discountInfo
Type: object
Discount information. Related Endpoint Operations - priceOrderAmendment
Nested Schema : orderableQuantityMap
Type: array
The list of all logged comments for the order. Related Endpoint Operations - initiateAmendment
Nested Schema : paymentGroups
Type: array
List of payment Groups for the order. Related Endpoint Operations - preAuthorizeAmendOrder
Nested Schema : payments
Type: object
Payment in the cart. Related Endpoint Operations - priceOrderAmendment
Nested Schema : priceInfo
Type: object
Price information of the order. Related Endpoint Operations - priceOrderAmendment
Nested Schema : priceOverrideReasons
Type: array
All price override reasons. These are sent only if isItemPriceOverrideAllowed is true. Related Endpoint Operations - initiateAmendment
Nested Schema : shoppingCart
Type: object
Shopping cart information. Related Endpoint Operations - priceOrderAmendment
Nested Schema : taxPriceInfo
Type: object
The tax pricing details for the order. Related Endpoint Operations - priceOrderAmendment
Nested Schema : discountInfo
Type: object
Discount information.
Nested Schema : orderComments
Type: array
The list of all logged comments for the order.
Nested Schema : paymentGroup
Type: object
Payment Group for the order.
Nested Schema : paymentGroups
Type: array
List of payment Groups for the order.
Nested Schema : priceInfo
Type: object
Price information of the order.
Nested Schema : priceListGroup
Type: object
PriceList group of the order.
Nested Schema : profile
Type: object
Profile Information for the order.
Nested Schema : quoteInfo
Type: object
the quote information of the order
Nested Schema : returnRequests
Type: array
The list of the requests raised for the order.
Nested Schema : shippingAddress
Type: object
shipping address for the order.
Nested Schema : shippingGroups
Type: array
List of shipping groups
Nested Schema : shippingMethod
Type: object
Shipping method information.
Nested Schema : shoppingCart
Type: object
Shopping cart information.
Nested Schema : taxPriceInfo
Type: object
The tax pricing details for the order.
Nested Schema : claimedCouponMultiPromotions
Type: object
The coupons that were claimed
Nested Schema : orderCouponsMap
Type: array
Map of coupons.
Nested Schema : orderImplicitDiscountList
Type: array
List of discounts.
Nested Schema : unclaimedCouponMultiPromotions
Type: object
The coupons that were not claimed
Nested Schema : unclaimedCouponsMap
Type: array
Map of unclaimed coupons.
Nested Schema : coupon code
Type: array
Coupon Code, corresponding to which promotions were applied
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : coupon code
Type: array
Coupon Code, corresponding to which some promotions were not applied
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : couonInfo
Type: array
The couopn Info
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : billingAddress
Type: object
Billing address for the order.
Nested Schema : items
Type: object
Nested Schema : billingAddress
Type: object
Billing address for the order.
Nested Schema : currency
Type: object
Currency of the PriceList group.
Nested Schema : errorInfo
Type: array
the array of errors, if any
Nested Schema : notes
Type: array
the notes (history) for the order
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : shippingAddress
Type: object
shipping address for the order.
Nested Schema : shippingMethod
Type: object
Shipping method information.
Nested Schema : trackingInfo
Type: array
Tracking Information for the Order
Nested Schema : items
Type: object
Nested Schema : items
Type: array
Items in the cart.
Nested Schema : items
Type: object
Nested Schema : childItems
Type: array
Child items of the commerce item
Nested Schema : discountInfo
Type: array
discount information of the product
Nested Schema : dynamicProperties
Type: array
Array of custom properties at order line item level.
Nested Schema : externalData
Type: array
External data to be associated with a commerce item, provided by a configurator system.
Nested Schema : imageInfo
Type: object
Image information
Nested Schema : priceOverrideReason
Type: object
Price override reason map
Nested Schema : variant
Type: array
Sku option information
Nested Schema : items
Type: object
Nested Schema : childItems
Type: array
Child items of the commerce item
Nested Schema : externalData
Type: array
External data to be associated with a commerce item, provided by a configurator system.
Nested Schema : selectedOptions
Type: array
The array of variants of the child item.
Nested Schema : items
Type: object
Nested Schema : externalData
Type: array
External data to be associated with a commerce item, provided by a configurator system.
Nested Schema : selectedOptions
Type: array
The array of variants of the child item.
Nested Schema : items
Type: object
Nested Schema : values
Type: object
The array of values associated with an externalData item.
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : values
Type: object
The array of values associated with an externalData item.
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : values
Type: object
The array of values associated with an externalData item.
Nested Schema : items
Type: object
Nested Schema : claimedCouponMultiPromotions
Type: object
The coupons that were claimed
Nested Schema : orderCouponsMap
Type: array
Map of coupons.
Nested Schema : orderImplicitDiscountList
Type: array
List of discounts.
Nested Schema : unclaimedCouponMultiPromotions
Type: object
The coupons that were not claimed
Nested Schema : unclaimedCouponsMap
Type: array
Map of unclaimed coupons.
Nested Schema : coupon code
Type: array
Coupon Code, corresponding to which promotions were applied
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : coupon code
Type: array
Coupon Code, corresponding to which some promotions were not applied
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : couonInfo
Type: array
The couopn Info
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : billingAddress
Type: object
Billing address for the order.
Nested Schema : items
Type: object
Nested Schema : items
Type: array
Items in the cart.
Nested Schema : items
Type: object
Nested Schema : childItems
Type: array
Child items of the commerce item
Nested Schema : externalData
Type: array
External data to be associated with a commerce item, provided by a configurator system.
Nested Schema : imageInfo
Type: object
The image information.
Nested Schema : variant
Type: array
Sku Information
Nested Schema : items
Type: object
Nested Schema : childItems
Type: array
Child items of the commerce item
Nested Schema : externalData
Type: array
External data to be associated with a commerce item, provided by a configurator system.
Nested Schema : selectedOptions
Type: array
Child Product Variant Information.
Nested Schema : items
Type: object
Nested Schema : externalData
Type: array
External data to be associated with a commerce item, provided by a configurator system.
Nested Schema : selectedOptions
Type: array
Child Product Variant Information.
Nested Schema : items
Type: object
Nested Schema : values
Type: object
The array of values associated with an externalData item.
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : values
Type: object
The array of values associated with an externalData item.
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : values
Type: object
The array of values associated with an externalData item.
Nested Schema : items
Type: object
Example application/json

{
    "originalOrderId":"o160415",
    "orderableQuantityMap":{
        "camcorder_1:camcordersku_1_3":5
    },
    "priceOverrideReasons":[
        {
            "displayValue":"Agent Price Override",
            "key":"agentPriceOverride"
        },
        {
            "displayValue":"Appeasement",
            "key":"appeasement"
        }
    ],
    "isItemPriceOverrideAllowed":true,
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:9080/ccagentui/v1/orderAmendments/o160415"
        }
    ],
    "cloneOrder":{
        "totalAmountAuthorized":542.8,
        "orderComments":[
        ],
        "creationTime":1.465930276E12,
        "dynamicProperties":[
        ],
        "paymentGroups":[
            {
                "lastName":"test",
                "amountAuthorized":542.8,
                "amount":542.8,
                "totalDue":542.8,
                "cardType":null,
                "type":"card",
                "token":"9997000108950573",
                "paymentGroupId":"pg160420",
                "firstName":"Test",
                "paymentStateDetailsAsUser":"The authorization succeeded",
                "uiIntervention":"sop",
                "billingAddress":{
                    "lastName":"test",
                    "country":"US",
                    "address3":null,
                    "address2":null,
                    "city":"tt",
                    "address1":"t",
                    "prefix":null,
                    "companyName":null,
                    "postalCode":"13202",
                    "jobTitle":null,
                    "county":null,
                    "suffix":null,
                    "firstName":"Test",
                    "phoneNumber":"222-333-1111",
                    "stateName":"New York",
                    "faxNumber":null,
                    "middleName":null,
                    "countryName":"United States",
                    "state":"NY",
                    "email":"test@example.com"
                },
                "paymentState":1,
                "paidAmount":0,
                "cardNumber":"xxxxxxxxxxxx1111",
                "refundAmount":0
            }
        ],
        "submittedDate":"2016-06-14T19:06:37.000Z",
        "priceInfo":{
            "amount":467.6,
            "total":542.8,
            "shipping":35,
            "shippingSurchargeValue":0,
            "tax":40.2,
            "subTotal":597,
            "currencyCode":"USD",
            "totalWithoutTax":502.6
        },
        "paymentGroup":{
            "lastName":"test",
            "amountAuthorized":542.8,
            "amount":542.8,
            "totalDue":542.8,
            "cardType":null,
            "type":"card",
            "token":"9997000108950573",
            "paymentGroupId":"pg160420",
            "firstName":"Test",
            "paymentStateDetailsAsUser":"The authorization succeeded",
            "uiIntervention":"sop",
            "billingAddress":{
                "lastName":"test",
                "country":"US",
                "address3":null,
                "address2":null,
                "city":"tt",
                "address1":"t",
                "prefix":null,
                "companyName":null,
                "postalCode":"13202",
                "jobTitle":null,
                "county":null,
                "suffix":null,
                "firstName":"Test",
                "phoneNumber":"222-333-1111",
                "stateName":"New York",
                "faxNumber":null,
                "middleName":null,
                "countryName":"United States",
                "state":"NY",
                "email":"test@example.com"
            },
            "paymentState":1,
            "paidAmount":0,
            "cardNumber":"xxxxxxxxxxxx1111",
            "refundAmount":0
        },
        "shoppingCart":{
            "items":[
                {
                    "deactivationDate":"2018-06-27T12:59:59Z",
                    "rawTotalPrice":699.99,
                    "returnedQuantity":0,
                    "priceOverridenBy":"",
                    "dynamicProperties":[
                        {
                            "id":"ReferralCode",
                            "label":"ReferralCode",
                            "value":null
                        },
                        {
                            "id":"OfferEndsDate",
                            "label":"OfferEndsDate",
                            "value":"2020-07-02T03:42:42.962Z"
                        },
                        {
                            "id":"Discount",
                            "label":"Discount",
                            "value":10
                        },
                        {
                            "id":"GiftWrapping",
                            "label":"Gift Wrapping",
                            "value":false
                        },
                        {
                            "id":"name",
                            "label":"Name on product(Mug)",
                            "value":"My name"
                        }
                    ],
                    "displayName":"Samsung - F90BN HD Flash Memory Camcorder",
                    "shippingSurchargeValue":0,
                    "externalData":[
                    ],
                    "discountAmount":0,
                    "billingAccountId":"billingAcc-123",
                    "imageInfo":{
                        "primaryThumbImageURL":"/ccstore/v1/images/?source=/file/v2/products/Samsung_F90BN_LARGE.jpg&height=100&width=100"
                    },
                    "childItems":[
                        {
                            "serviceAccountId":"serviceAcc-123",
                            "deactivationDate":"2018-06-27T12:59:59Z",
                            "quantity":1,
                            "productId":"prod40001",
                            "displayName":"Intel Pentium Dual Core",
                            "externalData":[
                            ],
                            "billingAccountId":"billingAcc-123",
                            "catRefId":"sku40001",
                            "route":"/intel-pentium-dual-core/product/prod40001",
                            "customerAccountId":"customerAcc-123",
                            "assetId":"asset10001",
                            "selectedOptions":[
                            ],
                            "actionCode":"Add",
                            "activationDate":"2017-06-27T15:30:00Z",
                            "serviceId":"service-123"
                        },
                        {
                            "serviceAccountId":"serviceAcc-123",
                            "deactivationDate":"2018-06-27T12:59:59Z",
                            "quantity":1,
                            "productId":"prod40007",
                            "displayName":"8 GB Kingston Sodimm DDR3 1600MHz",
                            "externalData":[
                            ],
                            "billingAccountId":"billingAcc-123",
                            "childItems":[
                                {
                                    "serviceAccountId":"serviceAcc-123",
                                    "deactivationDate":"2018-06-27T12:59:59Z",
                                    "quantity":1,
                                    "productId":"prod40009",
                                    "displayName":"Intel Pentium i9 Core",
                                    "externalData":[
                                    ],
                                    "billingAccountId":"billingAcc-123",
                                    "catRefId":"sku40009",
                                    "route":"/intel-pentium-dual-core/product/prod40001",
                                    "customerAccountId":"customerAcc-123",
                                    "assetId":"asset10001",
                                    "selectedOptions":[
                                    ],
                                    "actionCode":"Add",
                                    "activationDate":"2017-06-27T15:30:00Z",
                                    "serviceId":"service-123"
                                }
                            ],
                            "catRefId":"sku40007",
                            "route":"/8-gb-kingston-sodimm-ddr3-1600mhz/product/prod40007",
                            "customerAccountId":"customerAcc-123",
                            "assetId":"asset10001",
                            "selectedOptions":[
                            ],
                            "actionCode":"Add",
                            "activationDate":"2017-06-27T15:30:00Z",
                            "serviceId":"service-123"
                        }
                    ],
                    "configuratorId":"36379716",
                    "overriddenPrice":"",
                    "commerceItemId":"ci1000785",
                    "assetId":"asset10001",
                    "price":597,
                    "isPriceOverridden":false,
                    "variant":[
                        {
                            "optionValue":"Neon",
                            "optionName":"color"
                        },
                        {
                            "optionValue":"2x optical/130x digital",
                            "optionName":"zoom"
                        }
                    ],
                    "actionCode":"Add",
                    "serviceId":"service-123",
                    "stateDetailsAsUser":"Added to order",
                    "serviceAccountId":"serviceAcc-123",
                    "unitPrice":597,
                    "quantity":1,
                    "productId":"camcorder_1",
                    "salePrice":597,
                    "tax":37.4,
                    "catRefId":"camcordersku_1_3",
                    "customerAccountId":"customerAcc-123",
                    "discountInfo":[
                    ],
                    "activationDate":"2017-06-27T15:30:00Z",
                    "listPrice":699.99,
                    "status":0,
                    "priceOverrideReason":{
                    }
                }
            ]
        },
        "state":10,
        "id":"o160416",
        "quoteInfo":{
            "providerNote":null,
            "notes":[
                {
                    "providerDate":"2016-11-25T13:33:48.000Z",
                    "providerNote":"The quote is approved as per the request",
                    "profileType":null,
                    "profileId":"se-570031"
                },
                {
                    "profileType":null,
                    "profileId":"se-570031",
                    "requestDate":"2016-10-25T13:33:48.000Z",
                    "requesterNote":"provide 10 percent off on the total quantity"
                }
            ],
            "rejectionDate":null,
            "requestDate":"2016-10-25T13:33:48.000Z",
            "errorInfo":null,
            "externalID":null,
            "rejectionNote":null,
            "quoteDate":"2016-10-25T13:35:32.000Z",
            "expirationDate":"2026-04-28T18:53:48.000Z"
        },
        "stateDetailsAsUser":"Order being amended",
        "taxPriceInfo":{
            "cityTax":0,
            "amount":40.2,
            "valueAddedTax":0,
            "countyTax":20.099999999999998,
            "isTaxIncluded":false,
            "miscTax":0,
            "districtTax":0,
            "stateTax":20.099999999999998,
            "countryTax":0
        },
        "shippingGroups":[
            {
                "trackingInfo":[
                ],
                "shippingMethod":{
                    "shippingTax":2.8,
                    "cost":35,
                    "displayName":"Standard",
                    "value":"standardShippingMethod"
                },
                "shippingAddress":{
                    "lastName":"test",
                    "country":"US",
                    "address3":null,
                    "address2":"t",
                    "city":"tt",
                    "address1":"t",
                    "prefix":null,
                    "companyName":null,
                    "postalCode":"13202",
                    "jobTitle":null,
                    "county":null,
                    "suffix":null,
                    "firstName":"Test",
                    "phoneNumber":"222-333-1111",
                    "stateName":"New York",
                    "faxNumber":null,
                    "middleName":null,
                    "countryName":"United States",
                    "state":"NY",
                    "email":"test@example.com"
                },
                "trackingNumber":null
            }
        ],
        "shippingMethod":{
            "shippingTax":2.8,
            "cost":35,
            "displayName":"Standard",
            "value":"standardShippingMethod"
        },
        "profile":{
            "lastName":"test",
            "firstName":"Test",
            "middleName":null,
            "email":"test@example.com"
        },
        "priceListGroup":{
            "deleted":false,
            "displayName":"Default Price Group",
            "listPriceList":{
                "repositoryId":"listPrices"
            },
            "repositoryId":"defaultPriceGroup",
            "active":true,
            "salePriceList":{
                "repositoryId":"salePrices"
            },
            "currency":{
                "symbol":"$",
                "displayName":"US Dollar",
                "repositoryId":"en_US",
                "fractionalDigits":2,
                "currencyCode":"USD",
                "numericCode":"840"
            },
            "id":"defaultPriceGroup",
            "locale":"en_US",
            "shippingSurchargePriceList":{
                "repositoryId":"shippingSurchargePrices"
            }
        },
        "returnRequests":[
        ],
        "creationDate":"2016-06-14T18:51:16.000Z",
        "discountInfo":{
            "unclaimedCouponMultiPromotions":{
            },
            "orderCouponsMap":{
                "Coupon2":{
                    "promotionLevel":"order",
                    "totalAdjustment":"-119.4",
                    "promotionDesc":"SPEND200FOR20PercentOFF",
                    "promotionId":"promo30007"
                }
            },
            "orderDiscount":129.39999999999998,
            "shippingDiscount":0,
            "orderImplicitDiscountList":[
            ],
            "claimedCouponMultiPromotions":{
                "Coupon2":[
                    {
                        "promotionLevel":"order",
                        "totalAdjustment":"-119.4",
                        "promotionDesc":"SPEND200FOR20PercentOFF",
                        "promotionId":"promo30007"
                    },
                    {
                        "promotionLevel":"order",
                        "totalAdjustment":"-10.0",
                        "promotionDesc":"Order_Discount_M2M",
                        "promotionId":"promo30008"
                    }
                ]
            },
            "unclaimedCouponsMap":{
            }
        },
        "orderCancelReason":null,
        "profileId":"120026",
        "exchangeRequests":[
        ],
        "siteId":"siteUS",
        "shippingAddress":{
            "lastName":"test",
            "country":"US",
            "address3":null,
            "address2":"t",
            "city":"tt",
            "address1":"t",
            "prefix":null,
            "companyName":null,
            "postalCode":"13202",
            "jobTitle":null,
            "county":null,
            "suffix":null,
            "firstName":"Test",
            "phoneNumber":"222-333-1111",
            "stateName":"New York",
            "faxNumber":null,
            "middleName":null,
            "countryName":"United States",
            "state":"NY",
            "email":"test@example.com"
        }
    }
}
Default Response
The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |200109|No edit in progress| |200106|Order data passed is null| |200105|Order id passed is null or empty| |200108|Edit in progress by another agent| |200107|Internal error occurred| |200110|Internal error occurred| |30020|The Site to which the order belongs was deleted| |30021|The Site to which the order belongs is currently inactive| |100094|Organization passed in the header is currently inactive| |20101|Invalid shipping details| |100095|The order or return request does not belong to the current organization of the shopper profile| |100096|The organization associated to the order or return request was deleted / does not exist| |100097|The organization associated to the order or return request is currently inactive| |100098|Current operation is being performed in an organization context and the shopper profile is not associated to any organization| |100099|Current operation is being performed in an organization context and the order or return request does not belong to any organization| |28107|Order not found| |200116|Internal error occurred| |200119|Internal error occurred| |20107|Specified order does not exist| |200112|Internal error occurred| |200115|Internal error occurred| |200120|Edit not initiated for the order| |30015|SiteId passed in x-ccsite header is currently inactive| |200100|Internal error occurred| |30014|SiteId passed in x-ccsite header is invalid or the site was deleted| |100101|The shopper profile does not belong to organization passed in the header| |30019|SiteId passed in x-ccsite header is not related to the order being worked upon|
Body
Root Schema : errorModel
Type: object
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

Examples

Sample Request:

{
  "op": "initiateAmendment",
  "continueWithInProgressEdit": false
}

Sample Response Payload returned by endpoint:

{
  "originalOrderId": "o160415",
  "orderableQuantityMap": {"camcorder_1:camcordersku_1_3": 5},
  "priceOverrideReasons": [
    {
      "displayValue": "Agent Price Override",
      "key": "agentPriceOverride"
    },
    {
      "displayValue": "Appeasement",
      "key": "appeasement"
    }
  ],
  "isItemPriceOverrideAllowed": true,
  "links": [{
    "rel": "self",
    "href": "http://localhost:9080/ccagentui/v1/orderAmendments/o160415"
  }],
  "cloneOrder": {
    "totalAmountAuthorized": 542.8,
    "orderComments": [],
    "creationTime": 1465930276000,
    "dynamicProperties": [],
    "paymentGroups": [{
      "lastName": "test",
      "amountAuthorized": 542.8,
      "amount": 542.8,
      "totalDue": 542.8,
      "cardType": null,
      "type": "card",
      "token": "9997000108950573",
      "paymentGroupId": "pg160420",
      "firstName": "Test",
      "paymentStateDetailsAsUser": "The authorization succeeded",
      "uiIntervention": "sop",
      "billingAddress": {
        "lastName": "test",
        "country": "US",
        "address3": null,
        "address2": null,
        "city": "tt",
        "address1": "t",
        "prefix": null,
        "companyName": null,
        "postalCode": "13202",
        "jobTitle": null,
        "county": null,
        "suffix": null,
        "firstName": "Test",
        "phoneNumber": "222-333-1111",
        "stateName": "New York",
        "faxNumber": null,
        "middleName": null,
        "countryName": "United States",
        "state": "NY",
        "email": "test@example.com"
      },
      "paymentState": 1,
      "paidAmount": 0,
      "cardNumber": "xxxxxxxxxxxx1111",
      "refundAmount": 0
    }],
    "submittedDate": "2016-06-14T19:06:37.000Z",
    "priceInfo": {
      "amount": 467.6,
      "total": 542.8,
      "shipping": 35,
      "shippingSurchargeValue": 0,
      "tax": 40.2,
      "subTotal": 597,
      "currencyCode": "USD",
      "totalWithoutTax": 502.6
    },
    "paymentGroup": {
      "lastName": "test",
      "amountAuthorized": 542.8,
      "amount": 542.8,
      "totalDue": 542.8,
      "cardType": null,
      "type": "card",
      "token": "9997000108950573",
      "paymentGroupId": "pg160420",
      "firstName": "Test",
      "paymentStateDetailsAsUser": "The authorization succeeded",
      "uiIntervention": "sop",
      "billingAddress": {
        "lastName": "test",
        "country": "US",
        "address3": null,
        "address2": null,
        "city": "tt",
        "address1": "t",
        "prefix": null,
        "companyName": null,
        "postalCode": "13202",
        "jobTitle": null,
        "county": null,
        "suffix": null,
        "firstName": "Test",
        "phoneNumber": "222-333-1111",
        "stateName": "New York",
        "faxNumber": null,
        "middleName": null,
        "countryName": "United States",
        "state": "NY",
        "email": "test@example.com"
      },
      "paymentState": 1,
      "paidAmount": 0,
      "cardNumber": "xxxxxxxxxxxx1111",
      "refundAmount": 0
    },
    "shoppingCart": {"items": [{
      "deactivationDate": "2018-06-27T12:59:59Z",
      "rawTotalPrice": 699.99,
      "returnedQuantity": 0,
      "priceOverridenBy": "",
      "dynamicProperties": [
        {
          "id": "ReferralCode",
          "label": "ReferralCode",
          "value": null
        },
        {
          "id": "OfferEndsDate",
          "label": "OfferEndsDate",
          "value": "2020-07-02T03:42:42.962Z"
        },
        {
          "id": "Discount",
          "label": "Discount",
          "value": 10
        },
        {
          "id": "GiftWrapping",
          "label": "Gift Wrapping",
          "value": false
        },
        {
          "id": "name",
          "label": "Name on product(Mug)",
          "value": "My name"
        }
      ],
      "displayName": "Samsung - F90BN HD Flash Memory Camcorder",
      "shippingSurchargeValue": 0,
      "externalData": [],
      "discountAmount": 0,
      "billingAccountId": "billingAcc-123",
      "imageInfo": {"primaryThumbImageURL": "/ccstore/v1/images/?source=/file/v2/products/Samsung_F90BN_LARGE.jpg&height=100&width=100"},
      "childItems": [
        {
          "serviceAccountId": "serviceAcc-123",
          "deactivationDate": "2018-06-27T12:59:59Z",
          "quantity": 1,
          "productId": "prod40001",
          "displayName": "Intel Pentium Dual Core",
          "externalData": [],
          "billingAccountId": "billingAcc-123",
          "catRefId": "sku40001",
          "route": "/intel-pentium-dual-core/product/prod40001",
          "customerAccountId": "customerAcc-123",
          "assetId": "asset10001",
          "selectedOptions": [],
          "actionCode": "Add",
          "activationDate": "2017-06-27T15:30:00Z",
          "serviceId": "service-123"
        },
        {
          "serviceAccountId": "serviceAcc-123",
          "deactivationDate": "2018-06-27T12:59:59Z",
          "quantity": 1,
          "productId": "prod40007",
          "displayName": "8 GB Kingston Sodimm DDR3 1600MHz",
          "externalData": [],
          "billingAccountId": "billingAcc-123",
          "childItems": [{
            "serviceAccountId": "serviceAcc-123",
            "deactivationDate": "2018-06-27T12:59:59Z",
            "quantity": 1,
            "productId": "prod40009",
            "displayName": "Intel Pentium i9 Core",
            "externalData": [],
            "billingAccountId": "billingAcc-123",
            "catRefId": "sku40009",
            "route": "/intel-pentium-dual-core/product/prod40001",
            "customerAccountId": "customerAcc-123",
            "assetId": "asset10001",
            "selectedOptions": [],
            "actionCode": "Add",
            "activationDate": "2017-06-27T15:30:00Z",
            "serviceId": "service-123"
          }],
          "catRefId": "sku40007",
          "route": "/8-gb-kingston-sodimm-ddr3-1600mhz/product/prod40007",
          "customerAccountId": "customerAcc-123",
          "assetId": "asset10001",
          "selectedOptions": [],
          "actionCode": "Add",
          "activationDate": "2017-06-27T15:30:00Z",
          "serviceId": "service-123"
        }
      ],
      "configuratorId": "36379716",
      "overriddenPrice": "",
      "commerceItemId": "ci1000785",
      "assetId": "asset10001",
      "price": 597,
      "isPriceOverridden": false,
      "variant": [
        {
          "optionValue": "Neon",
          "optionName": "color"
        },
        {
          "optionValue": "2x optical/130x digital",
          "optionName": "zoom"
        }
      ],
      "actionCode": "Add",
      "serviceId": "service-123",
      "stateDetailsAsUser": "Added to order",
      "serviceAccountId": "serviceAcc-123",
      "unitPrice": 597,
      "quantity": 1,
      "productId": "camcorder_1",
      "salePrice": 597,
      "tax": 37.4,
      "catRefId": "camcordersku_1_3",
      "customerAccountId": "customerAcc-123",
      "discountInfo": [],
      "activationDate": "2017-06-27T15:30:00Z",
      "listPrice": 699.99,
      "status": 0,
      "priceOverrideReason": {}
    }]},
    "state": 10,
    "id": "o160416",
    "quoteInfo": {
      "providerNote": null,
      "notes": [
        {
          "providerDate": "2016-11-25T13:33:48.000Z",
          "providerNote": "The quote is approved as per the request",
          "profileType": null,
          "profileId": "se-570031"
        },
        {
          "profileType": null,
          "profileId": "se-570031",
          "requestDate": "2016-10-25T13:33:48.000Z",
          "requesterNote": "provide 10 percent off on the total quantity"
        }
      ],
      "rejectionDate": null,
      "requestDate": "2016-10-25T13:33:48.000Z",
      "errorInfo": null,
      "externalID": null,
      "rejectionNote": null,
      "quoteDate": "2016-10-25T13:35:32.000Z",
      "expirationDate": "2026-04-28T18:53:48.000Z"
    },
    "stateDetailsAsUser": "Order being amended",
    "taxPriceInfo": {
      "cityTax": 0,
      "amount": 40.2,
      "valueAddedTax": 0,
      "countyTax": 20.099999999999998,
      "isTaxIncluded": false,
      "miscTax": 0,
      "districtTax": 0,
      "stateTax": 20.099999999999998,
      "countryTax": 0
    },
    "shippingGroups": [{
      "trackingInfo": [],
      "shippingMethod": {
        "shippingTax": 2.8,
        "cost": 35,
        "displayName": "Standard",
        "value": "standardShippingMethod"
      },
      "shippingAddress": {
        "lastName": "test",
        "country": "US",
        "address3": null,
        "address2": "t",
        "city": "tt",
        "address1": "t",
        "prefix": null,
        "companyName": null,
        "postalCode": "13202",
        "jobTitle": null,
        "county": null,
        "suffix": null,
        "firstName": "Test",
        "phoneNumber": "222-333-1111",
        "stateName": "New York",
        "faxNumber": null,
        "middleName": null,
        "countryName": "United States",
        "state": "NY",
        "email": "test@example.com"
      },
      "trackingNumber": null
    }],
    "shippingMethod": {
      "shippingTax": 2.8,
      "cost": 35,
      "displayName": "Standard",
      "value": "standardShippingMethod"
    },
    "profile": {
      "lastName": "test",
      "firstName": "Test",
      "middleName": null,
      "email": "test@example.com"
    },
    "priceListGroup": {
      "deleted": false,
      "displayName": "Default Price Group",
      "listPriceList": {"repositoryId": "listPrices"},
      "repositoryId": "defaultPriceGroup",
      "active": true,
      "salePriceList": {"repositoryId": "salePrices"},
      "currency": {
        "symbol": "$",
        "displayName": "US Dollar",
        "repositoryId": "en_US",
        "fractionalDigits": 2,
        "currencyCode": "USD",
        "numericCode": "840"
      },
      "id": "defaultPriceGroup",
      "locale": "en_US",
      "shippingSurchargePriceList": {"repositoryId": "shippingSurchargePrices"}
    },
    "returnRequests": [],
    "creationDate": "2016-06-14T18:51:16.000Z",
    "discountInfo": {
      "unclaimedCouponMultiPromotions": {},
      "orderCouponsMap": {"Coupon2": {
        "promotionLevel": "order",
        "totalAdjustment": "-119.4",
        "promotionDesc": "SPEND200FOR20PercentOFF",
        "promotionId": "promo30007"
      }},
      "orderDiscount": 129.39999999999998,
      "shippingDiscount": 0,
      "orderImplicitDiscountList": [],
      "claimedCouponMultiPromotions": {"Coupon2": [
        {
          "promotionLevel": "order",
          "totalAdjustment": "-119.4",
          "promotionDesc": "SPEND200FOR20PercentOFF",
          "promotionId": "promo30007"
        },
        {
          "promotionLevel": "order",
          "totalAdjustment": "-10.0",
          "promotionDesc": "Order_Discount_M2M",
          "promotionId": "promo30008"
        }
      ]},
      "unclaimedCouponsMap": {}
    },
    "orderCancelReason": null,
    "profileId": "120026",
    "exchangeRequests": [],
    "siteId": "siteUS",
    "shippingAddress": {
      "lastName": "test",
      "country": "US",
      "address3": null,
      "address2": "t",
      "city": "tt",
      "address1": "t",
      "prefix": null,
      "companyName": null,
      "postalCode": "13202",
      "jobTitle": null,
      "county": null,
      "suffix": null,
      "firstName": "Test",
      "phoneNumber": "222-333-1111",
      "stateName": "New York",
      "faxNumber": null,
      "middleName": null,
      "countryName": "United States",
      "state": "NY",
      "email": "test@example.com"
    }
  }
}