Landed Cost Example Request
POST {{base_url}}/api/landedcost/:version/quotes
This HTTP Post request allows customers to provide an importCountryCode, exportCountryCode, and a list of shipmentItems in order for UPS to provide an estimate of applicable duties, VAT, taxes, brokerage fees, and other costs.
Request Body
{"currencyCode"=>"GBP", "transID"=>"325467165", "allowPartialLandedCostResult"=>false, "shipment"=>{"id"=>"ShipmentID83", "importCountryCode"=>"GB", "importProvince"=>"", "shipDate"=>"", "exportCountryCode"=>"US", "incoterms"=>"", "shipmentItems"=>[{"commodityId"=>"1", "grossWeight"=>"", "grossWeightUnit"=>"", "priceEach"=>"125", "hsCode"=>"400932", "quantity"=>24, "UOM"=>"Each", "originCountryCode"=>"GB", "commodityCurrencyCode"=>"GBP", "description"=>""}, {"commodityId"=>"4", "grossWeight"=>"", "grossWeightUnit"=>"", "priceEach"=>"0.5", "hsCode"=>"", "quantity"=>900, "UOM"=>"Each", "originCountryCode"=>"GB", "commodityCurrencyCode"=>"GBP", "description"=>"Cord5mm{PK50Yellow/Red"}], "transModes"=>"", "transportCost"=>"", "shipmentType"=>"Sale"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
transId | null | An identifier unique to the request. Length 32 | |
transactionSrc | string | An identifier of the client/source application that is making the request.Length 512 | |
AccountNumber | null | The account number | |
Content-Type | string |
RESPONSES
status: OK
{"alversion":1,"dpversion":null,"error":null,"perfStats":{"absLayerTime":"152","fulfillTime":"Wed Feb 09 16:20:15.510 -05:00 2022","receiptTime":"Wed Feb 09 16:20:15.358 -05:00 2022"},"shipment":{"brokerageFeeItems":[],"currencyCode":"USD","grandTotal":1064.18,"id":"ShipmentId100","importCountryCode":"CA","shipmentItems":[{"commodityCurrencyCode":"USD","commodityDuty":292.48,"commodityId":"Test1","commodityVAT":0,"hsCode":"3605.00.00.00","isCalculable":true,"totalCommodityDutyandTax":532.09,"totalCommodityTaxesAndFees":239.61},{"commodityCurrencyCode":"USD","commodityDuty":292.48,"commodityId":"Test2","commodityVAT":0,"hsCode":"3605000000","isCalculable":true,"totalCommodityDutyandTax":532.09,"totalCommodityTaxesAndFees":239.61}],"totalBrokerageFees":0,"totalCommodityLevelTaxesAndFees":479.22,"totalDuties":584.96,"totalDutyandTax":1064.18,"totalShipmentLevelTaxesAndFees":0,"totalVAT":0},"transID":"325467165"}