submitOrderAmendment
put
/ccagent/v1/orderAmendments/{orderId}
Submit Order Amendment. Applies the changes made during amend process to the order.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:
stringRequired:trueCommerce id of the order.
Header Parameters
- X-CCOrganization
-
Type:
stringThe organization Id to which the order belongs- x-ccsite
Type:stringthe site id in which the orders is placed
Body Parameter
Root Schema : submitOrderAmendment_request
PUT v1/ccagent/v1/orderAmendments/o10411
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : submitOrderAmendment_response
- approvalSystemMessages
-
Type:
arrayapprovalSystemMessagesAdditional Properties Allowed:The array of messages which are stored during order processing - creationDate
-
Type:
stringDate on which the Order was created. - creationTime
-
Type:
numberOrder creation time. - discountInfo
-
Type:
objectdiscountInfoAdditional Properties Allowed:Discount information. - id
-
Type:
stringCommerce id for this order. - orderComments
-
Type:
arrayorderCommentsAdditional Properties Allowed:The list of all logged comments for the order. - paymentGroup
-
Type:
objectpaymentGroupAdditional Properties Allowed:Payment Group for the order. - paymentGroups
-
Type:
arraypaymentGroupsAdditional Properties Allowed:List of payment Groups for the order. - priceInfo
-
Type:
objectpriceInfoAdditional Properties Allowed:Price information of the order. - profile
-
Type:
objectprofileAdditional Properties Allowed:Profile Information for the order. - profileId
-
Type:
stringThe Repository Id of the profile to which this Order belongs to. - quoteInfo
-
Type:
objectquoteInfoAdditional Properties Allowed:the quote information of the order - returnRequests
-
Type:
arrayreturnRequestsAdditional Properties Allowed:The list of the requests raised for the order. - shippingAddress
-
Type:
objectshippingAddressAdditional Properties Allowed:shipping address for the order. - shippingGroups
-
Type:
arrayshippingGroupsAdditional Properties Allowed:List of shipping groups for the order. - shippingMethod
-
Type:
objectshippingMethodAdditional Properties Allowed:Shipping method information. - shoppingCart
-
Type:
objectshoppingCartAdditional Properties Allowed:Shopping cart information. - state
-
Type:
integerThe order state. - stateDetailsAsUser
-
Type:
stringOrder State description for this order. - submittedDate
-
Type:
stringDate on which the Order was submitted. - taxPriceInfo
-
Type:
objecttaxPriceInfoAdditional Properties Allowed:The tax pricing details for the order. - totalAmountAuthorized
-
Type:
numberTotal amount authorized for the order.
Nested Schema : approvalSystemMessages
Nested Schema : discountInfo
Type:
objectDiscount information.
- claimedCouponMultiPromotions
-
Type:
objectclaimedCouponMultiPromotionsAdditional Properties Allowed:The coupons that were claimed - orderCouponsMap
-
Type:
arrayorderCouponsMapAdditional Properties Allowed:Map of coupons. - orderDiscount
-
Type:
numberDiscount given on an order. - orderImplicitDiscountList
-
Type:
arrayorderImplicitDiscountListAdditional Properties Allowed:List of discounts. - shippingDiscount
-
Type:
numbershipping discount - unclaimedCouponMultiPromotions
-
Type:
objectunclaimedCouponMultiPromotionsAdditional Properties Allowed:The coupons that were not claimed - unclaimedCouponsMap
-
Type:
arrayunclaimedCouponsMapAdditional Properties Allowed:Map of unclaimed coupons.
Nested Schema : orderComments
Nested Schema : paymentGroup
Type:
objectPayment Group for the order.
- amount
-
Type:
numberThe amount associated with this Payment Group. - amountAuthorized
-
Type:
numberThe amount authorized with this Payment Group. - billingAddress
-
Type:
objectbillingAddressAdditional Properties Allowed:Billing address for the order. - cardNumber
-
Type:
stringThe masked credit card number. - cardType
-
Type:
stringPayment method. e.g. physicalGiftCard/ creditCard - firstName
-
Type:
stringFirst name associated with this Payment Group. - lastName
-
Type:
stringLast name associated with this Payment Group. - paidAmount
-
Type:
numberThe amount that has been debited to-date for this Payment Group. - paymentGroupId
-
Type:
stringId of this payment Group. - paymentState
-
Type:
stringThe Payment Group state. - paymentStateDetailsAsUser
-
Type:
stringThe payment state description as string. - refundAmount
-
Type:
numberThe amount that has been credited to-date for this Payment Group. - token
-
Type:
stringThe payment authorization token. - totalDue
-
Type:
numberThe current working total order price including all discounts, tax, and billing costs. - type
-
Type:
stringPayment method type - uiIntervention
-
Type:
stringThis decides whether the client has to do some intervention for payment. e.g. SOP
Nested Schema : paymentGroups
Nested Schema : priceInfo
Type:
objectPrice information of the order.
- amount
-
Type:
numberThe raw number that represents the price. - billing
-
Type:
numberThe billing cost of the order. - currencyCode
-
Type:
stringIndicates the currency of the price. For example, USD indicates that the price is in US dollars. - shipping
-
Type:
numberTotal shipping amount of the order. - shippingSurchargeValue
-
Type:
numberTotal shipping surcharge amount of the order. - subTotal
-
Type:
numberThe subtotal of the order before applying order-level promotions. - tax
-
Type:
numberThe tax on the order. - total
-
Type:
numberThe current working total, including all promotions, tax, and billing costs. - totalWithoutTax
-
Type:
numberOrder total without tax.
Nested Schema : profile
Type:
objectProfile Information for the order.
-
Type:
stringEmail id of profile. - firstName
-
Type:
stringFirst name of profile. - lastName
-
Type:
stringLast name of profile. - middleName
-
Type:
stringMiddle name of profile.
Nested Schema : quoteInfo
Type:
objectthe quote information of the order
- errorInfo
-
Type:
arrayerrorInfoAdditional Properties Allowed:the array of errors, if any - expirationDate
-
Type:
stringthe expiration date of the quoted order, if any - externalId
-
Type:
stringthe external id for the quote - notes
-
Type:
arraynotesAdditional Properties Allowed:the notes (history) for the order - providerNote
-
Type:
stringthe provider note for the quoted order - quoteDate
-
Type:
numberthe date the order was quoted in milliseconds - rejectionDate
-
Type:
stringrejection date of the quoted order - rejectionNote
-
Type:
stringthe rejection note for an order whose quote has been rejected by user - requestDate
-
Type:
stringthe date when the quote was requested in ISO format
Nested Schema : returnRequests
Nested Schema : shippingAddress
Type:
objectshipping address for the order.
- address1
-
Type:
stringAddress Line 1 for this shipping address. - address2
-
Type:
stringAddress Line 2 for this shipping address. - address3
-
Type:
stringAddress Line 3 for this shipping address. - city
-
Type:
stringCity for this shipping address. - companyName
-
Type:
stringCompany name for this shipping address. - country
-
Type:
stringCountry id for this shipping address. - countryName
-
Type:
stringCountry name for this shipping address. - county
-
Type:
stringCounty for this shipping address. -
Type:
stringEmail for this shipping address. - faxNumber
-
Type:
stringFax number for this shipping address. - firstName
-
Type:
stringFirst name for this shipping address. - jobTitle
-
Type:
stringJob title for this shipping address. - lastName
-
Type:
stringLast name for this shipping address. - middleName
-
Type:
stringMiddle name for this shipping address. - phoneNumber
-
Type:
stringPhone number for this shipping address. - postalCode
-
Type:
stringPostal code for this shipping address. - prefix
-
Type:
stringPrefix for this shipping address. - state
-
Type:
stringState code for this shipping address. - stateName
-
Type:
stringState name for this shipping address. - suffix
-
Type:
stringSuffix for this shipping address.
Nested Schema : shippingGroups
Nested Schema : shippingMethod
Type:
objectShipping method information.
- cost
-
Type:
numbershipping cost. - displayName
-
Type:
stringDisplay Name of shipment. - value
-
Type:
stringmethod type of shipment
Nested Schema : shoppingCart
Type:
objectShopping cart information.
- items
-
Type:
arrayitemsAdditional Properties Allowed:Items in the cart.
Nested Schema : taxPriceInfo
Type:
objectThe tax pricing details for the order.
- amount
-
Type:
numberThe monetary amount. - amountIsFinal
-
Type:
booleanWhether the amount is final. - cityTax
-
Type:
numberThe monetary amount of city tax. - countryTax
-
Type:
numberThe monetary amount of country tax. - countyTax
-
Type:
numberThe monetary amount of county tax. - currencyCode
-
Type:
stringThe three character currency code. - discounted
-
Type:
booleanWhether the price was discounted. - districtTax
-
Type:
numberTax amount for the district. - stateTax
-
Type:
numberTax amount for the state.
Nested Schema : claimedCouponMultiPromotions
Type:
objectThe coupons that were claimed
- coupon code
-
Type:
arraycoupon codeAdditional Properties Allowed:Coupon Code, corresponding to which promotions were applied
Nested Schema : orderCouponsMap
Nested Schema : orderImplicitDiscountList
Nested Schema : unclaimedCouponMultiPromotions
Type:
objectThe coupons that were not claimed
- coupon code
-
Type:
arraycoupon codeAdditional Properties Allowed:Coupon Code, corresponding to which some promotions were not applied
Nested Schema : unclaimedCouponsMap
Nested Schema : coupon code
Nested Schema : items
Type:
object- promotionDesc
-
Type:
stringPromotion Description - promotionId
-
Type:
stringPromotion Id - promotionLevel
-
Type:
stringPromotion Level - totalAdjustment
-
Type:
numberAdjustment done by the promotion
Nested Schema : items
Type:
object- promotionDesc
-
Type:
stringDescription of the promotion - promotionId
-
Type:
stringId of the promotion - promotionLevel
-
Type:
stringLevel of the promotion - totalAdjustment
-
Type:
stringTotal adjustment caused by the promotion
Nested Schema : items
Type:
object- promotionDesc
-
Type:
stringDescription of the promotion - promotionId
-
Type:
stringId of the promotion - promotionLevel
-
Type:
stringLevel of the promotion - totalAdjustment
-
Type:
stringTotal adjustment caused by the promotion
Nested Schema : coupon code
Nested Schema : items
Type:
object- promotionDesc
-
Type:
stringPromotion Description - promotionId
-
Type:
stringPromotion Id - promotionLevel
-
Type:
stringPromotion Level
Nested Schema : items
Type:
object- couonInfo
-
Type:
arraycouonInfoAdditional Properties Allowed:The couopn Info - value
-
Type:
stringThe value for promotion
Nested Schema : couonInfo
Nested Schema : items
Type:
object- promotionDesc
-
Type:
stringDescription of the promotion - promotionId
-
Type:
stringId of the promotion - promotionLevel
-
Type:
stringLevel of the promotion - totalAdjustment
-
Type:
stringTotal adjustment caused by the promotion
Nested Schema : items
Type:
object- comment
-
Type:
stringThe comment string. - creationDate
-
Type:
stringDate on which the comment was created. - repositoryId
-
Type:
stringThe repository id of the comment record.
Nested Schema : billingAddress
Type:
objectBilling address for the order.
- address1
-
Type:
stringAddress line 1 for this billing address. - address2
-
Type:
stringAddress line 2 for this billing address. - address3
-
Type:
stringAddress line 3 for this billing address. - city
-
Type:
stringCity for this billing address. - companyName
-
Type:
stringCompany name for this billing address. - country
-
Type:
stringCountry code for this billing address. - countryName
-
Type:
stringCountry name for this billing address. - county
-
Type:
stringCounty for this billing address. -
Type:
stringEmail for this billing address. - faxNumber
-
Type:
stringFax number for this billing address. - firstName
-
Type:
stringFirst name for this billing address. - jobTitle
-
Type:
stringJob title for this billing address. - lastName
-
Type:
stringLast name for this billing address. - middleName
-
Type:
stringMiddle name for this billing address. - phoneNumber
-
Type:
stringPhone number for this billing address. - postalCode
-
Type:
stringPostal code for this billing address. - prefix
-
Type:
stringPrefix for this billing address. - state
-
Type:
stringState code for this billing address. - stateName
-
Type:
stringState name for this billing address. - suffix
-
Type:
stringSuffix for this billing address.
Nested Schema : items
Type:
object- amount
-
Type:
numberThe amount associated with this Payment Group. - amountAuthorized
-
Type:
numberThe amount authorized with this Payment Group. - billingAddress
-
Type:
objectbillingAddressAdditional Properties Allowed:Billing address for the order. - cardNumber
-
Type:
stringThe masked credit card number. - cardType
-
Type:
stringPayment method. e.g. physicalGiftCard/ creditCard - firstName
-
Type:
stringFirst name associated with this Payment Group. - lastName
-
Type:
stringLast name associated with this Payment Group. - paidAmount
-
Type:
numberThe amount that has been debited to-date for this Payment Group. - paymentGroupId
-
Type:
stringId of this payment Group. - paymentState
-
Type:
stringThe Payment Group state. - paymentStateDetailsAsUser
-
Type:
stringThe payment state description as string. - refundAmount
-
Type:
numberThe amount that has been credited to-date for this Payment Group. - token
-
Type:
stringToken associated with this Payment Group. - totalDue
-
Type:
numberThe current working total order price including all discounts, tax, and billing costs. - type
-
Type:
stringPayment method type - uiIntervention
-
Type:
stringThis decides whether the client has to do some intervention for payment. e.g. SOP
Nested Schema : billingAddress
Type:
objectBilling address for the order.
- address1
-
Type:
stringAddress line 1 for this billing address. - address2
-
Type:
stringAddress line 2 for this billing address. - address3
-
Type:
stringAddress line 3 for this billing address. - city
-
Type:
stringCity for this billing address. - companyName
-
Type:
stringCompany name for this billing address. - country
-
Type:
stringCountry id for this billing address. - countryName
-
Type:
stringCountry name for this billing address. - county
-
Type:
stringCounty for this billing address. -
Type:
stringEmail for this billing address. - faxNumber
-
Type:
stringFax number for this billing address. - firstName
-
Type:
stringFirst name for this billing address. - jobTitle
-
Type:
stringJob title for this billing address. - lastName
-
Type:
stringLast name for this billing address. - middleName
-
Type:
stringMiddle name for this billing address. - phoneNumber
-
Type:
stringPhone number for this billing address. - postalCode
-
Type:
stringPostal code for this billing address. - prefix
-
Type:
stringPrefix for this billing address. - state
-
Type:
stringState id for this billing address. - stateName
-
Type:
stringState name for this billing address. - suffix
-
Type:
stringSuffix for this billing address.
Nested Schema : errorInfo
Nested Schema : notes
Nested Schema : items
Type:
object- profileId
-
Type:
stringthe profile id of the user - profileType
-
Type:
stringthe profile type of the user that requested the quote - requestDate/quoteDate/rejectionDate
-
Type:
numberthe request/quote/rejection date for the note - requesterNote/providerNote/rejectionNote
-
Type:
stringthe requester/provider/rejection note
Nested Schema : items
Type:
object- createdDate
-
Type:
stringThe creation date of the return request. - returnRequestId
-
Type:
stringThe return request id. - state
-
Type:
stringThe status of the return request. - totalRefund
-
Type:
numberThe total amount to be refunded on return. - totalReturnQuantity
-
Type:
integerThe total quantity for which return request has been raised.
Nested Schema : items
Type:
object- shippingAddress
-
Type:
objectshippingAddressAdditional Properties Allowed:shipping address for the order. - shippingMethod
-
Type:
objectshippingMethodAdditional Properties Allowed:Shipping method information. - trackingInfo
-
Type:
arraytrackingInfoAdditional Properties Allowed:Tracking Information for the Order - trackingNumber
-
Type:
stringShipping tracking number
Nested Schema : shippingAddress
Type:
objectshipping address for the order.
- address1
-
Type:
stringAddress Line 1 for this shipping address. - address2
-
Type:
stringAddress Line 2 for this shipping address. - address3
-
Type:
stringAddress Line 3 for this shipping address. - city
-
Type:
stringCity for this shipping address. - companyName
-
Type:
stringCompany name for this shipping address. - country
-
Type:
stringCountry code for this shipping address. - countryName
-
Type:
stringCountry name for this shipping address. - county
-
Type:
stringCounty for this shipping address. -
Type:
stringEmail for this shipping address. - faxNumber
-
Type:
stringFax number for this shipping address. - firstName
-
Type:
stringFirst name for this shipping address. - jobTitle
-
Type:
stringJob title for this shipping address. - lastName
-
Type:
stringLast name for this shipping address. - middleName
-
Type:
stringMiddle name for this shipping address. - phoneNumber
-
Type:
stringPhone number for this shipping address. - postalCode
-
Type:
stringPostal code for this shipping address. - prefix
-
Type:
stringPrefix for this shipping address. - state
-
Type:
stringState code for this shipping address. - stateName
-
Type:
stringState name for this shipping address. - suffix
-
Type:
stringSuffix for this shipping address.
Nested Schema : shippingMethod
Type:
objectShipping method information.
- cost
-
Type:
numbershipping cost. - displayName
-
Type:
stringDisplay Name of shipment. - value
-
Type:
stringmethod type of shipment
Nested Schema : trackingInfo
Nested Schema : items
Type:
object- carrierId
-
Type:
stringCarrier Id for Tracking - carrierName
-
Type:
stringCarrier Name for Tracking - carrierUrl
-
Type:
stringCarrier URL for Tracking - trackingNumber
-
Type:
stringTracking Number
Nested Schema : items
Nested Schema : items
Type:
object- actionCode
-
Type:
stringThe action code that has been set on the item by the configurator system. - activationDate
-
Type:
stringThe activation date in ISO format. - assetId
-
Type:
stringThe asset ID corresponding to the current item. - billingAccountId
-
Type:
stringThe billing account ID associated to the current item. - catRefId
-
Type:
stringCatalog Reference Id of commerce item. - childItems
-
Type:
arraychildItemsAdditional Properties Allowed:Child items of the commerce item - commerceItemId
-
Type:
stringUnique id of the line item - configuratorId
-
Type:
stringConfiguration id of the configurable product - customerAccountId
-
Type:
stringThe customer account ID associated to the current item. - deactivationDate
-
Type:
stringThe deactivation date in ISO format. - displayName
-
Type:
stringDisplay name of commerce item. - externalData
-
Type:
arrayexternalDataAdditional Properties Allowed:External data to be associated with a commerce item, provided by a configurator system. - externalPrice
-
Type:
numberThe Price of the product as per the external pricing system. - externalPriceQuantity
-
Type:
integerQuantity of the product, the customer is allowed to buy at the external price. - imageInfo
-
Type:
objectimageInfoAdditional Properties Allowed:The image information. - listPrice
-
Type:
numberlist price of commerce item. - onSale
-
Type:
booleanIndicates if product is on sale or not. - price
-
Type:
numberThe raw number that represents the price. - productId
-
Type:
stringProduct Id of commerce item. - quantity
-
Type:
numberQuantity of the items. - rawTotalPrice
-
Type:
numberRaw total price of commerce item - returnedQuantity
-
Type:
numberReturned quantity - serviceAccountId
-
Type:
stringThe service account ID associated to the current item. - serviceId
-
Type:
stringThe service ID associated to the current item. - shippingSurchargeValue
-
Type:
numberShipping surcharge amount for commerce item. - stateDetailsAsUser
-
Type:
stringState description of the commerce item. - status
-
Type:
integerState of the commerce item. - tax
-
Type:
numberThe amount of tax paid for this item. - unitPrice
-
Type:
numberSale price or list price of commerceItem. - variant
-
Type:
arrayvariantAdditional Properties Allowed:Sku Information
Nested Schema : childItems
Nested Schema : externalData
Nested Schema : imageInfo
Type:
objectThe image information.
- primaryThumbImageURL
-
Type:
stringThe primary thumb URL
Nested Schema : variant
Nested Schema : items
Type:
object- actionCode
-
Type:
stringThe action code that has been set on the item by the configurator system. - activationDate
-
Type:
stringThe activation date in ISO format. - assetId
-
Type:
stringThe asset ID corresponding to the current item. - billingAccountId
-
Type:
stringThe billing account ID associated to the current item. - catRefId
-
Type:
stringSku Id of the child item - childItems
-
Type:
arraychildItemsAdditional Properties Allowed:Child items of the commerce item - customerAccountId
-
Type:
stringThe customer account ID associated to the current item. - deactivationDate
-
Type:
stringThe deactivation date in ISO format. - displayName
-
Type:
stringDisplay name of the child product - externalData
-
Type:
arrayexternalDataAdditional Properties Allowed:External data to be associated with a commerce item, provided by a configurator system. - productId
-
Type:
stringProduct Id of the child item - quantity
-
Type:
numberQuantity of the child item - route
-
Type:
stringProduct path - selectedOptions
-
Type:
arrayselectedOptionsAdditional Properties Allowed:Child Product Variant Information. - serviceAccountId
-
Type:
stringThe service account ID associated to the current item. - serviceId
-
Type:
stringThe service ID associated to the current item.
Nested Schema : childItems
Nested Schema : externalData
Nested Schema : selectedOptions
Nested Schema : items
Type:
object- actionCode
-
Type:
stringThe action code that has been set on the item by the configurator system. - activationDate
-
Type:
stringThe activation date in ISO format. - assetId
-
Type:
stringThe asset ID corresponding to the current item. - billingAccountId
-
Type:
stringThe billing account ID associated to the current item. - catRefId
-
Type:
stringSku Id of the child item - customerAccountId
-
Type:
stringThe customer account ID associated to the current item. - deactivationDate
-
Type:
stringThe deactivation date in ISO format. - displayName
-
Type:
stringDisplay name of the child product - externalData
-
Type:
arrayexternalDataAdditional Properties Allowed:External data to be associated with a commerce item, provided by a configurator system. - productId
-
Type:
stringProduct Id of the child item - quantity
-
Type:
numberQuantity of the child item - route
-
Type:
stringProduct path - selectedOptions
-
Type:
arrayselectedOptionsAdditional Properties Allowed:Child Product Variant Information. - serviceAccountId
-
Type:
stringThe service account ID associated to the current item. - serviceId
-
Type:
stringThe service ID associated to the current item.
Nested Schema : externalData
Nested Schema : selectedOptions
Nested Schema : items
Type:
object- actionCode
-
Type:
stringThe action code that has been set on the externalData item by the configurator system. - name
-
Type:
stringThe name to be associated with the externalData item. - values
-
Type:
objectvaluesAdditional Properties Allowed:The array of values associated with an externalData item.
Nested Schema : values
Type:
objectThe array of values associated with an externalData item.
- dynamic_property_key
-
Type:
stringThis property's name and value will be retrieved from a configurator system, so will be dynamically set.
Nested Schema : items
Type:
object- optionName
-
Type:
stringName of the Dynamic attribute. - optionValue
-
Type:
stringValue of the Dynamic attribute.
Nested Schema : items
Type:
object- actionCode
-
Type:
stringThe action code that has been set on the externalData item by the configurator system. - name
-
Type:
stringThe name to be associated with the externalData item. - values
-
Type:
objectvaluesAdditional Properties Allowed:The array of values associated with an externalData item.
Nested Schema : values
Type:
objectThe array of values associated with an externalData item.
- dynamic_property_key
-
Type:
stringThis property's name and value will be retrieved from a configurator system, so will be dynamically set.
Nested Schema : items
Type:
object- optionName
-
Type:
stringName of the Dynamic attribute. - optionValue
-
Type:
stringValue of the Dynamic attribute.
Nested Schema : items
Type:
object- actionCode
-
Type:
stringThe action code that has been set on the externalData item by the configurator system. - name
-
Type:
stringThe name to be associated with the externalData item. - values
-
Type:
objectvaluesAdditional Properties Allowed:The array of values associated with an externalData item.
Nested Schema : values
Type:
objectThe array of values associated with an externalData item.
- dynamic_property_key
-
Type:
stringThis property's name and value will be retrieved from a configurator system, so will be dynamically set.
Nested Schema : items
Type:
object- optionName
-
Type:
stringThe SKU option name. - optionValue
-
Type:
stringThe SKU option value.
Example application/json
{
"taxPriceInfo":{
"cityTax":0,
"amount":9.2,
"valueAddedTax":0,
"countyTax":4.6,
"isTaxIncluded":false,
"miscTax":0,
"districtTax":0,
"stateTax":4.6,
"countryTax":0
},
"totalAmountAuthorized":124.18,
"shippingGroups":[
{
"trackingInfo":[
],
"shippingMethod":{
"cost":25,
"displayName":"Standard",
"value":"standardShippingMethod"
},
"shippingAddress":{
"lastName":"Anderson",
"country":"US",
"address3":null,
"address2":null,
"city":"Syracuse",
"address1":"21 Cedar Ave",
"prefix":null,
"companyName":null,
"postalCode":"13202",
"jobTitle":null,
"county":null,
"suffix":null,
"firstName":"Kim",
"phoneNumber":"212-555-1977",
"stateName":"New York",
"faxNumber":null,
"middleName":null,
"countryName":"United States",
"state":"NY",
"email":"kim@example.com"
},
"trackingNumber":null
}
],
"orderComments":[
],
"creationTime":1.44766699E12,
"approvalSystemMessages":[
],
"shippingMethod":{
"cost":25,
"displayName":"Standard",
"value":"standardShippingMethod"
},
"profile":{
"lastName":"Anderson",
"firstName":"Kim",
"middleName":null,
"email":"kim@example.com"
},
"returnRequests":[
],
"creationDate":"2015-07-15T09:09:15.000Z",
"submittedDate":"2015-07-15T09:10:15.000Z",
"paymentGroups":[
{
"lastName":"Anderson",
"amountAuthorized":124.18,
"amount":124.18,
"totalDue":124.18,
"cardType":null,
"type":"card",
"token":"9997000108950573",
"paymentGroupId":"pg30411",
"firstName":"Kim",
"paymentStateDetailsAsUser":"The authorization succeeded",
"uiIntervention":"sop",
"billingAddress":{
"lastName":"Anderson",
"country":"US",
"address3":null,
"address2":null,
"city":"Syracuse",
"address1":"21 Cedar Ave",
"prefix":null,
"companyName":null,
"postalCode":"13202",
"jobTitle":null,
"county":null,
"suffix":null,
"firstName":"Kim",
"phoneNumber":"212-555-1977",
"stateName":"New York",
"faxNumber":null,
"middleName":null,
"countryName":"United States",
"state":"NY",
"email":"kim@example.com"
},
"paymentState":1,
"paidAmount":0,
"cardNumber":"xxxxxxxxxxxx1111",
"refundAmount":0
}
],
"priceInfo":{
"amount":89.98,
"total":124.18,
"shipping":25,
"shippingSurchargeValue":0,
"tax":9.2,
"subTotal":89.98,
"currencyCode":"USD",
"totalWithoutTax":114.98
},
"discountInfo":{
"unclaimedCouponMultiPromotions":{
},
"orderCouponsMap":{
},
"orderDiscount":0,
"shippingDiscount":0,
"orderImplicitDiscountList":[
],
"unclaimedCouponsMap":{
},
"claimedCouponMultiPromotions":{
}
},
"profileId":"se-570031",
"exchangeRequests":[
],
"paymentGroup":{
"lastName":"Anderson",
"amountAuthorized":124.18,
"amount":124.18,
"totalDue":124.18,
"cardType":null,
"type":"card",
"token":"9997000108950573",
"paymentGroupId":"pg30411",
"firstName":"Kim",
"paymentStateDetailsAsUser":"The authorization succeeded",
"uiIntervention":"sop",
"billingAddress":{
"lastName":"Anderson",
"country":"US",
"address3":null,
"address2":null,
"city":"Syracuse",
"address1":"21 Cedar Ave",
"prefix":null,
"companyName":null,
"postalCode":"13202",
"jobTitle":null,
"county":null,
"suffix":null,
"firstName":"Kim",
"phoneNumber":"212-555-1977",
"stateName":"New York",
"faxNumber":null,
"middleName":null,
"countryName":"United States",
"state":"NY",
"email":"kim@example.com"
},
"paymentState":1,
"paidAmount":0,
"cardNumber":"xxxxxxxxxxxx1111",
"refundAmount":0
},
"shoppingCart":{
"items":[
{
"deactivationDate":"2018-06-27T12:59:59Z",
"rawTotalPrice":39.99,
"returnedQuantity":0,
"displayName":"Fable II",
"shippingSurchargeValue":0,
"externalData":[
],
"billingAccountId":"billingAcc-123",
"imageInfo":{
"primaryThumbImageURL":"/ccstore/v1/images/?source=http://localhost:9080/file/products/fableIIxbox_LARGE.jpg&height=100&width=100"
},
"childItems":[
{
"quantity":1,
"route":"/intel-pentium-dual-core/product/prod40001",
"productId":"prod40001",
"displayName":"Intel Pentium Dual Core",
"selectedOptions":[
],
"externalData":[
],
"actionCode":"Add",
"catRefId":"sku40001"
},
{
"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":[
{
"quantity":1,
"route":"/intel-pentium-dual-core/product/prod40009",
"productId":"prod40009",
"displayName":"Intel Pentium i9",
"selectedOptions":[
],
"externalData":[
],
"actionCode":"Add",
"catRefId":"sku40009"
}
],
"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",
"commerceItemId":"ci1000785",
"assetId":"asset10001",
"price":39.99,
"variant":[
],
"onSale":"true",
"actionCode":"Add",
"serviceId":"service-123",
"stateDetailsAsUser":"The item has been initialized",
"unitPrice":39.99,
"serviceAccountId":"serviceAcc-123",
"quantity":1,
"productId":"prod10041",
"tax":4.08,
"catRefId":"sku10045",
"customerAccountId":"customerAcc-123",
"discountInfo":[
],
"activationDate":"2017-06-27T15:30:00Z",
"listPrice":39.99,
"status":0
},
{
"unitPrice":49.99,
"quantity":1,
"productId":"Product_21Cxi",
"rawTotalPrice":49.99,
"returnedQuantity":0,
"displayName":"Dora the Explorer - Season 1",
"shippingSurchargeValue":0,
"imageInfo":{
"primaryThumbImageURL":"/ccstore/v1/images/?source=http://localhost:9080/file/products/doratheexplorer_season1_LARGE.jpg&height=100&width=100"
},
"tax":5.11,
"catRefId":"Sku_21Dxy",
"discountInfo":[
],
"price":49.99,
"variant":[
],
"stateDetailsAsUser":"The item has been initialized",
"listPrice":49.99,
"status":0
}
]
},
"shippingAddress":{
"lastName":"Anderson",
"country":"US",
"address3":null,
"address2":null,
"city":"Syracuse",
"address1":"21 Cedar Ave",
"prefix":null,
"companyName":null,
"postalCode":"13202",
"jobTitle":null,
"county":null,
"suffix":null,
"firstName":"Kim",
"phoneNumber":"212-555-1977",
"stateName":"New York",
"faxNumber":null,
"middleName":null,
"countryName":"United States",
"state":"NY",
"email":"kim@example.com"
},
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccagent/v1/orderAmendments/o10411"
}
],
"state":1,
"id":"o10411",
"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":"Submitted to fulfillment"
}
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|
|------------------|------------------|
|100094|Organization passed in the header is currently inactive|
|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|
|200105|Order id passed is null or empty|
|200119|Internal error occurred|
|200113|Internal error occurred|
|20107|Specified order does not exist|
|200120|Edit not initiated for the order|
|30015|SiteId passed in x-ccsite header is currently inactive|
|30014|SiteId passed in x-ccsite header is invalid or the site was deleted|
|30020|The Site to which the order belongs was deleted|
|30021|The Site to which the order belongs is currently inactive|
|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- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Request:
PUT v1/ccagent/v1/orderAmendments/o10411
Sample Response Payload returned by endpoint:
{
"taxPriceInfo": {
"cityTax": 0,
"amount": 9.2,
"valueAddedTax": 0,
"countyTax": 4.6,
"isTaxIncluded": false,
"miscTax": 0,
"districtTax": 0,
"stateTax": 4.6,
"countryTax": 0
},
"totalAmountAuthorized": 124.18,
"shippingGroups": [{
"trackingInfo": [],
"shippingMethod": {
"cost": 25,
"displayName": "Standard",
"value": "standardShippingMethod"
},
"shippingAddress": {
"lastName": "Anderson",
"country": "US",
"address3": null,
"address2": null,
"city": "Syracuse",
"address1": "21 Cedar Ave",
"prefix": null,
"companyName": null,
"postalCode": "13202",
"jobTitle": null,
"county": null,
"suffix": null,
"firstName": "Kim",
"phoneNumber": "212-555-1977",
"stateName": "New York",
"faxNumber": null,
"middleName": null,
"countryName": "United States",
"state": "NY",
"email": "kim@example.com"
},
"trackingNumber": null
}],
"orderComments": [],
"creationTime": 1447666990000,
"approvalSystemMessages": [],
"shippingMethod": {
"cost": 25,
"displayName": "Standard",
"value": "standardShippingMethod"
},
"profile": {
"lastName": "Anderson",
"firstName": "Kim",
"middleName": null,
"email": "kim@example.com"
},
"returnRequests": [],
"creationDate": "2015-07-15T09:09:15.000Z",
"submittedDate": "2015-07-15T09:10:15.000Z",
"paymentGroups": [{
"lastName": "Anderson",
"amountAuthorized": 124.18,
"amount": 124.18,
"totalDue": 124.18,
"cardType": null,
"type": "card",
"token": "9997000108950573",
"paymentGroupId": "pg30411",
"firstName": "Kim",
"paymentStateDetailsAsUser": "The authorization succeeded",
"uiIntervention": "sop",
"billingAddress": {
"lastName": "Anderson",
"country": "US",
"address3": null,
"address2": null,
"city": "Syracuse",
"address1": "21 Cedar Ave",
"prefix": null,
"companyName": null,
"postalCode": "13202",
"jobTitle": null,
"county": null,
"suffix": null,
"firstName": "Kim",
"phoneNumber": "212-555-1977",
"stateName": "New York",
"faxNumber": null,
"middleName": null,
"countryName": "United States",
"state": "NY",
"email": "kim@example.com"
},
"paymentState": 1,
"paidAmount": 0,
"cardNumber": "xxxxxxxxxxxx1111",
"refundAmount": 0
}],
"priceInfo": {
"amount": 89.98,
"total": 124.18,
"shipping": 25,
"shippingSurchargeValue": 0,
"tax": 9.2,
"subTotal": 89.98,
"currencyCode": "USD",
"totalWithoutTax": 114.98
},
"discountInfo": {
"unclaimedCouponMultiPromotions": {},
"orderCouponsMap": {},
"orderDiscount": 0,
"shippingDiscount": 0,
"orderImplicitDiscountList": [],
"unclaimedCouponsMap": {},
"claimedCouponMultiPromotions": {}
},
"profileId": "se-570031",
"exchangeRequests": [],
"paymentGroup": {
"lastName": "Anderson",
"amountAuthorized": 124.18,
"amount": 124.18,
"totalDue": 124.18,
"cardType": null,
"type": "card",
"token": "9997000108950573",
"paymentGroupId": "pg30411",
"firstName": "Kim",
"paymentStateDetailsAsUser": "The authorization succeeded",
"uiIntervention": "sop",
"billingAddress": {
"lastName": "Anderson",
"country": "US",
"address3": null,
"address2": null,
"city": "Syracuse",
"address1": "21 Cedar Ave",
"prefix": null,
"companyName": null,
"postalCode": "13202",
"jobTitle": null,
"county": null,
"suffix": null,
"firstName": "Kim",
"phoneNumber": "212-555-1977",
"stateName": "New York",
"faxNumber": null,
"middleName": null,
"countryName": "United States",
"state": "NY",
"email": "kim@example.com"
},
"paymentState": 1,
"paidAmount": 0,
"cardNumber": "xxxxxxxxxxxx1111",
"refundAmount": 0
},
"shoppingCart": {"items": [
{
"deactivationDate": "2018-06-27T12:59:59Z",
"rawTotalPrice": 39.99,
"returnedQuantity": 0,
"displayName": "Fable II",
"shippingSurchargeValue": 0,
"externalData": [],
"billingAccountId": "billingAcc-123",
"imageInfo": {"primaryThumbImageURL": "/ccstore/v1/images/?source=http://localhost:9080/file/products/fableIIxbox_LARGE.jpg&height=100&width=100"},
"childItems": [
{
"quantity": 1,
"route": "/intel-pentium-dual-core/product/prod40001",
"productId": "prod40001",
"displayName": "Intel Pentium Dual Core",
"selectedOptions": [],
"externalData": [],
"actionCode": "Add",
"catRefId": "sku40001"
},
{
"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": [{
"quantity": 1,
"route": "/intel-pentium-dual-core/product/prod40009",
"productId": "prod40009",
"displayName": "Intel Pentium i9",
"selectedOptions": [],
"externalData": [],
"actionCode": "Add",
"catRefId": "sku40009"
}],
"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",
"commerceItemId": "ci1000785",
"assetId": "asset10001",
"price": 39.99,
"variant": [],
"onSale": "true",
"actionCode": "Add",
"serviceId": "service-123",
"stateDetailsAsUser": "The item has been initialized",
"unitPrice": 39.99,
"serviceAccountId": "serviceAcc-123",
"quantity": 1,
"productId": "prod10041",
"tax": 4.08,
"catRefId": "sku10045",
"customerAccountId": "customerAcc-123",
"discountInfo": [],
"activationDate": "2017-06-27T15:30:00Z",
"listPrice": 39.99,
"status": 0
},
{
"unitPrice": 49.99,
"quantity": 1,
"productId": "Product_21Cxi",
"rawTotalPrice": 49.99,
"returnedQuantity": 0,
"displayName": "Dora the Explorer - Season 1",
"shippingSurchargeValue": 0,
"imageInfo": {"primaryThumbImageURL": "/ccstore/v1/images/?source=http://localhost:9080/file/products/doratheexplorer_season1_LARGE.jpg&height=100&width=100"},
"tax": 5.11,
"catRefId": "Sku_21Dxy",
"discountInfo": [],
"price": 49.99,
"variant": [],
"stateDetailsAsUser": "The item has been initialized",
"listPrice": 49.99,
"status": 0
}
]},
"shippingAddress": {
"lastName": "Anderson",
"country": "US",
"address3": null,
"address2": null,
"city": "Syracuse",
"address1": "21 Cedar Ave",
"prefix": null,
"companyName": null,
"postalCode": "13202",
"jobTitle": null,
"county": null,
"suffix": null,
"firstName": "Kim",
"phoneNumber": "212-555-1977",
"stateName": "New York",
"faxNumber": null,
"middleName": null,
"countryName": "United States",
"state": "NY",
"email": "kim@example.com"
},
"links": [{
"rel": "self",
"href": "http://localhost:9080/ccagent/v1/orderAmendments/o10411"
}],
"state": 1,
"id": "o10411",
"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": "Submitted to fulfillment"
}