Daily Archives: August 22, 2013

Request and Response XML for EPS Image upload using eBay LMS

Images can be uploaded to eBay using “UploadSiteHostedPictures” jobType.

Sample Request XML:

<?xml version="1.0" encoding="UTF-8"?>
<BulkDataExchangeRequests xmlns="urn:ebay:apis:eBLBaseComponents">
	<Header>
		<Version>831</Version>
		<SiteID>100</SiteID>
	</Header>
	<UploadSiteHostedPicturesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
		<ErrorLanguage>en_US</ErrorLanguage>
		<Version>831</Version>
		<WarningLevel>High</WarningLevel>
		<ExternalPictureURL>http://lorempixel.com/500/400/sports/Rafiqul%20Islam/</ExternalPictureURL>
		<MessageID>SKU10000</MessageID>
	</UploadSiteHostedPicturesRequest>
</BulkDataExchangeRequests>

Here I have uploaded single image. Repeat the block “UploadSiteHostedPicturesRequest” for multiple image upload. You will have each bolck’s status individually using “MessageID” TAG.

Here is corresponding Response XML:

<?xml version="1.0" encoding="utf-8"?>
<BulkDataExchangeResponses xmlns="urn:ebay:apis:eBLBaseComponents">
<UploadSiteHostedPicturesResponse xmlns="urn:ebay:apis:eBLBaseComponents">
   <Timestamp>2013-08-22T05:02:56.805Z</Timestamp>
   <Ack>Warning</Ack>
   <CorrelationID>SKU10000</CorrelationID>
   <Errors>
    <ShortMessage>Dimensions of the picture you uploaded are smaller than recommended.</ShortMessage>
    <LongMessage>To reduce possible issues with picture display quality, eBay recommends that pictures you upload are 1000 pixels or larger on the longest side.</LongMessage>
    <ErrorCode>21916790</ErrorCode>
    <SeverityCode>Warning</SeverityCode>
    <ErrorParameters ParamID="0">
     <Value>1000</Value>
    </ErrorParameters>
    <ErrorClassification>RequestError</ErrorClassification>
   </Errors>
   <Errors>
    <ShortMessage>Quality value of the JPEG format picture you uploaded is lower than recommended.</ShortMessage>
    <LongMessage>To reduce possible issues with picture display quality, eBay recommends that pictures you upload have a JPEG quality value of 90 or greater.</LongMessage>
    <ErrorCode>21916791</ErrorCode>
    <SeverityCode>Warning</SeverityCode>
    <ErrorParameters ParamID="0">
     <Value>90</Value>
    </ErrorParameters>
    <ErrorClassification>RequestError</ErrorClassification>
   </Errors>
   <Version>837</Version>
   <Build>E837_CORE_MSA_16303079_R1</Build>
   <PictureSystemVersion>2</PictureSystemVersion>
   <SiteHostedPictureDetails>
    <PictureSet>Standard</PictureSet>
    <PictureFormat>JPG</PictureFormat>
    <FullURL>http://i.ebayimg.sandbox.ebay.com/00/s/NDAwWDUwMA==/$(KGrHqZHJEcFE1ey6gWEBSFZu!M!z!~~60_1.JPG?set_id=8800005007</FullURL>
    <BaseURL>http://i.ebayimg.sandbox.ebay.com/00/s/NDAwWDUwMA==/$(KGrHqZHJEcFE1ey6gWEBSFZu!M!z!~~60_</BaseURL>
    <PictureSetMember>
     <MemberURL>http://i.ebayimg.sandbox.ebay.com/00/s/NDAwWDUwMA==/$(KGrHqZHJEcFE1ey6gWEBSFZu!M!z!~~60_0.JPG</MemberURL>
     <PictureHeight>76</PictureHeight>
     <PictureWidth>96</PictureWidth>
    </PictureSetMember>
    <PictureSetMember>
     <MemberURL>http://i.ebayimg.sandbox.ebay.com/00/s/NDAwWDUwMA==/$(KGrHqZHJEcFE1ey6gWEBSFZu!M!z!~~60_1.JPG</MemberURL>
     <PictureHeight>320</PictureHeight>
     <PictureWidth>400</PictureWidth>
    </PictureSetMember>
    <PictureSetMember>
     <MemberURL>http://i.ebayimg.sandbox.ebay.com/00/s/NDAwWDUwMA==/$(KGrHqZHJEcFE1ey6gWEBSFZu!M!z!~~60_2.JPG</MemberURL>
     <PictureHeight>160</PictureHeight>
     <PictureWidth>200</PictureWidth>
    </PictureSetMember>
    <PictureSetMember>
     <MemberURL>http://i.ebayimg.sandbox.ebay.com/00/s/NDAwWDUwMA==/$(KGrHqZHJEcFE1ey6gWEBSFZu!M!z!~~60_12.JPG</MemberURL>
     <PictureHeight>400</PictureHeight>
     <PictureWidth>500</PictureWidth>
    </PictureSetMember>
    <PictureSetMember>
     <MemberURL>http://i.ebayimg.sandbox.ebay.com/00/s/NDAwWDUwMA==/$(KGrHqZHJEcFE1ey6gWEBSFZu!M!z!~~60_14.JPG</MemberURL>
     <PictureHeight>51</PictureHeight>
     <PictureWidth>64</PictureWidth>
    </PictureSetMember>
    <PictureSetMember>
     <MemberURL>http://i.ebayimg.sandbox.ebay.com/00/s/NDAwWDUwMA==/$(KGrHqZHJEcFE1ey6gWEBSFZu!M!z!~~60_35.JPG</MemberURL>
     <PictureHeight>240</PictureHeight>
     <PictureWidth>300</PictureWidth>
    </PictureSetMember>
    <PictureSetMember>
     <MemberURL>http://i.ebayimg.sandbox.ebay.com/00/s/NDAwWDUwMA==/$(KGrHqZHJEcFE1ey6gWEBSFZu!M!z!~~60_39.JPG</MemberURL>
     <PictureHeight>25</PictureHeight>
     <PictureWidth>32</PictureWidth>
    </PictureSetMember>
    <ExternalPictureURL>http://lorempixel.com/500/400/sports/Rafiqul%20Islam/</ExternalPictureURL>
    <UseByDate>2013-10-21T05:02:53.289Z</UseByDate>
   </SiteHostedPictureDetails>
  </UploadSiteHostedPicturesResponse>
</BulkDataExchangeResponses>

Ref: 
http://pages.ebay.com/help/sell/pictures.html

Advertisements