- Authentication
- Rates
- Shipments
- Tracking
- Classifications
- Landed Cost
- Webhooks
- Invoices
Get Landed Cost
POST
/LandedCost
LandedCost
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
Reference
string
required
Currency
string
required
WeightUnit
string
required
Pieces
array[object (Piece) {12}]
required
Quantity
number
required
Weight
number
required
Length
number
optional
Default:
1
Width
number
optional
Default:
1
Height
number
optional
Default:
1
SalePrice
number
required
HSCode
string
required
OriginCountryCode
string
optional
Description
string
required
SKU
string
optional
Material
string
optional
Category
array[string]
optional
ShipToAddress
object (Address)
required
Name
string
required
AttentionName
string
required
AddressLine1
string
required
AddressLine2
string
optional
AddressLine3
string
optional
City
string
required
State
string
optional
Country
string
required
Zip
string
optional
Phone
string
required
Email
string
required
ShipFromAddress
object (Address)
required
ShippingCost
number
optional
RateHashKey
string
optional
Example
{
"Reference": "test-create-landed-cost-001",
"Currency": "USD",
"WeightUnit": "LB",
"ShippingCost": 100.00,
"Pieces": [
{
"Quantity": 1,
"Weight": 2,
"SalePrice": 250,
"HSCode": "610910",
"OriginCountryCode": "US",
"Description": "T Shirt",
"Category": [
"merchandise"
],
"SKU": "1234567890"
}
],
"ShipFromAddress": {
"Name": "FC Landed Cost",
"AttentionName": "",
"AddressLine1": "1562 Washington St",
"AddressLine2": "",
"AddressLine3": "",
"City": "San Francisco",
"State": "CA",
"Country": "US",
"Zip": "94109",
"Phone": "1111111111",
"Email": "test@test.com"
},
"ShipToAddress": {
"Name": "FC Landed Cost",
"AttentionName": "FC Rates",
"AddressLine1": "49 Montcalm Ave",
"AddressLine2": "",
"AddressLine3": "",
"City": "York",
"State": "ON",
"Country": "CA",
"Zip": "M6E 4N8",
"Phone": "1111111111",
"Email": "test@test.com"
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://partnerapi.flavorcloud.com/LandedCost' \
--header 'Content-Type: application/json' \
--data-raw '{
"Reference": "test-create-landed-cost-001",
"Currency": "USD",
"WeightUnit": "LB",
"ShippingCost": 100.00,
"Pieces": [
{
"Quantity": 1,
"Weight": 2,
"SalePrice": 250,
"HSCode": "610910",
"OriginCountryCode": "US",
"Description": "T Shirt",
"Category": [
"merchandise"
],
"SKU": "1234567890"
}
],
"ShipFromAddress": {
"Name": "FC Landed Cost",
"AttentionName": "",
"AddressLine1": "1562 Washington St",
"AddressLine2": "",
"AddressLine3": "",
"City": "San Francisco",
"State": "CA",
"Country": "US",
"Zip": "94109",
"Phone": "1111111111",
"Email": "test@test.com"
},
"ShipToAddress": {
"Name": "FC Landed Cost",
"AttentionName": "FC Rates",
"AddressLine1": "49 Montcalm Ave",
"AddressLine2": "",
"AddressLine3": "",
"City": "York",
"State": "ON",
"Country": "CA",
"Zip": "M6E 4N8",
"Phone": "1111111111",
"Email": "test@test.com"
}
}'
Responses
🟢200Success
application/json
Body
LandedCostID
string
required
Reference
string
required
Currency
string
required
HashKey
string
required
Duty
string
required
ActualDuty
string
required
SalesTax
string
required
ActualSalesTax
string
required
AIT
string
required
ActualAIT
string
required
LandedCost
string
required
ActualLandedCost
string
required
Pieces
object
optional
HScode
string
required
HSLong
string
required
Example
{
"Duty": 62.5,
"ActualDuty": 62.5,
"SalesTax": 40.63,
"ActualSalesTax": 40.63,
"AIT": 20.63,
"ActualAIT": 20.63,
"LandedCost": 123.76,
"ActualLandedCost": 123.76,
"HashKey": "bed9e1d9-3ca0-4066-87ad-4c8add22f39d",
"LandedCostID": 22668174,
"Reference": "test-create-landed-cost-001",
"Currency": "USD",
"Pieces": [
{
"HSCode": "610910",
"HSLong": "6109100019"
}
],
"RootRequestId": "7e46c133-46b2-45c6-a7a9-1a50fa6a09c2"
}
🟠401Authentication Error
🟠422Validation Error
🔴500Error Response
Modified at 2025-06-30 15:29:49