createOrder

post

/ccappagent/v1/orders

Create Order. It can createOrder/priceOrder/preAuthorizeOrder/submitOrder/resendOrdersForFulfillment order for a customer based on operations. Operations can be any of createOrder, createNewCart, priceOrder, preAuthorizeOrder, submitOrder. Dynamic Properties of order can be added in the the request using the key value pair structure ("dynamicPropertyKey":"dynamicPropertyValue"). These property values can take the types of boolean, date, float, string, timestamp, enumerated, big string. Storefront also has an endopint with same id ('createOrder'), but the behaviour is different. For more informaiton refer Storefront API. This takes additonal header paramater x-ccsite to create the order in specific site. If the header information is not provided order is created on default site. 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
Header Parameters
Body ()
Root Schema : createOrder_request
Type: object
Show Source
Example:
{
    "op":"createOrder",
    "soldTo":{
        "partyId":"2222",
        "partyNumber":"222"
    },
    "profileId":"se-570032",
    "shippingMethod":{
        "value":"standardShippingMethod"
    },
    "shoppingCart":{
        "coupons":[
            {
                "code":"SAVE5PERCENTON100",
                "level":"order",
                "description":"Order Discount - SAVE5%ON100 - Coupon",
                "id":"explicitOrderDiscount5on100",
                "status":"unclaimed"
            }
        ],
        "items":[
            {
                "deactivationDate":"2018-06-27T12:59:59Z",
                "billingProfileId":"billingProfile-123",
                "billingAccountId":"billingAcc-123",
                "childItems":[
                    {
                        "deactivationDate":"2018-06-27T12:59:59Z",
                        "addOnItem":false,
                        "displayName":"Laptop Parts 1",
                        "externalData":[
                        ],
                        "billingProfileId":"billingProfile-123",
                        "billingAccountId":"billingAcc-123",
                        "childItems":[
                            {
                                "serviceAccountId":"serviceAcc-123",
                                "deactivationDate":"2018-06-27T12:59:59Z",
                                "quantity":"1",
                                "productId":"prod40001",
                                "displayName":"Laptop Parts 1",
                                "externalData":[
                                ],
                                "parentAssetKey":"12345",
                                "billingProfileId":"billingProfile-123",
                                "currentPrice":0,
                                "billingAccountId":"billingAcc-123",
                                "rootAssetKey":"12345",
                                "transactionDate":"2018-06-27T12:59:59Z",
                                "catRefId":"sku40009",
                                "assetKey":"23456",
                                "priceListGroupId":"defaultPriceGroup",
                                "customerAccountId":"customerAcc-123",
                                "invalid":false,
                                "stockStatus":true,
                                "actionCode":"Add",
                                "activationDate":"2017-06-27T15:30:00Z",
                                "serviceId":"service-123",
                                "asset":false
                            }
                        ],
                        "assetKey":"12345",
                        "commerceItemId":"ci19000424",
                        "stockStatus":true,
                        "actionCode":"Add",
                        "serviceId":"service-123",
                        "serviceAccountId":"serviceAcc-123",
                        "quantity":"1",
                        "productId":"prod40001",
                        "parentAssetKey":null,
                        "currentPrice":0,
                        "rootAssetKey":null,
                        "transactionDate":"2018-06-27T12:59:59Z",
                        "catRefId":"sku40001",
                        "priceListGroupId":"defaultPriceGroup",
                        "customerAccountId":"customerAcc-123",
                        "invalid":false,
                        "activationDate":"2017-06-27T15:30:00Z",
                        "asset":false
                    },
                    {
                        "commerceItemId":"ci19000424",
                        "configurationOptionId":"confO_12",
                        "addOnItem":true,
                        "quantity":1,
                        "productId":"prod12344",
                        "displayName":"Gift Wrap",
                        "shopperInput":{
                            "color":"neon",
                            "message":"Happy Birthday My Friend",
                            "font":"courier"
                        },
                        "configurablePropertyId":"conf022",
                        "catRefId":"sku12344"
                    }
                ],
                "configuratorId":"12343455",
                "assetKey":"12345",
                "externalPrice":"722.0",
                "stockStatus":true,
                "onSale":true,
                "actionCode":"Add",
                "serviceId":"service-123",
                "serviceAccountId":"serviceAcc-123",
                "quantity":1,
                "productId":"Product_18Cyii",
                "externalRecurringCharge":20,
                "currentPrice":0,
                "parentAssetKey":null,
                "rootAssetKey":null,
                "externalPriceQuantity":-1,
                "externalRecurringChargeFrequency":"Monthly",
                "transactionDate":"2018-06-27T12:59:59Z",
                "catRefId":"Sku_18Dxy",
                "externalRecurringChargeDuration":"12",
                "customerAccountId":"customerAcc-123",
                "activationDate":"2017-06-27T15:30:00Z",
                "asset":false
            }
        ]
    },
    "additionalEmails":[
        "w.rubble@bedrock.com",
        "w.flintstone@bedrock.com"
    ],
    "shippingAddress":{
        "lastName":"Spencers",
        "country":"US",
        "address3":"",
        "address2":"",
        "city":"Montgomery",
        "prefix":"",
        "address1":"600 Dexter Avenue",
        "postalCode":"36130",
        "jobTitle":"",
        "companyName":"",
        "county":"",
        "suffix":"",
        "DEFAULT_POSTAL_CODE_PATTERN":"^[0-9a-zA-Z]{1,}([ -][0-9a-zA-Z]{1,})?$",
        "selectedCountry":"US",
        "firstName":"Mark",
        "phoneNumber":"973-974-1234",
        "faxNumber":"",
        "middleName":"",
        "state":"AL",
        "email":"",
        "selectedState":"AL",
        "state_ISOCode":"US-AL"
    },
    "requestChannel":"agent",
    "dynamicPropertyShippingInstructions":"Test Instructions"
}
Nested Schema : additionalEmails
Type: array
Additional emails to send order confirmation. Default limit is 10.
Show Source
Nested Schema : billingAddress
Type: object
Billing address for the order
Show Source
Nested Schema : orders
Type: array
Orders to be resubmitted. Related Endpoint operations - resendOrdersForFulfillment
Show Source
Nested Schema : payments
Type: object
List of payments
Show Source
Nested Schema : recurringChargePriceInfo
Type: object
Detailed information of the recurring charges at the shipping groups level
Show Source
Nested Schema : schedule
Type: object
The details of the schedule order. Related Endpoint operations - createOrder, createNewCart
Show Source
Nested Schema : shippingAddress
Type: object
Shipping address. Related Endpoint operations - createOrder, createNewCart, priceOrder, submitOrder, preAuthorizeOrder
Show Source
Nested Schema : shippingGroups
Type: array
Shipping Groups. Related Endpoint operations - createOrder, createNewCart, priceOrder, submitOrder
Show Source
Nested Schema : shippingMethod
Type: object
shipping method. Related Endpoint operations - createOrder, createNewCart, priceOrder, submitOrder, preAuthorizeOrder
Show Source
Nested Schema : shoppingCart
Type: object
Shopping cart information. Related Endpoint operations - createOrder, createNewCart, priceOrder, submitOrder, preAuthorizeOrder
Show Source
Nested Schema : soldTo
Type: object
soldTo details for B2B orders only
Show Source
Nested Schema : customProperties
Type: object
Additional Properties Allowed
Show Source
Custom object with dynamic properties. This will be passed to the webhook request
Show Source
  • memberShipId of customer. This property need to be sent if loyalty payment method is selected for payment
  • Unique id for loyalty program.This property need to be sent if loyalty payment method is selected for payment
Nested Schema : subTotalByFrequency
Type: array
subtotal of the item by frequency
Show Source
Nested Schema : taxByFrequency
Type: array
tax by frequency
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : schedule
Type: object
The schedule of the scheduled order
Show Source
Nested Schema : daysInMonth
Type: array
Days in a month this scheduled order has to be placed
Show Source
Nested Schema : daysOfWeek
Type: array
Days in a week this scheduled order has to be placed
Show Source
Nested Schema : monthsInYear
Type: array
Months in a year this scheduled order has to be placed
Show Source
Nested Schema : weeksInMonth
Type: array
Weeks in a month this scheduled order has to be placed
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: array
Items in the cart.
Show Source
Nested Schema : recurringChargePriceInfo
Type: object
Detailed information of the recurring charges at the shipping groups level
Show Source
Nested Schema : shippingAddress
Type: object
Shipping address.
Show Source
Nested Schema : shippingMethod
Type: object
shipping method
Show Source
Nested Schema : shipTo
Type: object
shipTo details for shipping.Applicable for B2B orders only
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : detailedRecurringChargeInfo
Type: array
recurring charge information
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : subTotalByFrequency
Type: array
subtotal of the item by frequency
Show Source
Nested Schema : taxByFrequency
Type: array
tax by frequency
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : store
Type: object
Information about the Store that the items are being picked up from (if shipping group type is inStorePickupShippingGroup)
Show Source
Nested Schema : coupons
Type: array
The array of coupons applied to the order.
Show Source
Nested Schema : items
Type: array
Items in the cart.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : childItems
Type: array
Child items of the commerce item
Show Source
Nested Schema : externalData
Type: array
External data to be associated with a commerce item, provided by a configurator system.
Show Source
Nested Schema : shopperInput
Type: object
Additional Properties Allowed
Show Source
Map of shopper input keys to values
Nested Schema : items
Type: object
Show Source
Nested Schema : childItems
Type: array
Child items of the commerce item
Show Source
Nested Schema : externalData
Type: array
External data to be associated with a commerce item, provided by a configurator system.
Show Source
Nested Schema : shopperInput
Type: object
Additional Properties Allowed
Show Source
Map of shopper input keys to values
Nested Schema : items
Type: object
Show Source
Nested Schema : externalData
Type: array
External data to be associated with a commerce item, provided by a configurator system.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : values
Type: object
The array of values associated with an externalData item.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : values
Type: object
The array of values associated with an externalData item.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : detailedRecurringChargeInfo
Type: array
recurring charge information
Show Source
Nested Schema : values
Type: object
The array of values associated with an externalData item.
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : createOrder_response
Type: object
Show Source
Nested Schema : additionalEmails
Type: array
Additional emails to send order confirmation. Default limit is 10.
Show Source
Nested Schema : billingMethod
Type: object
Billing method information of the order. Related Endpoint operation - submitOrder.
Show Source
Nested Schema : discountInfo
Type: object
Discount information. Related Endpoint operation - createOrder, createNewCart, priceOrder, submitOrder, preAuthorizeOrder.
Show Source
Nested Schema : dynamicProperties
Type: array
Read-only list of dynamic properties for the order along with meta-data. Related Endpoint operation - createOrder, createNewCart, priceOrder, submitOrder.
Show Source
Nested Schema : giftWithPurchaseInfo
Type: array
Gift Selection Information. Related Endpoint operation - createOrder, createNewCart, priceOrder, submitOrder.
Show Source
Nested Schema : giftWithPurchaseOrderMarkers
Type: array
Gift With Purchase order markers information. Related Endpoint operation - createOrder, createNewCart, priceOrder, submitOrder.
Show Source
Nested Schema : markers
Type: array
Order markers
Show Source
Nested Schema : notSubmittedOrders
Type: array
Orders not submitted for fulfillment. Related Endpoint operations - resendOrdersForFulfillment
Show Source
Nested Schema : orderComments
Type: array
The list of all logged comments for the order.
Show Source
Nested Schema : paymentGroup
Type: object
Payment Group for the order. Related Endpoint operation - submitOrder.
Show Source
Nested Schema : paymentGroups
Type: array
List of payment Groups for the order. Related Endpoint operations - submitOrder
Show Source
Nested Schema : priceInfo
Type: object
Price information. Related Endpoint operation - createOrder, createNewCart, priceOrder, submitOrder, preAuthorizeOrder.
Show Source
  • The raw number that represents the price.
  • Indicates the currency of the price. For example, USD indicates that the price is in US dollars.
  • orderTotalBySite
    The map containing order totals by site for all sites in a given order.
  • An order can be paid in points and monetary currency. This field represent order value which will be paid in points. It includes items amount, item discount, order discount. Prerequisites for the value in this Attribute: 1. PriceList configured for the site is in custom currency. 2. payTaxInSecondaryCurrency and payShippingInSecondaryCurrency flags are enabled.
  • This field represents the shipping amount, shipping discount and shipping surcharge in monetary Currency. Prerequisites for the value in this Attribute: 1. PriceList configured for the site is in custom currency. 2. payTaxInSecondaryCurrency and payShippingInSecondaryCurrency flags are enabled.
  • This field represents the total tax(Item Tax and Shipping Tax) of the order in Monetary Currency. Prerequisites for the value in this Attribute: Prerequisites for the value in this Attribute: 1. PriceList configured for the site is in custom currency. 2. payTaxInSecondaryCurrency and payShippingInSecondaryCurrency flags are enabled. 3. If the tax is included in the price of the item, then this value represents only shipping tax in monetary currency.
  • An order can be paid in points and monetary currency. This field represent order value which will be paid in monetary currency. It includes shipping charges, shipping surcharges, shipping discount and total tax in monetary currency. Prerequisites for the value in this Attribute: 1. PriceList configured for the site is in custom currency. 2. payTaxInSecondaryCurrency and payShippingInSecondaryCurrency flags are enabled. 3. If the tax is included in the price of the item, then this value represents only shipping tax in monetary currency.
  • shipping amount
  • The subtotal of the order before applying order-level promotions.
  • The tax on the order.
  • The current working total, including all promotions, tax, and billing costs.
Nested Schema : pricingMessages
Type: object
The Pricing messages information. Related Endpoint operation - createOrder, createNewCart, priceOrder, submitOrder.
Show Source
Nested Schema : profile
Type: object
Profile Information for the order. Related Endpoint operations - submitOrder
Show Source
Nested Schema : returnRequests
Type: array
The list of the requests raised for the order. Related Endpoint operations - submitOrder
Show Source
Nested Schema : shippingAddress
Type: object
Shipping address. Related Endpoint operations - submitOrder
Show Source
Nested Schema : shippingGroups
Type: array
Shipping Groups. Related Endpoint operation - createOrder, createNewCart, priceOrder, submitOrder.
Show Source
Nested Schema : shippingMethod
Type: object
Shipping method information. Related Endpoint operation - priceOrder, submitOrder, preAuthorizeOrder.
Show Source
Nested Schema : shoppingCart
Type: object
Shopping cart information. Related Endpoint operation - createOrder, createNewCart, priceOrder, submitOrder, preAuthorizeOrder.
Show Source
Nested Schema : soldTo
Type: object
soldTo details for B2B orders only
Show Source
Nested Schema : submittedOrders
Type: array
Orders submitted for fulfillment. Related Endpoint operations - resendOrdersForFulfillment
Show Source
Nested Schema : taxPriceInfo
Type: object
The tax pricing details for the order. Related Endpoint operation - createOrder, createNewCart, priceOrder, submitOrder.
Show Source
Nested Schema : claimedCouponMultiPromotions
Type: object
The coupons that were claimed.
Show Source
Nested Schema : orderCouponsMap
Type: object
The coupons that were claimed.
Show Source
Nested Schema : orderImplicitDiscountList
Type: array
List of discounts.
Show Source
Nested Schema : unclaimedCouponMultiPromotions
Type: object
The coupons that were not claimed
Show Source
Nested Schema : unclaimedCouponsMap
Type: array
Map of unclaimed coupons.
Show Source
Nested Schema : couponCode
Type: array
Coupon Code, corresponding to which promotions were applied
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : couponCode
Type: object
Coupon Code.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : couponCode
Type: array
Coupon Code, corresponding to which some promotions were not applied
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : couponInfo
Type: array
The coupon Info.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
  • The quantity of free sku for this gift selection that has already been auto added to the order.
  • Flag to indicate whether free gifts should be auto removed if the promotion no longer qualifies.
  • Gift hash code to track which gift selection in the promotion this is. It allows the commerce item marker to link to this one.
  • The amount of automatic free quantity that failed to be added to the cart due to some pricing error, e.g. invalid site..
  • String identifying the free gift, usually the repository id of the gift type.
  • The type of gift like sku, product, category, skuContentGroup or productContentGroup.
  • atg.gwp.
  • The total quantity of sku for this gift selection.
  • The amount of free quantity that has since been manually removed by a Shopper.
  • The repository id of the gwp order marker.
  • The quantity of free sku for this gift selection that has already been selected by the Shopper and added to the order.
  • The quantity of free sku for this gift selection that has already been targeted and made free by the calculator in the order.
  • The GWP promotion id.
Nested Schema : items
Type: object
Show Source
  • Order marker key. In a marketing campaign marker, key signifies that it is a campaign marker and it also identifies the external marketing system that is the source of the campaign, e.g., campaign_eloqua
  • Order marker value. In a marketing campaign marker, value holds the marketing system's unique campaign ID.
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : billingAddress
Type: object
Billing address for the order.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : billingAddress
Type: object
Billing address for the order.
Show Source
Nested Schema : orderTotalBySite
Type: object
The map containing order totals by site for all sites in a given order.
Nested Schema : GiftWithPurchaseMessages
Type: array
The GWP messages information.
Show Source
Nested Schema : promotionUpsellMessages
Type: array
The promotion upsell messages.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : params
Type: array
The list of all message parameters.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : tags
Type: array
The tags the promotion upsell message is associated with.
Show Source
Nested Schema : organization
Type: object
The Organization associated with the B2B customer profile.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: array
Items in the cart.
Show Source
Nested Schema : shippingAddress
Type: object
shipping address for the order.
Show Source
Nested Schema : shippingMethod
Type: object
Shipping method information.
Show Source
Nested Schema : shipTo
Type: object
shipTo details for shipping.Applicable for B2B orders only
Show Source
Nested Schema : trackingInfo
Type: array
Tracking Information for the Order.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : childItems
Type: array
Child items of the commerce item
Show Source
Nested Schema : discountInfo
Type: object
Discount information.
Show Source
Nested Schema : dynamicProperties
Type: array
Array of custom properties at order line item level.
Show Source
Nested Schema : externalData
Type: array
External data to be associated with a commerce item, provided by a configurator system.
Show Source
Nested Schema : imageInfo
Type: object
Shipping method information.
Show Source
Nested Schema : locationInventoryInfoMap
Type: object
Additional Properties Allowed
Show Source
This is a map displaying inventory breakdowns for multiple inventory locations, created when the item is fulfilled by multiple inventories. Each entry in the map is keyed by inventory location id
Nested Schema : variant
Type: array
Product Variant Information.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : childItems
Type: array
Child items of the commerce item
Show Source
Nested Schema : externalData
Type: array
External data to be associated with a commerce item, provided by a configurator system.
Show Source
Nested Schema : selectedOptions
Type: array
The array of variants of the child item.
Show Source
Nested Schema : shopperInput
Type: object
Additional Properties Allowed
Show Source
Map of shopper input keys to values
Nested Schema : items
Type: object
Show Source
Nested Schema : externalData
Type: array
External data to be associated with a commerce item, provided by a configurator system.
Show Source
Nested Schema : selectedOptions
Type: array
The array of variants of the child item.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : values
Type: object
The array of values associated with an externalData item.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : values
Type: object
The array of values associated with an externalData item.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : orderCouponsMap
Type: object
The coupons that were claimed.
Show Source
Nested Schema : orderImplicitDiscountList
Type: array
List of discounts.
Show Source
Nested Schema : unclaimedCouponsMap
Type: array
Map of unclaimed coupons.
Show Source
Nested Schema : couponCode
Type: object
Coupon Code.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : couponInfo
Type: array
The coupon Info.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : values
Type: object
The array of values associated with an externalData item.
Show Source
Nested Schema : additionalProperties
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : store
Type: object
Information about the Store that the items are being picked up from (if shipping group type is inStorePickupShippingGroup)
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: array
Items in the cart.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : childItems
Type: array
Child items of the commerce item
Show Source
Nested Schema : discountInfo
Type: object
Discount information.
Show Source
Nested Schema : dynamicProperties
Type: array
Array of custom properties at order line item level.
Show Source
Nested Schema : externalData
Type: array
External data to be associated with a commerce item, provided by a configurator system.
Show Source
Nested Schema : giftWithPurchaseCommerceItemMarkers
Type: array
The array of giftWithPurchaseCommerceItemMarkers.
Show Source
Nested Schema : locationInventoryInfoMap
Type: object
Additional Properties Allowed
Show Source
This is a map displaying inventory breakdowns for multiple inventory locations, created when the item is fulfilled by multiple inventories. Each entry in the map is keyed by inventory location id
Nested Schema : priceOverrideReason
Type: object
Price override reason map
Show Source
Nested Schema : shopperInput
Type: object
Additional Properties Allowed
Show Source
Map of shopper input keys to values
Nested Schema : items
Type: object
Show Source
Nested Schema : childItems
Type: array
Child items of the commerce item
Show Source
Nested Schema : externalData
Type: array
External data to be associated with a commerce item, provided by a configurator system.
Show Source
Nested Schema : selectedOptions
Type: array
The array of variants of the child item.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : externalData
Type: array
External data to be associated with a commerce item, provided by a configurator system.
Show Source
Nested Schema : selectedOptions
Type: array
The array of variants of the child item.
Show Source
Nested Schema : shopperInput
Type: object
Additional Properties Allowed
Show Source
Map of shopper input keys to values
Nested Schema : items
Type: object
Show Source
Nested Schema : values
Type: object
The array of values associated with an externalData item.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : values
Type: object
The array of values associated with an externalData item.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : gwpSelections
Type: array
The gift information.
Show Source
Nested Schema : orderCouponsMap
Type: object
The coupons that were claimed.
Show Source
Nested Schema : orderImplicitDiscountList
Type: array
List of discounts.
Show Source
Nested Schema : unclaimedCouponsMap
Type: array
Map of unclaimed coupons.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : couponCode
Type: object
Coupon Code.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : couponInfo
Type: array
The coupon Info.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : values
Type: object
The array of values associated with an externalData item.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : additionalProperties
Type: object
Show Source
Example Response (application/json)
{
    "taxPriceInfo":{
        "cityTax":0,
        "amount":4,
        "valueAddedTax":0,
        "countyTax":2,
        "isTaxIncluded":false,
        "miscTax":0,
        "districtTax":0,
        "stateTax":2,
        "countryTax":0
    },
    "orderId":"o10415",
    "creationSiteId":"siteUS",
    "dynamicProperties":[
        {
            "id":"dynamicPropertyShippingInstructions",
            "value":"Test Instructions"
        }
    ],
    "isItemPriceOverrideAllowed":true,
    "cartName":"o10415",
    "priceInfo":{
        "amount":9.99,
        "total":38.5,
        "shipping":25,
        "orderTotalBySite":{
            "siteUS":38.5
        },
        "tax":3.51,
        "subTotal":9.99,
        "currencyCode":"USD"
    },
    "discountInfo":{
        "unclaimedCouponMultiPromotions":{
        },
        "orderCouponsMap":{
        },
        "orderDiscount":0,
        "shippingDiscount":0,
        "orderImplicitDiscountList":[
        ],
        "unclaimedCouponsMap":{
        },
        "claimedCouponMultiPromotions":{
        }
    },
    "recurringChargePriceInfo":{
        "amount":20,
        "total":20,
        "shipping":0,
        "subTotalByFrequency":[
            {
                "amount":20,
                "frequency":"Monthly"
            }
        ],
        "taxByFrequency":[
        ],
        "tax":0,
        "subTotal":20,
        "currencyCode":"USD",
        "totalWithoutTax":20
    },
    "pricingMessages":{
        "promotionUpsellMessages":[
            {
                "text":"Spend $20 more get free shipping!",
                "tags":[
                    "CART_UPSELL"
                ]
            },
            {
                "text":"You have qualified for a free Sports DVD!",
                "tags":[
                    "BANNER_UPSELL",
                    "CART_UPSELL"
                ]
            }
        ]
    },
    "shoppingCart":{
        "numberOfItems":1,
        "items":[
            {
                "unitPrice":9.99,
                "quantity":1,
                "productId":"Product_18Cyii",
                "priceOverridenBy":"",
                "externalRecurringCharge":20,
                "giftWithPurchaseCommerceItemMarkers":[
                ],
                "preOrderQuantity":0,
                "externalRecurringChargeFrequency":"Monthly",
                "childItems":[
                    {
                        "commerceItemId":"ci19000424",
                        "configurationOptionId":"co40001",
                        "addOnItem":true,
                        "quantity":1,
                        "route":"/intel-pentium-dual-core/product/prod40001",
                        "productId":"prod40001",
                        "displayName":"Intel Pentium Dual Core",
                        "selectedOptions":[
                        ],
                        "siteId":"siteUS",
                        "configurablePropertyId":"cp40001",
                        "catRefId":"sku40001"
                    },
                    {
                        "commerceItemId":"ci19000426",
                        "addOnItem":false,
                        "quantity":1,
                        "route":"/8-gb-kingston-sodimm-ddr3-1600mhz/product/prod40007",
                        "productId":"prod40007",
                        "displayName":"8 GB Kingston Sodimm DDR3 1600MHz",
                        "selectedOptions":[
                        ],
                        "siteId":"siteUS",
                        "catRefId":"sku40007"
                    },
                    {
                        "commerceItemId":"ci19000425",
                        "configurationOptionId":"confO_12",
                        "addOnItem":true,
                        "quantity":1,
                        "productId":"prod12344",
                        "displayName":"Gift Wrap",
                        "siteId":"siteUS",
                        "shopperInput":{
                            "color":"neon",
                            "message":"Happy Birthday My Friend",
                            "font":"courier"
                        },
                        "configurablePropertyId":"conf022",
                        "catRefId":"sku12344"
                    }
                ],
                "externalRecurringChargeDuration":"12",
                "catRefId":"Sku_18Dxy",
                "configuratorId":"36379716",
                "overriddenPrice":"",
                "commerceItemId":"ci1000785",
                "discountInfo":[
                ],
                "price":9.99,
                "isPriceOverridden":false,
                "onSale":true,
                "siteId":"siteUS",
                "detailedRecurringChargeInfo":[
                    {
                        "discounted":false,
                        "secondaryCurrencyTaxAmount":0,
                        "amount":20,
                        "quantity":1,
                        "tax":0,
                        "orderDiscountShare":0,
                        "detailedUnitPrice":20,
                        "currencyCode":"USD"
                    }
                ],
                "backOrderQuantity":0,
                "locationInventoryInfoMap":{
                },
                "priceOverrideReason":{
                }
            }
        ]
    },
    "giftWithPurchaseInfo":[
    ],
    "siteId":"siteUS",
    "links":[
        {
            "method":"POST",
            "rel":"self",
            "href":"/ccagentui/v1/orders"
        }
    ],
    "giftWithPurchaseOrderMarkers":[
    ]
}

Default Response

The error response. In case of any failure in external tax or external shipping webhooks, the errors returned in the webhook response payload get added to the errors property in this endpoint???s 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| |------------------|------------------| |40001|Please check the shipping address and try again.| |200124|Internal error occurred.| |28155|{0} cannot be purchased directly and is only available as part of a customizable product, please remove this item from your cart in order to proceed| |1002020|The user does not have permission to place an order.| |100094|Organization passed in the header is currently inactive| |100098|Current operation is being performed in an organization context and the shopper profile is not associated to any organization| |28107|Specified order does not exist| |28129|Product/sku {0} not found| |22001|An internal error occurred while processing input request.| |22002|No profile found with profile id {0}| |28326|Code not currently active./ Code not found. / Code expired.| |28088|Please check the selected shipping method before placing your order. The previously selected shipping method is no longer available.| |28086|No shipping data specified| |30015|SiteId passed in x-ccsite header is currently inactive| |28087|No shipping method specified| |30014|SiteId passed in x-ccsite header is invalid or the site was deleted| |28103|Quantity cannot exceed order limit| |28301|Order submission failed| |28104|Quantity cannot exceed stock limit (inventory check)| |28102|Product/sku {0} not found| |28300|Internal error while creating the order| |28080|Empty shopping cart data| |28081|No items found in cart data| |100101|The shopper profile does not belong to organization passed in the header| |100102|Organization passed in the header is invalid or does not exist| |100103|The order or return request does not belong to the organization passed in the header| |28084|No quantity specified on item| |28085|Invalid quantity {0} specified on item| |28082|No product id specified on item| |28083|No catalog reference id specified on item| |28105|Order submission failed| |28111|Your order has not been placed due to a payment error, and you have not been charged. Please try again| |28410|The structure of add-ons defined for the order is invalid| |28329|One of the dynamic properties is not writable by the Agent user| |51006|The location used does not support pickup in store|
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top