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.
1
mutation CreateLandedCost($input: LandedCostCreateInput!) {2
landedCostCreate(input: $input) {3
id4
landedCostGuaranteeCode5
taxes {6
amount7
formula8
item {9
id10
sku11
amount12
}13
}14
amountSubtotals {15
items16
taxes17
shipping18
}19
shipmentRating {20
shipmentRatingCartons {21
carton {22
items {23
item {24
sku25
amount26
id27
}28
}29
}30
}31
}32
}33
}GraphQL API ReferenceTypes, inputs, and operations used in this guide
INPUTS
MUTATIONS
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
createLandedCostmutation. This mutation will allow you to create a landed cost that is required for order creation, without Zonos calculating duties, taxes, and fees.