ConnectLandedCost

Version 4.4

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

partnerKey

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

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

Integer

lossAndDamageProtectionFlag

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

String

orderValuationCurrency

Optional Defines the currency that we should associate with the costs passed to the FedEx Cross Border system by the merchant. This configuration setting is applied to all merchant passed costs associated with this order Currency Code List 1

String

requestedCostReturnedCurrency

Optional Defines the currency that the merchant would like to receive the returned landed costs back in. Currency Code List 1

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 from FedEx Cross Border to 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

Integer

ddpAvailable

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

String

landedCostTransactionID

Landed cost transaction identifier

String

orderValuationCurrency

Defines the orderValuationCurrency selected by the merchant

String

orderValuationCurrencyExchangeRate

Return that day's FedEx Cross Border:
  • IF "itemExportHubCountry" = US, then:
    1. [USD] to [orderValuationCurrency] Currency Code
    2. [USD] to [orderValuationCurrency] Currency Code Exchange Rate
  • IF "itemExportHubCountry" = GB, then:
    1. [GBP] to [orderValuationCurrency] Currency Code
    2. [GBP] to [orderValuationCurrency] Currency Code Exchange Rate
  • IF "itemExportHubCountry" = BE, Then:
    1. [EUR] to [orderValuationCurrency] Currency Code
    2. [EUR] to [orderValuationCurrency] Currency Code Exchange Rate

String

requestedCostReturnedCurrency

Defines the requestedCostReturnedCurrency selected by the merchant

String

requestedCostReturnedCurrencyExchangeRate

Return that day's FedEx Cross Border:
  • IF "itemExportHubCountry" = US, then:
    1. [USD] to [orderValuationCurrency] Currency Code
    2. [USD] to [orderValuationCurrency] Currency Code Exchange Rate
  • IF "itemExportHubCountry" = GB, then:
    1. [GBP] to [orderValuationCurrency] Currency Code
    2. [GBP] to [orderValuationCurrency] Currency Code Exchange Rate
  • IF "itemExportHubCountry" = BE, Then:
    1. [EUR] to [orderValuationCurrency] Currency Code
    2. [EUR] to [orderValuationCurrency] Currency Code Exchange Rate