DOCS

Landed Cost を作成 - GraphQL

Landed Cost を作成

配送レートから Landed Cost を作成する方法を学びます。

GraphQL

Zonos で配送レートを計算し、業務を支援する税計算を別手段で行うシナリオでは、createLandedCost ミューテーションを使用できます。このミューテーションにより、Zonos が関税、税、手数料を計算せずに、注文作成に必要な Landed Cost を作成できます。

API の例 

landedCostCreate 使用時は currencyCodeendUse の渡しが必須です。また、元の shipment rating ワークフローで取得した 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

このページは役に立ちましたか?


このページでは: