DOCS

Create a landed cost - GraphQL

Create a landed cost

Learn how to create a landed cost from a shipment rating.

GraphQL

In scenarios where you are using Zonos to calculate shipment ratings but have another means of calculating taxes to support your business, you can use the createLandedCost mutation. This mutation will allow you to create a landed cost that is required for order creation, without Zonos calculating duties, taxes, and fees.

API examples 

When using landedCostCreate, you are required to pass the currencyCode and endUse. You will also be required to pass the rootId and shipmentRatingId that were obtained from the original shipment rating workflow. You can optionally provide a list or lists of duties, fees, and taxes. When providing these details, you are required to send the amount and formula that was used to determine the value used in the amount field.

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

Was this page helpful?