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.
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.
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
createLandedCostmutation. 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 thecurrencyCodeandendUse. You will also be required to pass therootIdandshipmentRatingIdthat 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 theamountandformulathat was used to determine the value used in theamountfield.mutation CreateLandedCost($input: LandedCostCreateInput!) {landedCostCreate(input: $input) {idlandedCostGuaranteeCodetaxes {amountformulaitem {idskuamount}}amountSubtotals {itemstaxesshipping}shipmentRating {shipmentRatingCartons {carton {items {item {skuamountid}}}}}}}LandedCostCreateInput
landedCostCreate
Was this page helpful?