GraphQL
在需要使用 Zonos 計算運輸評級,但透過其他方式計算稅款以支持您業務的情況下,您可以使用 createLandedCost 變異。此變異可讓您建立訂單建立所需的登陸成本,而無需 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 計算運輸評級,但透過其他方式計算稅款以支持您業務的情況下,您可以使用
createLandedCost變異。此變異可讓您建立訂單建立所需的登陸成本,而無需 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
這個頁面有幫助嗎?