Skip to main content
Published: October 06 2011, 2:42:00 PMUpdated: August 20 2022, 2:25:00 AM

Question

Are you running into the following error when attempting to list an item using any of the AddItem family of calls?

  <Errors>
    <ShortMessage>All locations are dropped.</ShortMessage>
    <LongMessage>All locations provided for shipping service "57106" are not allowable for this site.</LongMessage>
    <ErrorCode>17521</ErrorCode>
    <SeverityCode>Error</SeverityCode>
    <ErrorParameters ParamID="0">
      <Value>57106</Value>
    </ErrorParameters>
    <ErrorClassification

Answer

Summary

ShipToLocations is a field which takes a string value.  However, this does not mean that any value is accepted.  To find out what values are accepted in this field, you need to make a GeteBayDetails request specifying ShipToLocations in the DetailName field.  Use the ShippingLocationsDetail.ShippingLocation field in the response as the value to pass into ShipToLocations in AddItem.


Detailed Description

Error 17521 indicates that the ShipToLocation specified in the ShippingServiceOptions or InternationalShippingServiceOptions container has an invalid value. 

To find the appropriate value:

1.  Make the following GeteBayDetails request against the SiteID that you are intending to list the item on.

<?xml version="1.0" encoding="utf-8"?>
<GeteBayDetailsRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <Version>1123</Version>
  <RequesterCredentials>
    <eBayAuthToken>*****</eBayAuthToken>
  </RequesterCredentials>
  <DetailName>ShippingLocationDetails</DetailName>
</GeteBayDetailsRequest>

2.  Parse the value from ShippingLocationsDetail.ShippingLocation

3.  Use this value in ShipToLocations in AddItem/AddFixedPriceItem call.


For More Information:

 

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