GraphQL
在您使用 Zonos 計算出貨費率但使用其他方式計算稅金來支持您的業務的情況下,您可以使用 createLandedCost mutation。此 mutation 將允許您建立登陸成本,這是訂單建立所需的,而無需 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 計算出貨費率但使用其他方式計算稅金來支持您的業務的情況下,您可以使用
createLandedCostmutation。此 mutation 將允許您建立登陸成本,這是訂單建立所需的,而無需 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
這個頁面有幫助嗎?