GraphQL
在您使用 Zonos 计算货运评级但有其他方式计算税费以支持您的业务的场景中,您可以使用 createLandedCost 变更。此变更将允许您创建订单创建所需的着陆成本,而无需 Zonos 计算关税、税费和费用。
createLandedCost
使用 landedCostCreate 时,您需要传递 currencyCode 和 endUse。您还需要传递从原始货运评级工作流中获得的 rootId 和 shipmentRatingId。您可以选择性地提供关税、费用和税费列表。提供这些详细信息时,您需要发送用于确定 amount 字段中所用值的 amount 和 formula。
landedCostCreate
currencyCode
endUse
rootId
shipmentRatingId
amount
formula
mutation CreateLandedCost($input: LandedCostCreateInput!) {
landedCostCreate(input: $input) {
id
landedCostGuaranteeCode
taxes {
item {
sku
}
amountSubtotals {
items
taxes
shipping
shipmentRating {
shipmentRatingCartons {
carton {
items {
LandedCostCreateInput
创建着陆成本 - GraphQL
创建着陆成本
了解如何从货运评级创建着陆成本。GraphQL
在您使用 Zonos 计算货运评级但有其他方式计算税费以支持您的业务的场景中,您可以使用
createLandedCost变更。此变更将允许您创建订单创建所需的着陆成本,而无需 Zonos 计算关税、税费和费用。API 示例
使用
landedCostCreate时,您需要传递currencyCode和endUse。您还需要传递从原始货运评级工作流中获得的rootId和shipmentRatingId。您可以选择性地提供关税、费用和税费列表。提供这些详细信息时,您需要发送用于确定amount字段中所用值的amount和formula。mutation CreateLandedCost($input: LandedCostCreateInput!) {landedCostCreate(input: $input) {idlandedCostGuaranteeCodetaxes {amountformulaitem {idskuamount}}amountSubtotals {itemstaxesshipping}shipmentRating {shipmentRatingCartons {carton {items {item {skuamountid}}}}}}}LandedCostCreateInput
landedCostCreate
这个页面有帮助吗?