calculateShipping
post
/ccadmin/v1/webhook/calculateShipping
This event is triggered at 'add to cart' page requesting for external shipping pricing details
Request
Supported Media Types
- application/json
Body Parameter
This event is triggered at 'add to cart' page requesting for external shipping pricing details
Root Schema : calculateShipping_request
This event is triggered at 'add to cart' page requesting for external shipping pricing details
- request
-
Type:
objectrequestAdditional Properties Allowed:
Nested Schema : request
Type:
object- address
-
Type:
objectaddressAdditional Properties Allowed:Address - currencyCode
-
Type:
stringIndicates the currency of the price. For example, USD indicates that the price is in US dollars. - exchangeRate
-
Type:
numberexchangeRate - items
-
Type:
arrayitemsAdditional Properties Allowed:items - locale
-
Type:
objectlocaleAdditional Properties Allowed:locale - orderDiscount
-
Type:
numberDiscount given on an order. - orderTotal
-
Type:
numberThe total price of the order. - rawOrderTotal
-
Type:
numberthe raw order total - secondaryCurrencyCode
-
Type:
stringSecondary currencyCode - siteId
-
Type:
stringsite associated with this request
Nested Schema : address
Type:
objectAddress
- address1
-
Type:
stringaddress1 of the person - address2
-
Type:
stringaddress2 of the person - country
-
Type:
stringthe country of the Address - firstName
-
Type:
stringfirstName of person - lastName
-
Type:
stringlastName of person - postalCode
-
Type:
stringpostalCode of the person - state
-
Type:
stringstate of the person
Nested Schema : locale
Type:
objectlocale
- country
-
Type:
stringcountry - displayName
-
Type:
stringthe display name - language
-
Type:
stringlanguage
Nested Schema : items
Type:
object- amount
-
Type:
numberamount - catalogRefId
-
Type:
stringThe catalog ref id - discount
-
Type:
numberdiscount of the order - product
-
Type:
objectproductAdditional Properties Allowed:product - quantity
-
Type:
integerquantity - rawTotalPrice
-
Type:
numberThe raw total price.
Nested Schema : product
Type:
objectproduct
- height
-
Type:
numberheight of the product - id
-
Type:
stringid of the product - length
-
Type:
numberlength of the product - shippingSurcharge
-
Type:
numberExtra handling cost for shipping the product. - taxCode
-
Type:
stringTax Code of the product. - weight
-
Type:
numberweight of the product - width
-
Type:
numberwidth of the product
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : calculateShipping_response
- error
-
Type:
objecterrorAdditional Properties Allowed: - shippingMethods
-
Type:
arrayshippingMethodsAdditional Properties Allowed:shippingMethods
Nested Schema : error
Type:
object- code
-
Type:
string - message
-
Type:
string
Nested Schema : shippingMethods
Nested Schema : items
Type:
object- carrierId
-
Type:
stringthe id of carrier - currency
-
Type:
stringthe currency - deliveryDays
-
Type:
integerthe number of delivery days - displayName
-
Type:
stringthe display name - eligibleForProductWithSurcharges
-
Type:
booleanWhether this shipping method is enabled for products with surcharges or not. Defaults to null. - estimatedDeliveryDate
-
Type:
stringthe estimated delivery date - estimatedDeliveryDateGuaranteed
-
Type:
booleanWhether the delivery date is guaranteed - internationalDutiesTaxesFees
-
Type:
numberthe international tax duties - shippingCost
-
Type:
numberthe cost of shipping - shippingTax
-
Type:
numberthe shipping tax - shippingTotal
-
Type:
numberThe total shipping - taxcode
-
Type:
stringthe tax code