Skip to main content
Published: April 02 2007, 2:20:00 PMUpdated: August 02 2022, 4:20:38 AM

Why am I getting the following error when I try to list an Item with shipping services?


<Errors>

  <ShortMessage>Missing the primary shipping service option.</ShortMessage>

  <LongMessage>Missing the primary shipping service option. Please check API documentation.</LongMessage>

  <ErrorCode>12515</ErrorCode>

  <SeverityCode>Error</SeverityCode>

  <ErrorClassification>RequestError</ErrorClassification>

</Errors>

 


Summary

When you list your shipping services, you need to ensure that you set the shipping service priority correctly.  You can list upto 3 domestic services, starting with priority 1, and you can list upto 3 international services, which again start with 1.


 

Detailed Description

For the shipping services, it is best to think of domestic shipping services as a separate section and international shipping services as another section, which are disjoint and unrelated.  Hence, when you list domestic shipping services, start with the shipping priority of 1, and increment it for each shipping service that you add.  Similarly, for international shipping services, start with the shipping service priority of 1 and increment it for each international shipping service you wish to add. 

Here is a sample AddItem request to list an item on eBay UK:
 

<?xml version="1.0" encoding="utf-8"?>

<AddItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">

  <Version>1267</Version>

  <ErrorLanguage>en_US</ErrorLanguage>

  <WarningLevel>High</WarningLevel>

  <Item>

    <BuyItNowPrice>10.0</BuyItNowPrice>

    <Country>GB</Country>

    <Currency>GBP</Currency>

    <Description>description.</Description>

    <ListingDuration>Days_7</ListingDuration>

    <Location>London</Location>

    <PaymentMethods>PayPal</PaymentMethods>

    <PayPalEmailAddress>test@test.com</PayPalEmailAddress>

    <PrimaryCategory>

      <CategoryID>1463</CategoryID>

    </PrimaryCategory>

    <Quantity>1</Quantity>

    <StartPrice>1.0</StartPrice>

    <ShippingDetails>

      <ShippingServiceOptions>

        <ShippingService>UK_RoyalMailFirstClassStandard</ShippingService>

        <ShippingServiceCost currencyID="GBP">4.99</ShippingServiceCost>

        <ShippingServicePriority>1</ShippingServicePriority>

      </ShippingServiceOptions>

      <ShippingServiceOptions>

        <ShippingService>UK_RoyalMailSecondClassStandard</ShippingService>

        <ShippingServiceCost currencyID="GBP">3.99</ShippingServiceCost>

        <ShippingServicePriority>2</ShippingServicePriority>

      </ShippingServiceOptions>

      <InternationalShippingServiceOption>

        <ShippingService>UK_RoyalMailAirmailInternational</ShippingService>

        <ShippingServiceCost currencyID="GBP">5.00</ShippingServiceCost>

        <ShippingServiceAdditionalCost currencyID="GBP">0</ShippingServiceAdditionalCost>

        <!-- You need to begin the count from 1 for international shipping services -->

        <ShippingServicePriority>1</ShippingServicePriority>

        <ShipToLocation>Worldwide</ShipToLocation>

      </InternationalShippingServiceOption>

      <ShippingType>Flat</ShippingType>

    </ShippingDetails>

    <Title>title</Title>

  </Item>

  <RequesterCredentials>

    <eBayAuthToken>*****</eBayAuthToken>

  </RequesterCredentials>

</AddItemRequest>


 


Version Info

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

API Schema Version1267

 


Additional Resources

 

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