Skip to main content
Published: February 14 2006, 11:59:00 AMUpdated: November 28 2020, 1:56:11 PM

Why are the package dimensions not returned in any of the GetItem calls even if I specified them in my AddItem request?

Package dimensions are currently required only if :

  • The ShippingType is Calculated
  • The Shipping Service is one of the UPS Air Services (UPS 3 Day Select, UPS 2nd Day Air, UPS Next Day Air Saver, UPS Next Day Air)
  • Package Size is Large, Very Large or Extra Large  (See the website for Package Sizes)

It is only when you have these three conditions satisfied in the AddItem call, the package dimensions are applicable and returned in the Get calls like GetItem, GetItemTransactions or GetItemShipping.  If the package dimensions are not applicable, they are neither used nor returned.  Here is a sample AddItem call which will return the package dimensions in the response of the GetItemShipping call for that Item.

AddItem Request:

<?xml version="1.0" encoding="utf-8"?>
<
AddItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <DetailLevel>ItemReturnDescription</DetailLevel>
  <Version>447</Version>
  <Item>
    <Country>US</Country>
    <Currency>USD</Currency>
    <Description>Large Pack Item</Description>
    <ListingDuration>Days_7</ListingDuration>
    <Location>San Jose, CA</Location>
    <
PaymentMethods>PaymentSeeDescription</PaymentMethods>
    <PrimaryCategory>
      <CategoryID>357</CategoryID>
    </PrimaryCategory>
    <Quantity>1</Quantity>
    <StartPrice>1.0</StartPrice>
    <Title>Large Pack Item</Title>
    <ShippingDetails>
      <ShippingType>Calculated</ShippingType>
      <CalculatedShippingRate>
        <PackageDepth>30</PackageDepth>
        <PackageLength>10</PackageLength>
        <PackageWidth>20</PackageWidth>
        <ShippingPackage>USPSLargePack</ShippingPackage>
        <WeightMajor>2</WeightMajor>
        <WeightMinor>15</WeightMinor>
        <OriginatingPostalCode>95125</OriginatingPostalCode>
      </CalculatedShippingRate>
      <ShippingServiceOptions>
        <ShippingService>UPS2ndDay</ShippingService>
        <ShippingServicePriority>1</ShippingServicePriority>
      </ShippingServiceOptions>
    </ShippingDetails>
  </Item>
  <
RequesterCredentials>
    <
eBayAuthToken>a</eBayAuthToken>
  </
RequesterCredentials>
</
AddItemRequest>

Here is the GetItemShipping request:

<?xml version="1.0" encoding="utf-8"?>
<
GetItemShippingRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <
Version>447</Version>
  <
ItemID>4504941364</ItemID>
    <
QuantitySold>1</QuantitySold>
    <
DestinationPostalCode>95124</DestinationPostalCode>
    <
DestinationCountryCode>US</DestinationCountryCode>
    <
RequesterCredentials>
      <
eBayAuthToken>a</eBayAuthToken>
    </
RequesterCredentials>
</
GetItemShippingRequest>

In the response, you get back the package dimensions:

<?xml version="1.0" encoding="utf-8"?>
<
GetItemShippingResponse xmlns="urn:ebay:apis:eBLBaseComponents">
  <
Timestamp>2006-02-14T18:45:48.036Z</Timestamp>
  <
Ack>Success</Ack>
  <
Version>447</Version>
  <
Build>e447_core_Bundled_2399642_R1</Build>
  <
ShippingDetails>
    <
CalculatedShippingRate>
      <
OriginatingPostalCode>95125</OriginatingPostalCode>
      <
PackageDepth unit="in">30</PackageDepth>
      <
PackageLength unit="in">10</PackageLength>
      <
PackageWidth unit="in">20</PackageWidth>
      <
PackagingHandlingCosts currencyID="USD">0.0</PackagingHandlingCosts>
      <
ShippingIrregular>false</ShippingIrregular>
      <
ShippingPackage>USPSLargePack</ShippingPackage>
      <
WeightMajor unit="lbs">2</WeightMajor>
      <
WeightMinor unit="oz">15</WeightMinor>
    </
CalculatedShippingRate>
    <
ShippingRateErrorMessage>No Error</ShippingRateErrorMessage>
    <
ShippingRateType>OnDemand</ShippingRateType>
    <
ShippingServiceOptions>
      <
ShippingInsuranceCost currencyID="USD">0.0</ShippingInsuranceCost>
      <
ShippingService>UPS2ndDay</ShippingService>
      <
ShippingServiceCost currencyID="USD">31.73</ShippingServiceCost>
      <
ShippingServicePriority>1</ShippingServicePriority>
    </
ShippingServiceOptions>
    <
ShippingType>Calculated</ShippingType>
  </
ShippingDetails>
</
GetItemShippingResponse>

How well did this answer your question?
Answers others found helpful