API 示例
使用 landedCostCreate 时,您需要传递 currencyCode 和 endUse。您还需要传递从原始货运评级工作流中获得的 rootId 和 shipmentRatingId。您可以选择性地提供关税、费用和税费列表。提供这些详细信息时,您需要发送用于确定 amount 字段中所用值的 amount 和 formula。
1
mutation CreateLandedCost($input: LandedCostCreateInput!) {2
landedCostCreate(input: $input) {3
id4
landedCostGuaranteeCode5
taxes {6
amount7
formula8
item {9
id10
sku11
amount12
}13
}14
amountSubtotals {15
items16
taxes17
shipping18
}19
shipmentRating {20
shipmentRatingCartons {21
carton {22
items {23
item {24
sku25
amount26
id27
}28
}29
}30
}31
}32
}33
}GraphQL API ReferenceTypes, inputs, and operations used in this guide
INPUTS
MUTATIONS
创建着陆成本
了解如何从货运评级创建着陆成本。GraphQL
在您使用 Zonos 计算货运评级但有其他方式计算税费以支持您的业务的场景中,您可以使用
createLandedCost变更。此变更将允许您创建订单创建所需的着陆成本,而无需 Zonos 计算关税、税费和费用。