DOCS

创建着陆成本 - GraphQL

创建着陆成本

了解如何从货运评级创建着陆成本。

GraphQL

在您使用 Zonos 计算货运评级但有其他方式计算税费以支持您的业务的场景中,您可以使用 createLandedCost 变更。此变更将允许您创建订单创建所需的着陆成本,而无需 Zonos 计算关税、税费和费用。

API 示例 

使用 landedCostCreate 时,您需要传递 currencyCodeendUse。您还需要传递从原始货运评级工作流中获得的 rootIdshipmentRatingId。您可以选择性地提供关税、费用和税费列表。提供这些详细信息时,您需要发送用于确定 amount 字段中所用值的 amountformula

1mutation CreateLandedCost($input: LandedCostCreateInput!) {
2 landedCostCreate(input: $input) {
3 id
4 landedCostGuaranteeCode
5 taxes {
6 amount
7 formula
8 item {
9 id
10 sku
11 amount
12 }
13 }
14 amountSubtotals {
15 items
16 taxes
17 shipping
18 }
19 shipmentRating {
20 shipmentRatingCartons {
21 carton {
22 items {
23 item {
24 sku
25 amount
26 id
27 }
28 }
29 }
30 }
31 }
32 }
33}
GraphQL API ReferenceTypes, inputs, and operations used in this guide
预约演示

这个页面有帮助吗?


在此页面: