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