Developers Program

Calculating ShippingFees with .NET SDK

Published: February 02 2005, 4:28:00 PMยทUpdated: July 20 2022, 5:54:16 AM

Products

Question

How can I find the Shipping Fees for an item if it is to be calculated?

Answer

To find the shipping fees for an item, you can make a call to GetItemShipping.

Here is the sample SOAP request:

<?xml version="1.0" encoding="utf-8"?>
<GetItemShippingRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken></eBayAuthToken>
</RequesterCredentials>
<ErrorLanguage>en_US</ErrorLanguage>
<WarningLevel>High</WarningLevel>
<ItemID>XXXXX</ItemID>
<QuantitySold>1</QuantitySold>
<DestinationPostalCode>40404</DestinationPostalCode>
<DestinationCountryCode>US</DestinationCountryCode>
</GetItemShippingRequest>

Here is the response:

<ShippingDetails>
<CalculatedShippingRate>
<OriginatingPostalCode>95125</OriginatingPostalCode>
<PackagingHandlingCosts currencyID="USD">3.0</PackagingHandlingCosts>
<ShippingIrregular>true</ShippingIrregular>
<ShippingPackage>LargeEnvelope</ShippingPackage>
<WeightMajor unit="lbs" measurementSystem="English">0</WeightMajor>
<WeightMinor unit="oz" measurementSystem="English">2</WeightMinor>
</CalculatedShippingRate>
<ShippingRateErrorMessage>No Error</ShippingRateErrorMessage>
<ShippingRateType>OnDemand</ShippingRateType>
<ShippingServiceOptions>
<ShippingService>UPS2ndDay</ShippingService>
<ShippingServiceCost currencyID="USD">26.52</ShippingServiceCost>
<ShippingServicePriority>1</ShippingServicePriority>
<ExpeditedService>false</ExpeditedService>
<ShippingTimeMin>1</ShippingTimeMin>
<ShippingTimeMax>2</ShippingTimeMax>
</ShippingServiceOptions>
<ShippingType>Calculated</ShippingType>
</ShippingDetails>

Version Info

The code example above was based on the versions specified below:

API Schema Version1131
.NET SDK VersionNET SDK 4.0 full release
How well did this answer your question?