DOCS

建立登陸成本 - GraphQL

建立登陸成本

了解如何從出貨費率建立登陸成本。

GraphQL

在您使用 Zonos 計算出貨費率但使用其他方式計算稅金來支持您的業務的情況下,您可以使用 landedCostCreate mutation。此 mutation 將允許您建立登陸成本,這是訂單建立所需的,而無需 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
Book a demo

Was this page helpful?


在此頁面: