Home
Find the answer to your question
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
<?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 Version | 1267 |