DOCS

Create a landed cost - GraphQL

Create a landed cost

Shipment rating에서 landed cost를 생성하는 방법을 알아보세요.

GraphQL

Zonos로 shipment rating을 calculate하지만 business를 지원하기 위해 tax를 calculate하는 다른 수단이 있는 scenario에서는 createLandedCost mutation을 사용할 수 있습니다. 이 mutation은 Zonos가 duty, tax, fee를 calculate하지 않고 order creation에 필요한 landed cost를 생성할 수 있게 합니다.

API examples 

landedCostCreate 사용 시 currencyCodeendUse를 전달해야 합니다. Original shipment rating workflow에서 obtain한 rootIdshipmentRatingId도 전달해야 합니다. Duty, fee, tax list를 optional로 제공할 수 있습니다. 이 detail을 제공할 때 amount field에 사용된 value를 결정하는 데 사용된 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

이 페이지가 도움이 되었나요?