orderValidation

post

/ccadmin/v1/webhook/orderValidation

A webhook for validating the contents of an order. This webhook is fired at order submit time and will be executed after final order pricing has been performed.

Request

Supported Media Types
Body ()
A webhook for validating the contents of an order. This webhook is fired at order submit time and will be executed after final order pricing has been performed.
Root Schema : orderValidation_request
Type: object
A webhook for validating the contents of an order. This webhook is fired at order submit time and will be executed after final order pricing has been performed.
Show Source
Example:
{
    "profile":{
        "lastName":"Anderson",
        "firstName":"Kim",
        "customerContactId":"se-570031",
        "receiveEmail":"no",
        "currentOrganization":null,
        "parentOrganization":null,
        "locale":"en",
        "email":"kim@example.com",
        "sitePropertiesList":[
            {
                "site":{
                    "id":"siteUS"
                },
                "properties":{
                    "numberOfVisits":29,
                    "GDPRProfileP13nConsentDate":null,
                    "GDPRProfileP13nConsentGranted":false,
                    "receiveEmail":"no",
                    "receiveEmailDate":null
                }
            }
        ],
        "daytimeTelephoneNumber":null
    },
    "order":{
        "taxPriceInfo":{
            "cityTax":0,
            "secondaryCurrencyTaxAmount":0,
            "amount":0,
            "valueAddedTax":0,
            "countyTax":0,
            "isTaxIncluded":false,
            "miscTax":0,
            "districtTax":0,
            "stateTax":0,
            "countryTax":0
        },
        "shippingGroups":[
            {
                "shippingMethod":{
                    "secondaryCurrencyTaxAmount":0,
                    "shippingTax":0,
                    "cost":0,
                    "taxIncluded":true,
                    "taxCode":"",
                    "value":"groundShippingMethod",
                    "shippingMethodDescription":"Ground"
                },
                "shippingGroupId":"sg220413",
                "shippingAddress":{
                    "lastName":"test",
                    "country":"US",
                    "address3":"",
                    "address2":"",
                    "city":"Syracuse",
                    "prefix":"",
                    "address1":"21 Cedar Ave",
                    "postalCode":"13202",
                    "companyName":"",
                    "jobTitle":"",
                    "county":"",
                    "suffix":"",
                    "firstName":"test",
                    "phoneNumber":"212-555-1977",
                    "faxNumber":"",
                    "alias":null,
                    "middleName":"",
                    "state":"NY",
                    "email":"test@example.com"
                },
                "type":"hardgoodShippingGroup",
                "items":[
                    {
                        "rawTotalPrice":0,
                        "returnedQuantity":0,
                        "shippingSurchargeValue":0,
                        "externalData":[
                        ],
                        "discountAmount":0,
                        "preOrderQuantity":0,
                        "childItems":[
                        ],
                        "configuratorId":"18225093",
                        "externalPrice":0,
                        "commerceItemId":"ci1493723487427",
                        "price":0,
                        "onSale":false,
                        "stateDetailsAsUser":"The item has been initialized within the shipping group",
                        "commerceId":"ci21000413",
                        "unitPrice":0,
                        "assetable":false,
                        "amount":0,
                        "quantity":2,
                        "pointOfNoRevision":false,
                        "productId":"laptop",
                        "salePrice":0,
                        "externalRecurringCharge":50,
                        "externalPriceQuantity":-1,
                        "externalRecurringChargeFrequency":"Monthly",
                        "catRefId":"sku50001",
                        "externalRecurringChargeDuration":"12",
                        "discountInfo":[
                        ],
                        "siteId":"siteUS",
                        "shopperInput":{
                        },
                        "asset":false,
                        "backOrderQuantity":0,
                        "listPrice":0,
                        "status":"INITIAL"
                    }
                ]
            }
        ],
        "creationTime":1.554728617709E12,
        "orderId":"o210413",
        "lastModifiedDate":"2019-04-08T13:03:37.709Z",
        "shippingMethod":{
            "shippingTax":0,
            "cost":0,
            "value":"groundShippingMethod"
        },
        "orderStatus":"Incomplete",
        "cartName":"o210413",
        "creationDate":"2019-04-08T13:03:37.709Z",
        "orderProfileId":"se-570031",
        "orderAction":"order",
        "priceInfo":{
            "amount":0,
            "total":0,
            "shipping":0,
            "shippingSurchargeValue":0,
            "tax":0,
            "subTotal":0,
            "currencyCode":null,
            "totalWithoutTax":0
        },
        "shoppingCart":{
            "numberOfItems":2,
            "items":[
                {
                    "primaryThumbImageURL":"/img/no-image.jpg",
                    "rawTotalPrice":0,
                    "displayName":"Laptop",
                    "shippingSurchargeValue":0,
                    "discountAmount":0,
                    "externalData":[
                    ],
                    "description":"laptop",
                    "isItemValid":true,
                    "childItems":[
                    ],
                    "configuratorId":"18225093",
                    "externalPrice":0,
                    "commerceItemId":"ci1493723487427",
                    "price":0,
                    "variant":[
                    ],
                    "onSale":false,
                    "id":"ci21000413",
                    "state":"Added to order",
                    "stateKey":"INITIAL",
                    "unitPrice":0,
                    "assetable":false,
                    "amount":0,
                    "quantity":2,
                    "productId":"laptop",
                    "salePrice":0,
                    "detailedItemPriceInfo":[
                    ],
                    "externalRecurringCharge":50,
                    "orderDiscountInfos":[
                    ],
                    "giftWithPurchaseCommerceItemMarkers":[
                    ],
                    "externalPriceQuantity":-1,
                    "externalRecurringChargeFrequency":"Monthly",
                    "catRefId":"sku50001",
                    "externalRecurringChargeDuration":"12",
                    "discountInfo":[
                    ],
                    "siteId":"siteUS",
                    "shopperInput":{
                    },
                    "asset":false,
                    "listPrice":0
                }
            ]
        },
        "siteId":"siteUS",
        "shippingAddress":{
            "lastName":"test",
            "country":"US",
            "address3":"",
            "address2":"",
            "city":"Syracuse",
            "prefix":"",
            "address1":"21 Cedar Ave",
            "postalCode":"13202",
            "companyName":"",
            "jobTitle":"",
            "county":"",
            "suffix":"",
            "firstName":"test",
            "phoneNumber":"212-555-1977",
            "faxNumber":"",
            "alias":null,
            "middleName":"",
            "state":"NY",
            "email":"test@example.com"
        }
    }
}
Nested Schema : order
Type: object
Show Source
Nested Schema : orderValidationOrganization
Type: object
Show Source
Nested Schema : profile
Type: object
Show Source
Nested Schema : discountInfo
Type: object
The discount information.
Show Source
Nested Schema : dynamicProperties
Type: array
List of dynamic properties at line item level.
Show Source
Nested Schema : payments
Type: array
Show Source
Nested Schema : priceInfo
Type: object
Show Source
Nested Schema : recurringChargePriceInfo
Type: object
Recurring charge price information.
Show Source
Nested Schema : shippingAddress
Type: object
Show Source
Nested Schema : shippingGroups
Type: array
Show Source
Nested Schema : shippingMethod
Type: object
Show Source
Nested Schema : shoppingCart
Type: object
Show Source
Nested Schema : taxPriceInfo
Type: object
Show Source
Nested Schema : orderCouponsMap
Type: object
The coupons that were claimed.
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 : frequencyAmountTotals
Type: array
The total for each recurring charge frequency
Show Source
Nested Schema : frequencyTaxTotals
Type: array
The tax for each recurring charge frequency
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 : discountInfo
Type: array
The discount information.
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : priceInfo
Type: object
The price information.
Show Source
Nested Schema : recurringChargePriceInfo
Type: object
Recurring charge price information.
Show Source
Nested Schema : shippingAddress
Type: object
The shipping address details.
Show Source
Nested Schema : shippingMethod
Type: object
The shipping method details for the order.
Show Source
Nested Schema : taxPriceInfo
Type: object
The shipping address details.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : childItems
Type: array
Show Source
Nested Schema : detailedItemPriceInfo
Type: array
Show Source
Nested Schema : detailedRecurringChargeInfo
Type: object
Detailed Item Price Information.
Show Source
Nested Schema : discountInfo
Type: array
Whether this item is discounted.
Show Source
Nested Schema : externalData
Type: array
External data to be associated with a commerce item, provided by a third party 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 : 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 map values associated with an externalData item.
Show Source
Nested Schema : frequencyAmountTotals
Type: array
The total for each recurring charge frequency
Show Source
Nested Schema : frequencyTaxTotals
Type: array
The tax for each recurring charge frequency
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: array
The array of products in the shopping cart. This property will be removed from the webhook request payload if the size exceeds the sub entity truncation size value configured for this webhook
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : childItems
Type: array
Represents the child commerce items. This property will be removed from the webhook request payload if the size exceeds the sub entity truncation size value configured for this webhook
Show Source
Nested Schema : detailedItemPriceInfo
Type: array
Show Source
Nested Schema : detailedRecurringChargeInfo
Type: object
Detailed Item Price Information.
Show Source
Nested Schema : discountInfo
Type: array
The discount information.
Show Source
Nested Schema : dynamicProperties
Type: array
List of dynamic properties at line item level.
Show Source
Nested Schema : orderDiscountInfos
Type: array
Array of order promotions affecting this item.
Show Source
Nested Schema : shopperInput
Type: object
Additional Properties Allowed
Show Source
Map of shopper input keys to values
Nested Schema : variant
Type: array
List of variants for the product.
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
Nested Schema : items
Type: object
Show Source
Nested Schema : couponCodes
Type: array
One or more coupon codes used to grant the order promotion providing the discount.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : allApprovers
Type: array
list of all the approvers
Show Source
Nested Schema : ancestorOrganizations
Type: array
List of ancestors for the Organization
Show Source
Nested Schema : approvers
Type: array
Show Source
Nested Schema : billingAddress
Type: object
The default billing address for the Organization. This a read only attribute. This will come if property 'isDefaultBillingAddress' is set to 'true' in secondaryAddresses attribute.
Show Source
Nested Schema : childOrganizations
Type: array
Show Source
Nested Schema : contacts
Type: array
Show Source
Nested Schema : contract
Type: object
Contract
Show Source
Nested Schema : derivedBillingAddress
Type: object
Default billing address of the profile
Show Source
Nested Schema : derivedContract
Type: object
Contract
Show Source
Nested Schema : derivedShippingAddress
Type: object
The derived default shipping address for the Organization. This a read only attribute. This will come if property 'isDefaultShippingAddress' is set to 'true' in secondaryAddresses attribute or if parent has default shipping address.
Show Source
Nested Schema : siteOrganizationProperties
Type: object
Site Organization Properties
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : catalog
Type: object
Catalog associated with contract
Show Source
Nested Schema : priceListGroup
Type: object
Price ListGroup associated with contract
Show Source
Nested Schema : terms
Type: object
Terms and Conditions
Show Source
Nested Schema : catalog
Type: object
Catalog associated with contract
Show Source
Nested Schema : priceListGroup
Type: object
Price ListGroup associated with contract
Show Source
Nested Schema : terms
Type: object
Terms and Conditions
Show Source
Nested Schema : site
Type: object
Site information
Show Source
Nested Schema : contract
Type: object
Contract
Show Source
Nested Schema : catalog
Type: object
Catalog associated with contract
Show Source
Nested Schema : priceListGroup
Type: object
Price ListGroup associated with contract
Show Source
Nested Schema : terms
Type: object
Terms and Conditions
Show Source
Nested Schema : loyaltyPrograms
Type: array
Show Source
Nested Schema : sitePropertiesList
Type: array
The list of site related properties for the profile
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : properties
Type: object
The site related properties for the profile
Show Source
Nested Schema : site
Type: object
The site data
Show Source
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : orderValidation_response
Type: object
Show Source
Example:
{
    "errors":[
    ],
    "responseCode":"74505"
}
Nested Schema : error
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top