externalTaxCalculation
post
/ccadmin/v1/webhook/externalTaxCalculation
This event is triggered at checkout page to get tax for cart from external service
Request
Supported Media Types
- application/json
Body Parameter
This event is triggered at checkout page to get tax for cart from external service
Root Schema : externalTaxCalculation_request
This event is triggered at checkout page to get tax for cart from external service
- request
-
Type:
objectrequestAdditional Properties Allowed:
Nested Schema : request
Type:
object- callType
-
Type:
stringThe tax call type. - creationDate
-
Type:
stringThe order creation date. - creationTime
-
Type:
numberThe creation time of the order. - currencyConversionEnabled
-
Type:
booleanIndicates whether currency conversion is enabled - discountInfo
-
Type:
objectdiscountInfoAdditional Properties Allowed:The discount information. - exchangeRate
-
Type:
numberThe conversion rate between the order currency and base currency. - giftWithPurchaseInfo
-
Type:
arraygiftWithPurchaseInfoAdditional Properties Allowed: - isTaxIncluded
-
Type:
booleanIndicates whether order is inclusive of tax. - orderCurrencyCode
-
Type:
stringThe currency code of the order currency - orderId
-
Type:
stringThe ID of the order. - orderProfileId
-
Type:
stringThe profile id on the order. - orderStatus
-
Type:
stringThe order status. - priceInfo
-
Type:
objectpriceInfoAdditional Properties Allowed: - profile
-
Type:
objectprofileAdditional Properties Allowed: - secondaryCurrencyCode
-
Type:
stringThe currency code of secondary currency. - shipFromAddress
-
Type:
objectshipFromAddressAdditional Properties Allowed: - shippingGroups
-
Type:
arrayshippingGroupsAdditional Properties Allowed: - shoppingCart
-
Type:
objectshoppingCartAdditional Properties Allowed:
Nested Schema : discountInfo
Type:
objectThe discount information.
- orderCouponsMap
-
Type:
arrayorderCouponsMapAdditional Properties Allowed:The list of all the coupons with the order. - orderDiscount
-
Type:
integerThe order discount. - shippingDiscount
-
Type:
integerThe shipping discount.
Nested Schema : giftWithPurchaseInfo
Nested Schema : priceInfo
Type:
object- amount
-
Type:
number - currencyCode
-
Type:
string - shipping
-
Type:
number - shippingSurchargeValue
-
Type:
number - subTotal
-
Type:
number - tax
-
Type:
number - total
-
Type:
number - totalWithoutTax
-
Type:
number
Nested Schema : profile
Type:
object- daytimeTelephoneNumber
-
Type:
stringThe day time phone number of the profile -
Type:
string - firstName
-
Type:
string - id
-
Type:
stringId - lastName
-
Type:
string - locale
-
Type:
string - loyaltyPrograms
-
Type:
arrayloyaltyProgramsAdditional Properties Allowed:Loyalty Programs Information - receiveEmail
-
Type:
stringThe string representation of whether the user wants to receive email or not - sitePropertiesList
-
Type:
arraysitePropertiesListAdditional Properties Allowed:The list of site related properties for the profile
Nested Schema : shipFromAddress
Type:
object- address1
-
Type:
string - address2
-
Type:
string - address3
-
Type:
string - city
-
Type:
string - companyName
-
Type:
string - country
-
Type:
string - county
-
Type:
string -
Type:
string - faxNumber
-
Type:
integer - firstName
-
Type:
string - jobTitle
-
Type:
string - lastName
-
Type:
string - middleName
-
Type:
string - phoneNumber
-
Type:
integer - postalCode
-
Type:
string - prefix
-
Type:
string - state
-
Type:
string - suffix
-
Type:
string
Nested Schema : shoppingCart
Type:
object- items
-
Type:
arrayitemsAdditional Properties Allowed: - numberOfItems
-
Type:
integer
Nested Schema : orderCouponsMap
Nested Schema : items
Type:
object- promotionDesc
-
Type:
stringThe promotion description. - promotionId
-
Type:
stringThe promotion ID. - promotionLevel
-
Type:
stringThe promotion level. - totalAdjustment
-
Type:
stringThe total adjustment.
Nested Schema : items
Type:
object- giftWithPurchaseDetail
-
Type:
stringString identifying the free gift, usually the repository id of the gift type. - giftWithPurchaseIdentifier
-
Type:
numberAn identifier used to track which gift selection in the promotion this is. It allows the commerce item marker to link to this one. - giftWithPurchaseQuantityAvailableForSelection
-
Type:
numbergift quantity available for selection - giftWithPurchaseType
-
Type:
stringThe type of the gift. (sku, product) - promotionId
-
Type:
stringThe gift with purchase promotion id
Nested Schema : loyaltyPrograms
Nested Schema : sitePropertiesList
Nested Schema : items
Type:
object- membershipId
-
Type:
stringmembershipId of the profile. - programId
-
Type:
stringprogramId of Loyalty Program - programName
-
Type:
stringprogramName of Loyalty Program - repositoryId
-
Type:
stringrepository Id - status
-
Type:
stringstatus of Enrollment.
Nested Schema : items
Type:
object- properties
-
Type:
objectpropertiesAdditional Properties Allowed:The site related properties for the profile - site
-
Type:
objectsiteAdditional Properties Allowed:The site data
Nested Schema : properties
Type:
objectThe site related properties for the profile
- receiveEmail
-
Type:
stringIndicates whether the user should receive marketing emails on the current site. Can be yes or no.
Nested Schema : site
Nested Schema : items
Type:
object- discountInfo
-
Type:
objectdiscountInfoAdditional Properties Allowed:The discount information. - items
-
Type:
arrayitemsAdditional Properties Allowed: - priceInfo
-
Type:
objectpriceInfoAdditional Properties Allowed: - shippingAddress
-
Type:
objectshippingAddressAdditional Properties Allowed: - shippingGroupId
-
Type:
stringThe shipping group id. - shippingMethod
-
Type:
objectshippingMethodAdditional Properties Allowed:The shipping method details for the order.
Nested Schema : discountInfo
Type:
objectThe discount information.
- orderDiscount
-
Type:
integerThe discount. - shippingDiscount
-
Type:
integerThe shipping discount.
Nested Schema : priceInfo
Type:
object- amount
-
Type:
number - currencyCode
-
Type:
string - shipping
-
Type:
number - shippingSurchargeValue
-
Type:
number - subTotal
-
Type:
number - tax
-
Type:
number - total
-
Type:
number - totalWithoutTax
-
Type:
number
Nested Schema : shippingAddress
Type:
object- address1
-
Type:
string - address2
-
Type:
string - address3
-
Type:
string - city
-
Type:
string - companyName
-
Type:
string - country
-
Type:
string - county
-
Type:
string -
Type:
string - faxNumber
-
Type:
integer - firstName
-
Type:
string - jobTitle
-
Type:
string - lastName
-
Type:
string - middleName
-
Type:
string - phoneNumber
-
Type:
integer - postalCode
-
Type:
string - prefix
-
Type:
string - state
-
Type:
string - suffix
-
Type:
string
Nested Schema : shippingMethod
Type:
objectThe shipping method details for the order.
- cost
-
Type:
numberThe cost of shipping. - shippingMethodDescription
-
Type:
stringThe shipping method description. - shippingTax
-
Type:
numberThe shipping tax. - taxCode
-
Type:
stringThe tax code for shipping method. - value
-
Type:
stringThe shipping method .
Nested Schema : items
Type:
object- catRefId
-
Type:
stringThe catalog ref id. - discountAmount
-
Type:
numberThe discount amount. - listPrice
-
Type:
numberThe list price. - onSale
-
Type:
numberIs item on sale. - price
-
Type:
numberThe price. - quantity
-
Type:
numberThe quantity. - rawTotalPrice
-
Type:
numberThe raw total price. - returnedQuantity
-
Type:
numberThe returned quantity. - salePrice
-
Type:
numberThe sale price. - shippingSurchargeValue
-
Type:
numberThe shipping surcharge if any. - stateDetailsAsUser
-
Type:
stringstate details. - status
-
Type:
stringstatus. - unitPrice
-
Type:
numberThe unit price.
Nested Schema : items
Type:
object- catRefId
-
Type:
string - configuratorId
-
Type:
string - description
-
Type:
string - detailedItemPriceInfo
-
Type:
arraydetailedItemPriceInfoAdditional Properties Allowed: - discountAmount
-
Type:
number - discountInfo
-
Type:
arraydiscountInfoAdditional Properties Allowed:The discount information. - displayName
-
Type:
string - dynamicProperties
-
Type:
arraydynamicPropertiesAdditional Properties Allowed:List of dynamic properties at line item level. - externalPrice
-
Type:
number - externalPriceQuantity
-
Type:
integer - id
-
Type:
string - isItemValid
-
Type:
boolean - listPrice
-
Type:
number - onSale
-
Type:
boolean - price
-
Type:
number - primaryThumbImageURL
-
Type:
string - productId
-
Type:
string - quantity
-
Type:
integer - rawTotalPrice
-
Type:
number - salePrice
-
Type:
number - shippingSurchargeValue
-
Type:
integer - unitPrice
-
Type:
number - variant
-
Type:
arrayvariantAdditional Properties Allowed:List of variants for the product.
Nested Schema : detailedItemPriceInfo
Nested Schema : discountInfo
Nested Schema : dynamicProperties
Nested Schema : variant
Nested Schema : items
Type:
object- amount
-
Type:
number - currencyCode
-
Type:
string - detailedUnitPrice
-
Type:
number - discounted
-
Type:
boolean - orderDiscountShare
-
Type:
integer - quantity
-
Type:
integer - tax
-
Type:
number
Nested Schema : items
Type:
object- coupon
-
Type:
stringThe coupon ID. - promotionDesc
-
Type:
stringThe promotion description. - promotionId
-
Type:
stringThe promotion ID.
Nested Schema : items
Type:
object- id
-
Type:
stringThe dynamic property id. - label
-
Type:
stringThe dynamic property label. - value
-
Type:
stringThe dynamic property value.
Nested Schema : items
Type:
object- optionName
-
Type:
stringThe variant option name. - optionValue
-
Type:
stringThe variant option value.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
The tax calculation response from external service
Root Schema : externalTaxCalculation_response
The tax calculation response from external service
- response
-
Type:
objectresponseAdditional Properties Allowed:
Nested Schema : response
Type:
object- callType
-
Type:
string - creationDate
-
Type:
string - creationTime
-
Type:
number - errors
-
Type:
arrayerrorsAdditional Properties Allowed: - isTaxIncluded
-
Type:
boolean - orderId
-
Type:
string - orderProfileId
-
Type:
string - orderStatus
-
Type:
string - shippingGroups
-
Type:
arrayshippingGroupsAdditional Properties Allowed: - status
-
Type:
string - taxDate
-
Type:
string - timestamp
-
Type:
string
Nested Schema : items
Type:
object- description
-
Type:
string - errorCode
-
Type:
integer
Nested Schema : items
Type:
object- items
-
Type:
arrayitemsAdditional Properties Allowed: - priceInfo
-
Type:
objectpriceInfoAdditional Properties Allowed:Pricing information, an instance of OrderPriceInfo. - shippingGroupId
-
Type:
stringThe shipping group id. - shippingMethod
-
Type:
objectshippingMethodAdditional Properties Allowed:The shipping method details for the order. - taxPriceInfo
-
Type:
objecttaxPriceInfoAdditional Properties Allowed:The tax pricing details for the order.
Nested Schema : priceInfo
Type:
objectPricing information, an instance of OrderPriceInfo.
- amount
-
Type:
numberThe monetary amount. - amountIsFinal
-
Type:
booleanWhether the amount is final. - currencyCode
-
Type:
stringThe three character currency code for the monetary amounts. - discountAmount
-
Type:
numberThe monetary amount of the discount: rawSubtotal - amount + manualAdjustmentTotal. (read-only) - discounted
-
Type:
booleanWhether the price is discounted. - manualAdjustmentTotal
-
Type:
numberThe monetary total of manual adjustments. - rawSubtotal
-
Type:
numberThe monetary raw subtotal. - shipping
-
Type:
numberThe monetary cost of shipping. - tax
-
Type:
numberMonetary tax amount. - total
-
Type:
numberThe monetary total: amount + shipping + tax. (read-only)
Nested Schema : shippingMethod
Type:
objectThe shipping method details for the order.
- cost
-
Type:
numberThe total cost of shipping. - rate
-
Type:
numberThe effective tax rate - shippingMethodDescription
-
Type:
stringThe shipping method description. - shippingTax
-
Type:
numberThe shipping tax. - tax
-
Type:
numberThe tax amount. - taxable
-
Type:
numberThe amount that is taxable. - taxCode
-
Type:
stringThe tax code for shipping method. - taxDetails
-
Type:
objecttaxDetailsAdditional Properties Allowed: - value
-
Type:
stringThe shipping method applied to the order.
Nested Schema : taxPriceInfo
Type:
objectThe tax pricing details for the order.
- amount
-
Type:
numberThe monetary amount. - cityTax
-
Type:
numberThe monetary amount of city tax. - countryTax
-
Type:
numberThe monetary amount of country tax. - countyTax
-
Type:
numberThe monetary amount of county tax. - districtTax
-
Type:
numberTax amount for the district. - isTaxIncluded
-
Type:
booleanWhether the tax is included or not - miscTax
-
Type:
numberThe amount for miscTax. - stateTax
-
Type:
numberTax amount for the state. - valueAddedTax
-
Type:
numberThe amount for valueAddedTax.
Nested Schema : items
Type:
object- catRefId
-
Type:
stringThe catalog ref id. - discountAmount
-
Type:
numberThe discount amount. - listPrice
-
Type:
numberThe list price. - onSale
-
Type:
numberIs item on sale. - price
-
Type:
numberThe price. - quantity
-
Type:
numberThe quantity. - rate
-
Type:
numberThe tax rate. - rawTotalPrice
-
Type:
numberThe raw total price. - returnedQuantity
-
Type:
numberThe returned quantity. - salePrice
-
Type:
numberThe sale price. - shippingSurchargeValue
-
Type:
numberThe shipping surcharge if any. - stateDetailsAsUser
-
Type:
stringstate details. - status
-
Type:
stringstatus. - tax
-
Type:
numberThe tax. - taxable
-
Type:
numberThe taxable amount. - taxDetails
-
Type:
arraytaxDetailsAdditional Properties Allowed: - unitPrice
-
Type:
numberThe unit price.
Nested Schema : items
Type:
object- jurisType
-
Type:
stringJurisdiction Type like state tax,city tax - rate
-
Type:
numberThe tax rate. - tax
-
Type:
numberThe tax amount. - taxName
-
Type:
stringThe tax name like state, city
Nested Schema : taxDetails
Type:
object- jurisType
-
Type:
stringJurisdiction Type like state tax,city tax - rate
-
Type:
numberThe tax rate. - tax
-
Type:
numberThe tax amount. - taxName
-
Type:
stringThe tax name like state, city