Skip to main content
Published: May 10 2006, 3:59:00 PMUpdated: November 28 2020, 1:14:04 PM

How can I specify a theme and layout when listing an item via the API?

To specify the theme and layout for an item listing, you need to set the LayoutID and ThemeID in the ListingDesigner element of the AddItem call. To get the LayoutID and ThemeID, you need to make a call to GetDescriptionTemplates.  Please see the section Using Description Templates in the documentation for more information.  

Here is a sample AddItem request with the LayoutID and ThemeID specified:  

<?xml version="1.0" encoding="utf-8"?>
<
AddItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <
Version>459</Version>
  <
Item>
    <
Country>US</Country>
    <
Currency>USD</Currency>
    <
Description>item description.</Description>
    <
ListingDuration>Days_7</ListingDuration>
    <
Location>San Jose, CA</Location>
    <
PaymentMethods>PaymentSeeDescription</PaymentMethods>
    <
PrimaryCategory>
      <
CategoryID>1463</CategoryID>
    </
PrimaryCategory>
    <
Quantity>1</Quantity>
    <
StartPrice>1.0</StartPrice>
    <
Title>item title</Title>
    <
ListingDesigner>
      <
LayoutID>10001</LayoutID>
      <
ThemeID>345099</ThemeID>
    </
ListingDesigner>
    <
PictureDetails>
      <
PictureURL>http://www.mydomain.com/pict/41007087008080_0.jpg</PictureURL>
    </
PictureDetails>
  </
Item>
  <
RequesterCredentials>
    <
eBayAuthToken>*****</eBayAuthToken>
  </
RequesterCredentials>
</
AddItemRequest>

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