ConnectLandedCost

Version 4.5

public static ConnectLandedCost ( Object ConnectLandedCostRequest )

Return: Object ConnectLandedCostResponse

Calculate the total cost (duties, taxes and shipping costs) of a shipment to a specific country.

Parameters

Object ConnectLandedCostRequest Required Input object required for the function Length

String

merchantKey

Required Required Key to access the functions of Connect API 45

String

language

Required Defines the language in which the return error will be shown. Supported Languages 2

String

privateIndividuals

Optional Defines if the calculation is for a private individual or non-private individuals like a business, group or organization. Default Y: private individuals, N: non-private individuals 1

Array

items (Object ProductInfo)

Required Items with their respective descriptions, ready for shipment from the vendor to FedEx Cross Border  

String

shipmentOriginCountry

Required Defines the shipment origin country. Country Code List 2

String

shipmentDestinationAddress1

Optional Defines the receiving address 1 of shipment 250

String

shipmentDestinationAddress2

Optional Defines the receiving address 2 of shipment 250

String

shipmentDestinationCity

Optional Defines the receiving city of shipment 50

String

shipmentDestinationStateOrProvince

Optional Defines the receiving state or province of shipment 50

String

shipmentDestinationZip

Optional Defines the receiving zip code of shipment 50

String

shipmentDestinationCountry

Required Defines the receiving country of shipment. Country Code List 2

Float

domesticShippingCost

Optional Defines the cost of shipment from the company concerned to FedEx Cross Border  

Float

internationalShippingCost

Optional If the merchant is processing the shipment in a Merchant Control order, this defines the cost of shipment  

String

internationalShippingName

Optional If the Merchant is processing the shipment in a Merchant Control order, this defines the name of the shipping service 50

Integer

lossAndDamageProtectionFlag

Optional Defines the inclusion or not of shipment Loss and Damage Protection from FedEx Cross Border to the final customer. Possible Values: 0 = No Loss and Damage Protection, 1 = Loss and Damage Protection 1

Integer

currency

Optional Defines the currency in which the total amount in which it will be returned. 0= U.S. Dollar 1= The currency of the shipping destination country 1

Float

currencyConversionRate

Optional Defines the exchange rate between the currency of the shipping destination and the U.S. Dollar  

Integer

service

Optional Defines the type of delivery, possible values: 0 = Express, 1 = Standard, 2 = Economy 1

Return

Object ConnectLandedCostResponse Object function return

Integer

error

Numerical code error message

String

errorMessage

Text string describing the error message

String

errorMessageDetail

List of Insertion Errors

Array

items (Object LandedProduct)

Collection of LandedProduct indicating that products have been used to calculate the cost of shipping

Float

dutyCost

Total tax payable by the final customer

Float

taxCost

Total shipment Tax cost

Float

shippingCost

Cost of shipping from FedEx Cross Border to the customer

Float

lossAndDamageProtectionCost

Total Loss and Damage Protection to pay for shipping from FedEx Cross Border to customer

String

currencyCode

Currency code of the costs returned by the function

Integer

ddpAvailable

Returns Delivery Duties Paid (DDP) availability for an item: 0 = No, 1 = Yes

String

landedCostTransactionID

Landed cost transaction identifier