rejectQuote
post
/ccagent/v1/orders/quote/reject
Reject Quote. Reject for a quote. Optionally takes X-CCOrganization header which is a JSON field with organization ID as value. If this header is not provided, then the endPoint will consider first active organization as the current organization for a B2B user.
Request
Supported Media Types
- application/json
Header Parameters
- X-CCOrganization
-
Type:
string
the organization Id in which order should be created- x-ccsite
Type:string
the site id on which the orders is laced
Body Parameter
Root Schema : rejectQuote_request
{
"note":"This is a sample quote"
}
- note
-
Type:
string
the requester note supplied with the quote request - orderId
-
Type:
string
the order id for the order which is to be quoted. If undefined, the current incomplete order for profile is selected
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : rejectQuote_response
- creationDate
-
Type:
string
The creation date in ISO format. - creationTime
-
Type:
number
The creation time in long seconds. - discountInfo
-
Type:
object
discountInfoAdditional Properties Allowed:The discount information. - dynamicProperties
-
Type:
array
dynamicPropertiesAdditional Properties Allowed:Read-only list of dynamic properties for the order along with meta-data. - giftWithPurchaseOrderMarkers
-
Type:
array
giftWithPurchaseOrderMarkersAdditional Properties Allowed:gift with purchase order marker information - id
-
Type:
string
The order ID. - lastModifiedDate
-
Type:
string
The order recent modified date in ISO format. - orderLocale
-
Type:
string
The locale in which order submitted. - orderProfileId
-
Type:
number
order profile id - payments
-
Type:
object
paymentsAdditional Properties Allowed:Payment details for the order, including additional properties specific to the payment type. This should be an empty array for request of a quote. - priceInfo
-
Type:
object
priceInfoAdditional Properties Allowed:The price information. - priceListGroup
-
Type:
object
priceListGroupAdditional Properties Allowed:The price list group object. - quoteInfo
-
Type:
object
quoteInfoAdditional Properties Allowed:the quote information of the order - recurringChargePriceInfo
-
Type:
object
recurringChargePriceInfoAdditional Properties Allowed:Recurring charge price information. - shippingAddress
-
Type:
object
shippingAddressAdditional Properties Allowed:The shipping address details. - shippingGroups
-
Type:
array
shippingGroupsAdditional Properties Allowed:The shipping groups for the order. - shippingMethod
-
Type:
object
shippingMethodAdditional Properties Allowed:The shipping method details for the order. - shoppingCart
-
Type:
object
shoppingCartAdditional Properties Allowed:The shopping cart contents of the current order. - sourceSystem
-
Type:
string
The system where the order originated. - state
-
Type:
string
the state of the order - taxPriceInfo
-
Type:
object
taxPriceInfoAdditional Properties Allowed:tax price information for the order - uuid
-
Type:
string
The unique ID for the order.
Nested Schema : discountInfo
Type:
object
The discount information.
- orderDiscount
-
Type:
integer
The order discount. - orderDiscountDescList
-
Type:
array
orderDiscountDescListAdditional Properties Allowed:The list of all the order discounts. - shippingDiscount
-
Type:
integer
The shipping discount.
Nested Schema : dynamicProperties
Nested Schema : giftWithPurchaseOrderMarkers
Nested Schema : payments
Type:
object
Payment details for the order, including additional properties specific to the payment type. This should be an empty array for request of a quote.
- gatewayName
-
Type:
string
Name of the payment gateway. - paymentGroupId
-
Type:
string
The payment group ID used for the order. - paymentId
-
Type:
string
Payment ID relevant to the payment type. - paymentMethod
-
Type:
string
Mode of payment. - paymentState
-
Type:
string
Current state for the payment. - type
-
Type:
string
Payment type. e.g. paypalCheckout, payULatamWebcheckout. - uiIntervention
-
Type:
string
Represents UI Intervention.
Nested Schema : priceInfo
Type:
object
The price information.
- amount
-
Type:
number
The total order amount. - currencyCode
-
Type:
string
The currency code. - shipping
-
Type:
number
The total shipping cost. - shippingSurchargeValue
-
Type:
number
Extra handling costs for shipping the products. - subTotal
-
Type:
number
Sub-total. - tax
-
Type:
number
The total tax amount. - total
-
Type:
number
The order total.
Nested Schema : priceListGroup
Type:
object
The price list group object.
- repositoryId
-
Type:
string
Repository ID of the price list group.
Nested Schema : quoteInfo
Type:
object
the quote information of the order
- errorInfo
-
Type:
array
errorInfoAdditional Properties Allowed:the array of errors, if any - expirationDate
-
Type:
string
the expiration date of the quoted order, if any - externalId
-
Type:
string
the external id for the quote - notes
-
Type:
array
notesAdditional Properties Allowed:the notes (history) for the order - providerNote
-
Type:
string
the provider note for the quoted order - quoteDate
-
Type:
number
the date the order was quoted in milliseconds - rejectionDate
-
Type:
string
rejection date of the quoted order - rejectionNote
-
Type:
string
the rejection note for an order whose quote has been rejected by user - requestDate
-
Type:
string
the date when the quote was requested in ISO format
Nested Schema : recurringChargePriceInfo
Type:
object
Recurring charge price information.
- amount
-
Type:
number
The monetary amount of this recurring charge. - currencyCode
-
Type:
string
The currency code for the monetary amounts. A three character currency code such as USD. - frequencyAmountTotals
-
Type:
array
frequencyAmountTotalsAdditional Properties Allowed:The total for each recurring charge frequency - frequencyTaxTotals
-
Type:
array
frequencyTaxTotalsAdditional Properties Allowed:The tax for each recurring charge frequency - shipping
-
Type:
number
Cost of shipping the product. - subTotal
-
Type:
number
The sub-total price of the recurring charge. - tax
-
Type:
number
Monetary tax amount. - total
-
Type:
number
The total price of the recurring charge. - totalWithoutTax
-
Type:
number
Total of recurring amount without tax included.
Nested Schema : shippingAddress
Type:
object
The shipping address details.
- address1
-
Type:
string
Address snippet. - address2
-
Type:
string
Address snippet. - address3
-
Type:
string
Address snippet. - alias
-
Type:
string
Address alias. - city
-
Type:
string
City. - companyName
-
Type:
string
Company name. - country
-
Type:
string
Country. - county
-
Type:
string
County. -
Type:
string
Email address. - faxNumber
-
Type:
string
Fax number. - firstName
-
Type:
string
First name - jobTitle
-
Type:
string
Job title. - lastName
-
Type:
string
Last name. - middleName
-
Type:
string
Middle name. - phoneNumber
-
Type:
string
Phone number. - postalCode
-
Type:
string
Postal code. - prefix
-
Type:
string
Name prefix. - selectedCountry
-
Type:
string
Country code. - selectedState
-
Type:
string
State code. - state
-
Type:
string
State. - state_ISOCode
-
Type:
string
State ISO code. - suffix
-
Type:
string
Name suffix.
Nested Schema : shippingGroups
Nested Schema : shippingMethod
Type:
object
The shipping method details for the order.
- cost
-
Type:
number
The total cost of shipping. - value
-
Type:
string
The shipping method applied to the order.
Nested Schema : shoppingCart
Type:
object
The shopping cart contents of the current order.
- items
-
Type:
array
itemsAdditional Properties Allowed:The array of products in the shopping cart.
Nested Schema : taxPriceInfo
Type:
object
tax price information for the order
- amount
-
Type:
number
amount - cityTax
-
Type:
number
city tax - countryTax
-
Type:
number
country tax - countyTax
-
Type:
number
county tax - districtTax
-
Type:
number
district tax - isTaxIncluded
-
Type:
boolean
if tax is included in the price - miscTax
-
Type:
number
miscellaneous tax - stateTax
-
Type:
number
state tax - valueAddedTax
-
Type:
number
value added tax
Nested Schema : orderDiscountDescList
Nested Schema : items
Type:
object
- coupon
-
Type:
string
The coupon code. - promotionDesc
-
Type:
string
This field returns name of the promotion. Retained for backward compatibility - promotionId
-
Type:
string
The promotion ID. - promotionLevel
-
Type:
string
The promotion level. - promotionLongDesc
-
Type:
string
The description of the promotion. - promotionName
-
Type:
string
The display name of the promotion.
Nested Schema : items
Type:
object
- id
-
Type:
string
The ID of the dynamic property. - label
-
Type:
string
The label of the dynamic property. - value
-
Type:
string
The value of the dynamic property.
Nested Schema : items
Type:
object
- automaticQuantity
-
Type:
number
The quantity of free sku for this gift selection that has already been auto added to the order. - autoRemove
-
Type:
boolean
Flag to indicate whether free gifts should be auto removed if the promotion no longer qualifies. - data
-
Type:
integer
Gift hash code to track which gift selection in the promotion this is. It allows the commerce item marker to link to this one. - failedQuantity
-
Type:
number
The amount of automatic free quantity that failed to be added to the cart due to some pricing error, e.g. invalid site. - giftDetail
-
Type:
string
String identifying the free gift, usually the repository id of the gift type. - giftType
-
Type:
string
The type of the gift. (sku, product) - key
-
Type:
string
atg.gwp - quantity
-
Type:
number
The total quantity of sku for this gift selection. - removedQuantity
-
Type:
number
The amount of free quantity that has since been manually removed by a Shopper. - selectedQuantity
-
Type:
integer
The quantity of free sku for this gift selection that has already been selected by the Shopper and added to the order. - targetedQuantity
-
Type:
number
The quantity of free sku for this gift selection that has already been targeted and made free by the calculator in the order. - value
-
Type:
string
The gift with purchase promotion id
Nested Schema : errorInfo
Nested Schema : notes
Nested Schema : items
Type:
object
- profileId
-
Type:
string
the profile id of the user - profileType
-
Type:
string
the profile type of the user that requested the quote - requestDate/quoteDate/rejectionDate
-
Type:
number
the request/quote/rejection date for the note - requesterNote/providerNote/rejectionNote
-
Type:
string
the requester/provider/rejection note
Nested Schema : frequencyAmountTotals
Nested Schema : frequencyTaxTotals
Nested Schema : items
Type:
object
- frequency
-
Type:
string
The frequency for the item's total e.g. Monthly. - total
-
Type:
string
The total amount for the frequency.
Nested Schema : items
Type:
object
- frequency
-
Type:
string
The frequency for the item's tax e.g. Monthly. - tax
-
Type:
string
The tax amount for the frequency.
Nested Schema : items
Type:
object
- items
-
Type:
array
itemsAdditional Properties Allowed:The array of products in the shipping group. - priceInfo
-
Type:
object
priceInfoAdditional Properties Allowed:The price information. - recurringChargePriceInfo
-
Type:
object
recurringChargePriceInfoAdditional Properties Allowed:Recurring charge price information. - shippingAddress
-
Type:
object
shippingAddressAdditional Properties Allowed:The shipping address details. - shippingMethod
-
Type:
object
shippingMethodAdditional Properties Allowed:The shipping method details for the order. - surcharge
-
Type:
number
The shipping surcharge.
Nested Schema : items
Nested Schema : priceInfo
Type:
object
The price information.
- amount
-
Type:
number
The total order amount. - currencyCode
-
Type:
string
The currency code. - shipping
-
Type:
number
The total shipping cost. - shippingSurchargeValue
-
Type:
number
Extra handling costs for shipping the products. - subTotal
-
Type:
number
Sub-total. - tax
-
Type:
number
The total tax amount. - total
-
Type:
number
The order total.
Nested Schema : recurringChargePriceInfo
Type:
object
Recurring charge price information.
- amount
-
Type:
number
The monetary amount of this recurring charge. - currencyCode
-
Type:
string
The currency code for the monetary amounts. A three character currency code such as USD. - frequencyAmountTotals
-
Type:
array
frequencyAmountTotalsAdditional Properties Allowed:The total for each recurring charge frequency - frequencyTaxTotals
-
Type:
array
frequencyTaxTotalsAdditional Properties Allowed:The tax for each recurring charge frequency - shipping
-
Type:
number
Cost of shipping the product. - subTotal
-
Type:
number
The sub-total price of the recurring charge. - tax
-
Type:
number
Monetary tax amount. - total
-
Type:
number
The total price of the recurring charge. - totalWithoutTax
-
Type:
number
Total of recurring amount without tax included.
Nested Schema : shippingAddress
Type:
object
The shipping address details.
- address1
-
Type:
string
Address snippet. - address2
-
Type:
string
Address snippet. - address3
-
Type:
string
Address snippet. - alias
-
Type:
string
Address alias. - city
-
Type:
string
City. - companyName
-
Type:
string
Company name. - country
-
Type:
string
Country. - county
-
Type:
string
County. -
Type:
string
Email address. - faxNumber
-
Type:
string
Fax number. - firstName
-
Type:
string
First name - jobTitle
-
Type:
string
Job title. - lastName
-
Type:
string
Last name. - middleName
-
Type:
string
Middle name. - phoneNumber
-
Type:
string
Phone number. - postalCode
-
Type:
string
Postal code. - prefix
-
Type:
string
Name prefix. - selectedCountry
-
Type:
string
Country code. - selectedState
-
Type:
string
State code. - state
-
Type:
string
State. - state_ISOCode
-
Type:
string
State ISO code. - suffix
-
Type:
string
Name suffix.
Nested Schema : shippingMethod
Type:
object
The shipping method details for the order.
- cost
-
Type:
number
The total cost of shipping. - shippingMethodDescription
-
Type:
string
The description of the shipping method. - shippingTax
-
Type:
number
The shipping tax. - value
-
Type:
string
The shipping method applied to the order.
Nested Schema : items
Type:
object
- actionCode
-
Type:
string
The action code that has been set on the item by the configurator system. - activationDate
-
Type:
string
The activation date in ISO format. - active
-
Type:
boolean
active or not. - assetId
-
Type:
string
The asset ID corresponding to the current item. - billingAccountId
-
Type:
string
The billing account ID associated to the current item. - catRefId
-
Type:
string
The category to which the product belongs. - customerAccountId
-
Type:
string
The customer account ID associated to the current item. - deactivationDate
-
Type:
string
The deactivation date in ISO format. - detailedRecurringChargeInfo
-
Type:
object
detailedRecurringChargeInfoAdditional Properties Allowed:Detailed Item Price Information. - discountInfo
-
Type:
array
discountInfoAdditional Properties Allowed:The discount information. - displayName
-
Type:
string
The name of the product. - dynamicProperties
-
Type:
array
dynamicPropertiesAdditional Properties Allowed:Array of custom properties at order line item level. - externalData
-
Type:
array
externalDataAdditional Properties Allowed:External data to be associated with a commerce item, provided by a configurator system. - externalRecurringCharge
-
Type:
number
The external recurring price. - externalRecurringChargeDuration
-
Type:
string
The duration for the recurring charge e.g. 12 months. - externalRecurringChargeFrequency
-
Type:
string
The frequency for the recurring charge e.g. Monthly. - price
-
Type:
integer
The actual price of the product. - productId
-
Type:
string
ID of the product in the cart. - quantity
-
Type:
integer
The quantity of the product. - rawTotalPrice
-
Type:
integer
The raw price of the product. - recurringCharge
-
Type:
number
The recurring charge for the item. - serviceAccountId
-
Type:
string
The service account ID associated to the current item. - serviceId
-
Type:
string
The service ID associated to the current item. - unitPrice
-
Type:
integer
The unit price of the product. - variant
-
Type:
array
variantAdditional Properties Allowed:List of variants for the product.
Nested Schema : detailedRecurringChargeInfo
Type:
object
Detailed Item Price Information.
- amount
-
Type:
number
The monetary amount for the recurring charge. - currencyCode
-
Type:
string
The three character currency code for the monetary amounts. - detailedUnitPrice
-
Type:
number
The detailed unit price: amount / quantity. (read-only) - discounted
-
Type:
boolean
Whether the price is discounted. - orderDiscountShare
-
Type:
number
The order Discount Share. - quantity
-
Type:
integer
The number of items covered by this recurring charge price info - tax
-
Type:
number
Monetary tax amount.
Nested Schema : discountInfo
Nested Schema : dynamicProperties
Nested Schema : externalData
Nested Schema : variant
Nested Schema : items
Type:
object
- coupon
-
Type:
string
The coupon ID. - promotionDesc
-
Type:
string
This field returns name of the promotion. Retained for backward compatibility - promotionId
-
Type:
string
The promotion ID. - promotionLongDesc
-
Type:
string
The description of the promotion. - promotionName
-
Type:
string
The display name of the promotion.
Nested Schema : items
Type:
object
- id
-
Type:
string
The ID of the dynamic property. - label
-
Type:
string
The label of the dynamic property. - value
-
Type:
string
The value of the dynamic property.
Nested Schema : items
Type:
object
- actionCode
-
Type:
string
The action code that has been set on the externalData item by the configurator system. - name
-
Type:
string
The name to be associated with the externalData item. - values
-
Type:
object
valuesAdditional Properties Allowed:The array of values associated with an externalData item.
Nested Schema : values
Type:
object
The array of values associated with an externalData item.
- dynamic_property_key
-
Type:
string
This property's name and value will be retrieved from a configurator system, so will be dynamically set.
Nested Schema : items
Type:
object
- optionName
-
Type:
string
The variant option name. - optionValue
-
Type:
string
The variant option value.
Nested Schema : frequencyAmountTotals
Nested Schema : frequencyTaxTotals
Nested Schema : items
Type:
object
- frequency
-
Type:
string
The frequency for the item's total e.g. Monthly. - total
-
Type:
string
The total amount for the frequency.
Nested Schema : items
Type:
object
- frequency
-
Type:
string
The frequency for the item's tax e.g. Monthly. - tax
-
Type:
string
The tax amount for the frequency.
Nested Schema : items
Nested Schema : items
Type:
object
- actionCode
-
Type:
string
The action code that has been set on the item by the configurator system. - activationDate
-
Type:
string
The activation date in ISO format. - assetId
-
Type:
string
The asset ID corresponding to the current item. - billingAccountId
-
Type:
string
The billing account ID associated to the current item. - catRefId
-
Type:
string
The category to which the product belongs. - childItems
-
Type:
array
childItemsAdditional Properties Allowed:The array of child items in the item, if the item is a configurable item. A child item can itself contain child item array if it is a configurable product in itself. - commerceItemId
-
Type:
string
The unique line item ID distinguisher. - customerAccountId
-
Type:
string
The customer account ID associated to the current item. - deactivationDate
-
Type:
string
The deactivation date in ISO format. - discountInfo
-
Type:
array
discountInfoAdditional Properties Allowed:The discount information. - dynamicProperties
-
Type:
array
dynamicPropertiesAdditional Properties Allowed:Array of custom properties at order line item level. - externalData
-
Type:
array
externalDataAdditional Properties Allowed:External data to be associated with a commerce item, provided by a configurator system. - externalPrice
-
Type:
number
A price for a quantity of 1 of this line item which will be used in place of the standard catalog price (this price will be verified to ensure it is allowable). - externalPriceQuantity
-
Type:
integer
The maximum quantity of this line item which may be purchased at the external price (this quantity will be verified to ensure it is allowable). - id
-
Type:
string
Repository id of the commerce item. - price
-
Type:
integer
The actual price of the product. - productId
-
Type:
string
ID of the product in the cart. - quantity
-
Type:
integer
The quantity of the product. - rawTotalPrice
-
Type:
integer
The raw price of the product. - recurringChargePriceInfo
-
Type:
object
recurringChargePriceInfoAdditional Properties Allowed:Recurring charge price information. - serviceAccountId
-
Type:
string
The service account ID associated to the current item. - serviceId
-
Type:
string
The service ID associated to the current item. - shippingSurchargeValue
-
Type:
integer
The extra handling cost for shipping the product. - unitPrice
-
Type:
integer
The unit price of the product.
Nested Schema : childItems
Nested Schema : discountInfo
Nested Schema : dynamicProperties
Nested Schema : externalData
Nested Schema : recurringChargePriceInfo
Type:
object
Recurring charge price information.
- amount
-
Type:
number
The monetary amount of this recurring charge. - currencyCode
-
Type:
string
The currency code for the monetary amounts. A three character currency code such as USD. - frequencyAmountTotals
-
Type:
array
frequencyAmountTotalsAdditional Properties Allowed:The total for each recurring charge frequency - frequencyTaxTotals
-
Type:
array
frequencyTaxTotalsAdditional Properties Allowed:The tax for each recurring charge frequency - shipping
-
Type:
number
Cost of shipping the product. - subTotal
-
Type:
number
The sub-total price of the recurring charge. - tax
-
Type:
number
Monetary tax amount. - total
-
Type:
number
The total price of the recurring charge. - totalWithoutTax
-
Type:
number
Total of recurring amount without tax included.
Nested Schema : items
Type:
object
- actionCode
-
Type:
string
The action code that has been set on the item by the configurator system. - activationDate
-
Type:
string
The activation date in ISO format. - amount
-
Type:
integer
The total amount of this item including its child items amounts. - assetId
-
Type:
string
The asset ID corresponding to the current item. - billingAccountId
-
Type:
string
The billing account ID associated to the current item. - catRefId
-
Type:
string
skuid of the item. - customerAccountId
-
Type:
string
The customer account ID associated to the current item. - deactivationDate
-
Type:
string
The deactivation date in ISO format. - detailedRecurringChargeInfo
-
Type:
object
detailedRecurringChargeInfoAdditional Properties Allowed:Detailed Item Price Information. - displayName
-
Type:
string
The name of the product. - externalData
-
Type:
array
externalDataAdditional Properties Allowed:External data to be associated with a commerce item, provided by a configurator system. - externalPrice
-
Type:
number
A price for a quantity of 1 of this line item which will be used in place of the standard catalog price (this price will be verified to ensure it is allowable). - externalPriceQuantity
-
Type:
integer
The maximum quantity of this line item which may be purchased at the external price (this quantity will be verified to ensure it is allowable). - externalRecurringCharge
-
Type:
number
The external recurring price. - externalRecurringChargeDuration
-
Type:
string
The duration for the recurring charge e.g. 12 months. - externalRecurringChargeFrequency
-
Type:
string
The frequency for the recurring charge e.g. Monthly. - id
-
Type:
string
Repository id of the commerce item. - productId
-
Type:
string
ID of the product in the cart. - quantity
-
Type:
integer
The quantity of the product. - rawTotalPrice
-
Type:
integer
The raw price of the product. - recurringCharge
-
Type:
number
The recurring charge for the item. - serviceAccountId
-
Type:
string
The service account ID associated to the current item. - serviceId
-
Type:
string
The service ID associated to the current item. - unitPrice
-
Type:
integer
The unit price of the product.
Nested Schema : detailedRecurringChargeInfo
Type:
object
Detailed Item Price Information.
- amount
-
Type:
number
The monetary amount for the recurring charge. - currencyCode
-
Type:
string
The three character currency code for the monetary amounts. - detailedUnitPrice
-
Type:
number
The detailed unit price: amount / quantity. (read-only) - discounted
-
Type:
boolean
Whether the price is discounted. - orderDiscountShare
-
Type:
number
The order Discount Share. - quantity
-
Type:
integer
The number of items covered by this recurring charge price info - tax
-
Type:
number
Monetary tax amount.
Nested Schema : externalData
Nested Schema : items
Type:
object
- actionCode
-
Type:
string
The action code that has been set on the externalData item by the configurator system. - name
-
Type:
string
The name to be associated with the externalData item. - values
-
Type:
object
valuesAdditional Properties Allowed:The array of values associated with an externalData item.
Nested Schema : values
Type:
object
The array of values associated with an externalData item.
- dynamic_property_key
-
Type:
string
This property's name and value will be retrieved from a configurator system, so will be dynamically set.
Nested Schema : items
Type:
object
- coupon
-
Type:
string
The coupon ID. - promotionDesc
-
Type:
string
This field returns name of the promotion. Retained for backward compatibility - promotionId
-
Type:
string
The promotion ID. - promotionLevel
-
Type:
string
The promotion level. - promotionLongDesc
-
Type:
string
The description of the promotion. - promotionName
-
Type:
string
The display name of the promotion. - totalAdjustment
-
Type:
number
Total adjustment by the promotion.
Nested Schema : items
Type:
object
- id
-
Type:
string
The ID of the dynamic property. - label
-
Type:
string
The label of the dynamic property. - value
-
Type:
string
The value of the dynamic property.
Nested Schema : items
Type:
object
- actionCode
-
Type:
string
The action code that has been set on the externalData item by the configurator system. - name
-
Type:
string
The name to be associated with the externalData item. - values
-
Type:
object
valuesAdditional Properties Allowed:The array of values associated with an externalData item.
Nested Schema : values
Type:
object
The array of values associated with an externalData item.
- dynamic_property_key
-
Type:
string
This property's name and value will be retrieved from a configurator system, so will be dynamically set.
Nested Schema : frequencyAmountTotals
Nested Schema : frequencyTaxTotals
Nested Schema : items
Type:
object
- frequency
-
Type:
string
The frequency for the item's total e.g. Monthly. - total
-
Type:
string
The total amount for the frequency.
Nested Schema : items
Type:
object
- frequency
-
Type:
string
The frequency for the item's tax e.g. Monthly. - tax
-
Type:
string
The tax amount for the frequency.
Example application/json
{
"creationTime":1.478685761E12,
"orderComments":[
],
"sourceSystem":"Cloud Commerce",
"dynamicProperties":[
],
"stateString":"REJECTED_QUOTE",
"paymentGroups":[
],
"priceInfo":{
"amount":500,
"total":577.8,
"shipping":35,
"shippingSurchargeValue":0,
"tax":42.8,
"subTotal":500,
"currencyCode":"USD",
"totalWithoutTax":535
},
"pricingMessages":{
},
"shoppingCart":{
"items":[
{
"deactivationDate":"2018-06-27T12:59:59Z",
"rawTotalPrice":500,
"returnedQuantity":0,
"displayName":"Dr. Dolittle",
"shippingSurchargeValue":0,
"discountAmount":0,
"externalData":[
],
"billingAccountId":"billingAcc-123",
"imageInfo":{
"primaryThumbImageURL":"/ccstore/v1/images/?source=/file/v6155711626513500309/products/doctordolittle_LARGE.jpg&height=100&width=100"
},
"externalPrice":500,
"assetId":"asset10001",
"price":500,
"variant":[
],
"onSale":false,
"actionCode":"Add",
"serviceId":"service-123",
"stateDetailsAsUser":"Added to order",
"serviceAccountId":"serviceAcc-123",
"unitPrice":14.99,
"quantity":1,
"productId":"Product_18Cxi",
"salePrice":0,
"detailedItemPriceInfo":[
{
"discounted":false,
"amount":500,
"quantity":1,
"tax":40,
"orderDiscountShare":0,
"detailedUnitPrice":500,
"currencyCode":"USD"
}
],
"giftWithPurchaseCommerceItemMarkers":[
],
"tax":40,
"externalPriceQuantity":1,
"catRefId":"Sku_18Dxi",
"customerAccountId":"customerAcc-123",
"discountInfo":[
],
"stateDescription":"INITIAL",
"activationDate":"2017-06-27T15:30:00Z",
"listPrice":14.99,
"status":0
}
]
},
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccagentui/v1/orders/quote/reject"
}
],
"id":"o90419",
"state":4005,
"quoteInfo":{
"providerNote":null,
"notes":[
{
"profileType":null,
"profileId":"se-570031",
"rejectionDate":"2016-11-09T10:14:21.397Z",
"rejectionNote":"Quote Rejected"
},
{
"profileType":null,
"profileId":"se-570031",
"requestDate":"2016-11-09T10:03:16.240Z",
"requesterNote":"jh"
}
],
"rejectionDate":"2016-11-09T10:14:21.397Z",
"requestDate":"2016-11-09T10:03:16.240Z",
"errorInfo":null,
"externalId":null,
"rejectionNote":"Quote Rejected",
"quoteDate":"2016-11-09T10:13:56.206Z",
"expirationDate":"2260-11-10T18:56:36.000Z"
},
"stateDetailsAsUser":"This quote has been rejected",
"taxPriceInfo":{
"cityTax":0,
"amount":42.8,
"valueAddedTax":0,
"countyTax":21.4,
"isTaxIncluded":false,
"miscTax":0,
"districtTax":0,
"stateTax":21.4,
"countryTax":0
},
"shippingGroups":[
{
"taxPriceInfo":{
"cityTax":0,
"amount":42.8,
"valueAddedTax":0,
"countyTax":21.4,
"isTaxIncluded":false,
"miscTax":0,
"districtTax":0,
"stateTax":21.4,
"countryTax":0
},
"shippingMethod":{
"shippingTax":2.8,
"cost":35,
"displayName":"Standard",
"value":"standardShippingMethod",
"shippingMethodDescription":"Standard"
},
"shippingGroupId":"sg100419",
"submittedDate":null,
"priceInfo":{
"amount":500,
"total":577.8,
"shipping":35,
"shippingSurchargeValue":0,
"tax":42.8,
"subTotal":500,
"currencyCode":"USD",
"totalWithoutTax":535
},
"discountInfo":{
"orderDiscount":0,
"shippingDiscount":0,
"discountDescList":[
]
},
"shipOnDate":null,
"trackingInfo":[
],
"actualShipDate":null,
"siteId":"siteUS",
"shippingAddress":{
"lastName":"Anderson",
"country":"US",
"address3":null,
"address2":null,
"city":"Syracuse",
"prefix":null,
"address1":"21 Cedar Ave",
"postalCode":"13202",
"companyName":null,
"jobTitle":null,
"county":null,
"suffix":null,
"selectedCountry":"US",
"firstName":"Kim",
"phoneNumber":"212-555-1977",
"stateName":"New York",
"faxNumber":null,
"alias":"Home",
"middleName":null,
"state":"NY",
"countryName":"United States",
"email":"kim@example.com",
"selectedState":"NY",
"state_ISOCode":"US-NY"
},
"items":[
{
"primaryThumbImageURL":"/ccstore/v1/images/?source=/file/v6155711626513500309/products/doctordolittle_LARGE.jpg&height=100&width=100",
"deactivationDate":"2018-06-27T12:59:59Z",
"rawTotalPrice":14.99,
"returnedQuantity":0,
"displayName":"Dr. Dolittle",
"shippingSurchargeValue":0,
"discountAmount":0,
"externalData":[
],
"billingAccountId":"billingAcc-123",
"externalPrice":500,
"assetId":"asset10001",
"price":500,
"variant":[
],
"onSale":false,
"primaryImageAltText":"Dr. Dolittle",
"actionCode":"Add",
"serviceId":"service-123",
"stateDetailsAsUser":"The item has been initialized within the shipping group",
"serviceAccountId":"serviceAcc-123",
"unitPrice":14.99,
"primaryImageTitle":"Dr. Dolittle",
"quantity":1,
"productId":"Product_18Cxi",
"salePrice":0,
"detailedItemPriceInfo":[
{
"discounted":false,
"amount":500,
"quantity":1,
"tax":40,
"orderDiscountShare":0,
"detailedUnitPrice":500,
"currencyCode":"USD"
}
],
"active":true,
"externalPriceQuantity":1,
"catRefId":"Sku_18Dxi",
"customerAccountId":"customerAcc-123",
"discountInfo":[
],
"route":"/product/Product_18Cxi",
"activationDate":"2017-06-27T15:30:00Z",
"listPrice":14.99,
"status":"INITIAL"
}
],
"trackingNumber":null,
"status":"INITIAL"
}
],
"approvalSystemMessages":[
"Order is pending approval because total is greater than the approved order limit."
],
"shippingMethod":{
"shippingTax":2.8,
"cost":35,
"displayName":"Standard",
"value":"standardShippingMethod",
"shippingMethodDescription":"Standard"
},
"profile":{
"firstName":"Kim",
"lastName":"Anderson",
"middleName":null,
"email":"kim@example.com"
},
"priceListGroup":{
"repositoryId":"defaultPriceGroup"
},
"returnRequests":[
],
"creationDate":"2016-11-09T10:02:41.000Z",
"discountInfo":{
"unclaimedCouponMultiPromotions":{
},
"orderCouponsMap":{
},
"orderDiscount":0,
"shippingDiscount":0,
"orderImplicitDiscountList":[
],
"unclaimedCouponsMap":{
},
"claimedCouponMultiPromotions":{
}
},
"profileId":"se-570031",
"exchangeRequests":[
],
"giftWithPurchaseInfo":[
],
"shippingAddress":{
"lastName":"Anderson",
"country":"US",
"address3":null,
"address2":null,
"city":"Syracuse",
"prefix":null,
"address1":"21 Cedar Ave",
"postalCode":"13202",
"companyName":null,
"jobTitle":null,
"county":null,
"suffix":null,
"selectedCountry":"US",
"firstName":"Kim",
"phoneNumber":"212-555-1977",
"stateName":"New York",
"faxNumber":null,
"alias":"Home",
"middleName":null,
"state":"NY",
"countryName":"United States",
"email":"kim@example.com",
"selectedState":"NY",
"state_ISOCode":"US-NY"
},
"giftWithPurchaseOrderMarkers":[
]
}
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|
|28107|If no order is found of the order id which is mentioned in request paylaod.|
|200105|No Order id specified in request.|
|28315|Error occured while updating the order.|
|28364|Error occured when quote is not allowed.|
|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|
|28365|Error occured while rejecting the code.|
|28300|Internal error while creating the order|
|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:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - errors
-
Type:
array
errorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The HTTP status code - type
-
Type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object
- devMessage
-
Type:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The HTTP status code
Examples
Sample Request:
{ "note": "This is a sample quote", "id": "o90417" }
Sample Response Payload returned by endpoint:
{ "creationTime": 1478685761000, "orderComments": [], "sourceSystem": "Cloud Commerce", "dynamicProperties": [], "stateString": "REJECTED_QUOTE", "paymentGroups": [], "priceInfo": { "amount": 500, "total": 577.8, "shipping": 35, "shippingSurchargeValue": 0, "tax": 42.8, "subTotal": 500, "currencyCode": "USD", "totalWithoutTax": 535 }, "pricingMessages": {}, "shoppingCart": {"items": [{ "deactivationDate": "2018-06-27T12:59:59Z", "rawTotalPrice": 500, "returnedQuantity": 0, "displayName": "Dr. Dolittle", "shippingSurchargeValue": 0, "discountAmount": 0, "externalData": [], "billingAccountId": "billingAcc-123", "imageInfo": {"primaryThumbImageURL": "/ccstore/v1/images/?source=/file/v6155711626513500309/products/doctordolittle_LARGE.jpg&height=100&width=100"}, "externalPrice": 500, "assetId": "asset10001", "price": 500, "variant": [], "onSale": false, "actionCode": "Add", "serviceId": "service-123", "stateDetailsAsUser": "Added to order", "serviceAccountId": "serviceAcc-123", "unitPrice": 14.99, "quantity": 1, "productId": "Product_18Cxi", "salePrice": 0, "detailedItemPriceInfo": [{ "discounted": false, "amount": 500, "quantity": 1, "tax": 40, "orderDiscountShare": 0, "detailedUnitPrice": 500, "currencyCode": "USD" }], "giftWithPurchaseCommerceItemMarkers": [], "tax": 40, "externalPriceQuantity": 1, "catRefId": "Sku_18Dxi", "customerAccountId": "customerAcc-123", "discountInfo": [], "stateDescription": "INITIAL", "activationDate": "2017-06-27T15:30:00Z", "listPrice": 14.99, "status": 0 }]}, "links": [{ "rel": "self", "href": "http://localhost:9080/ccagentui/v1/orders/quote/reject" }], "id": "o90419", "state": 4005, "quoteInfo": { "providerNote": null, "notes": [ { "profileType": null, "profileId": "se-570031", "rejectionDate": "2016-11-09T10:14:21.397Z", "rejectionNote": "Quote Rejected" }, { "profileType": null, "profileId": "se-570031", "requestDate": "2016-11-09T10:03:16.240Z", "requesterNote": "jh" } ], "rejectionDate": "2016-11-09T10:14:21.397Z", "requestDate": "2016-11-09T10:03:16.240Z", "errorInfo": null, "externalId": null, "rejectionNote": "Quote Rejected", "quoteDate": "2016-11-09T10:13:56.206Z", "expirationDate": "2260-11-10T18:56:36.000Z" }, "stateDetailsAsUser": "This quote has been rejected", "taxPriceInfo": { "cityTax": 0, "amount": 42.8, "valueAddedTax": 0, "countyTax": 21.4, "isTaxIncluded": false, "miscTax": 0, "districtTax": 0, "stateTax": 21.4, "countryTax": 0 }, "shippingGroups": [{ "taxPriceInfo": { "cityTax": 0, "amount": 42.8, "valueAddedTax": 0, "countyTax": 21.4, "isTaxIncluded": false, "miscTax": 0, "districtTax": 0, "stateTax": 21.4, "countryTax": 0 }, "shippingMethod": { "shippingTax": 2.8, "cost": 35, "displayName": "Standard", "value": "standardShippingMethod", "shippingMethodDescription": "Standard" }, "shippingGroupId": "sg100419", "submittedDate": null, "priceInfo": { "amount": 500, "total": 577.8, "shipping": 35, "shippingSurchargeValue": 0, "tax": 42.8, "subTotal": 500, "currencyCode": "USD", "totalWithoutTax": 535 }, "discountInfo": { "orderDiscount": 0, "shippingDiscount": 0, "discountDescList": [] }, "shipOnDate": null, "trackingInfo": [], "actualShipDate": null, "siteId": "siteUS", "shippingAddress": { "lastName": "Anderson", "country": "US", "address3": null, "address2": null, "city": "Syracuse", "prefix": null, "address1": "21 Cedar Ave", "postalCode": "13202", "companyName": null, "jobTitle": null, "county": null, "suffix": null, "selectedCountry": "US", "firstName": "Kim", "phoneNumber": "212-555-1977", "stateName": "New York", "faxNumber": null, "alias": "Home", "middleName": null, "state": "NY", "countryName": "United States", "email": "kim@example.com", "selectedState": "NY", "state_ISOCode": "US-NY" }, "items": [{ "primaryThumbImageURL": "/ccstore/v1/images/?source=/file/v6155711626513500309/products/doctordolittle_LARGE.jpg&height=100&width=100", "deactivationDate": "2018-06-27T12:59:59Z", "rawTotalPrice": 14.99, "returnedQuantity": 0, "displayName": "Dr. Dolittle", "shippingSurchargeValue": 0, "discountAmount": 0, "externalData": [], "billingAccountId": "billingAcc-123", "externalPrice": 500, "assetId": "asset10001", "price": 500, "variant": [], "onSale": false, "primaryImageAltText": "Dr. Dolittle", "actionCode": "Add", "serviceId": "service-123", "stateDetailsAsUser": "The item has been initialized within the shipping group", "serviceAccountId": "serviceAcc-123", "unitPrice": 14.99, "primaryImageTitle": "Dr. Dolittle", "quantity": 1, "productId": "Product_18Cxi", "salePrice": 0, "detailedItemPriceInfo": [{ "discounted": false, "amount": 500, "quantity": 1, "tax": 40, "orderDiscountShare": 0, "detailedUnitPrice": 500, "currencyCode": "USD" }], "active": true, "externalPriceQuantity": 1, "catRefId": "Sku_18Dxi", "customerAccountId": "customerAcc-123", "discountInfo": [], "route": "/product/Product_18Cxi", "activationDate": "2017-06-27T15:30:00Z", "listPrice": 14.99, "status": "INITIAL" }], "trackingNumber": null, "status": "INITIAL" }], "approvalSystemMessages": ["Order is pending approval because total is greater than the approved order limit."], "shippingMethod": { "shippingTax": 2.8, "cost": 35, "displayName": "Standard", "value": "standardShippingMethod", "shippingMethodDescription": "Standard" }, "profile": { "firstName": "Kim", "lastName": "Anderson", "middleName": null, "email": "kim@example.com" }, "priceListGroup": {"repositoryId": "defaultPriceGroup"}, "returnRequests": [], "creationDate": "2016-11-09T10:02:41.000Z", "discountInfo": { "unclaimedCouponMultiPromotions": {}, "orderCouponsMap": {}, "orderDiscount": 0, "shippingDiscount": 0, "orderImplicitDiscountList": [], "unclaimedCouponsMap": {}, "claimedCouponMultiPromotions": {} }, "profileId": "se-570031", "exchangeRequests": [], "giftWithPurchaseInfo": [], "shippingAddress": { "lastName": "Anderson", "country": "US", "address3": null, "address2": null, "city": "Syracuse", "prefix": null, "address1": "21 Cedar Ave", "postalCode": "13202", "companyName": null, "jobTitle": null, "county": null, "suffix": null, "selectedCountry": "US", "firstName": "Kim", "phoneNumber": "212-555-1977", "stateName": "New York", "faxNumber": null, "alias": "Home", "middleName": null, "state": "NY", "countryName": "United States", "email": "kim@example.com", "selectedState": "NY", "state_ISOCode": "US-NY" }, "giftWithPurchaseOrderMarkers": [] }