Category Archives: eBay

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

eBay LMS – Job Responses

The followings are responses from ebay LMS job requests:

<?xml version="1.0" encoding="UTF-8"?>
<createUploadJobResponse xmlns="http://www.ebay.com/marketplace/services">
  <ack>Success</ack>
  <version>1.3.0</version>
  <timestamp>2013-07-30T03:59:37.712Z</timestamp>
  <jobId>50002974683</jobId>
  <fileReferenceId>50003232563</fileReferenceId>
  <maxFileSize>15728640</maxFileSize>
</createUploadJobResponse>
<?xml version="1.0" encoding="UTF-8"?>
<uploadFileResponse xmlns="http://www.ebay.com/marketplace/services">
  <ack>Success</ack>
  <version>1.1.0</version>
  <timestamp>2013-07-30T03:59:51.846Z</timestamp>
</uploadFileResponse>
<?xml version="1.0" encoding="UTF-8"?>
<startUploadJobResponse xmlns="http://www.ebay.com/marketplace/services">
  <ack>Success</ack>
  <version>1.3.0</version>
  <timestamp>2013-07-30T04:00:04.981Z</timestamp>
</startUploadJobResponse>
<?xml version="1.0" encoding="UTF-8"?>
<getJobStatusResponse xmlns="http://www.ebay.com/marketplace/services">
  <ack>Success</ack>
  <version>1.3.0</version>
  <timestamp>2013-07-30T04:00:17.873Z</timestamp>
  <jobProfile>
    <jobId>50002974683</jobId>
    <jobType>AddFixedPriceItem</jobType>
    <jobStatus>Scheduled</jobStatus>
    <creationTime>2013-07-30T03:59:37.000Z</creationTime>
    <inputFileReferenceId>50003232563</inputFileReferenceId>
    <startTime>2013-07-30T04:00:04.000Z</startTime>
  </jobProfile>
</getJobStatusResponse>
<?xml version="1.0" encoding="UTF-8"?>
<getJobStatusResponse xmlns="http://www.ebay.com/marketplace/services">
  <ack>Success</ack>
  <version>1.3.0</version>
  <timestamp>2013-07-30T04:00:52.483Z</timestamp>
  <jobProfile>
    <jobId>50002974683</jobId>
    <jobType>AddFixedPriceItem</jobType>
    <jobStatus>InProcess</jobStatus>
    <creationTime>2013-07-30T03:59:37.000Z</creationTime>
    <errorCount>0</errorCount>
    <percentComplete>0.0</percentComplete>
    <inputFileReferenceId>50003232563</inputFileReferenceId>
    <startTime>2013-07-30T04:00:04.000Z</startTime>
  </jobProfile>
</getJobStatusResponse>
<?xml version="1.0" encoding="UTF-8"?>
<getJobStatusResponse xmlns="http://www.ebay.com/marketplace/services">
  <ack>Success</ack>
  <version>1.3.0</version>
  <timestamp>2013-07-30T04:07:03.202Z</timestamp>
  <jobProfile>
    <jobId>50002974683</jobId>
    <jobType>AddFixedPriceItem</jobType>
    <jobStatus>InProcess</jobStatus>
    <creationTime>2013-07-30T03:59:37.000Z</creationTime>
    <errorCount>0</errorCount>
    <percentComplete>95.0</percentComplete>
    <inputFileReferenceId>50003232563</inputFileReferenceId>
    <startTime>2013-07-30T04:00:04.000Z</startTime>
  </jobProfile>
</getJobStatusResponse>
<?xml version="1.0" encoding="UTF-8"?>
<getJobStatusResponse xmlns="http://www.ebay.com/marketplace/services">
  <ack>Success</ack>
  <version>1.3.0</version>
  <timestamp>2013-07-30T04:14:06.823Z</timestamp>
  <jobProfile>
    <jobId>50002974683</jobId>
    <jobType>AddFixedPriceItem</jobType>
    <jobStatus>Completed</jobStatus>
    <creationTime>2013-07-30T03:59:37.000Z</creationTime>
    <completionTime>2013-07-30T04:13:18.000Z</completionTime>
    <errorCount>0</errorCount>
    <percentComplete>100.0</percentComplete>
    <fileReferenceId>50003232573</fileReferenceId>
    <inputFileReferenceId>50003232563</inputFileReferenceId>
    <startTime>2013-07-30T04:00:04.000Z</startTime>
  </jobProfile>
</getJobStatusResponse>
<?xml version="1.0" encoding="UTF-8"?>
<downloadFileResponse xmlns="http://www.ebay.com/marketplace/services">
  <ack>Success</ack>
  <version>1.1.0</version>
  <timestamp>2013-07-30T04:14:50.612Z</timestamp>
  <fileAttachment>
    <Size>0</Size>
    <Data>
      <xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:urn:uuid:E48F27E659A1BA6E151375157703407"/>
    </Data>
  </fileAttachment>
</downloadFileResponse>
<?xml version="1.0" encoding="UTF-8"?>
<abortJobResponse xmlns="http://www.ebay.com/marketplace/services">
  <ack>Failure</ack>
  <errorMessage>
    <error>
      <errorId>21</errorId>
      <domain>Marketplace</domain>
      <severity>Error</severity>
      <category>Application</category>
      <message>The job is already in terminated states such as completed, failed and aborted</message>
      <subdomain>BulkDataExchange</subdomain>
    </error>
  </errorMessage>
  <version>1.3.0</version>
  <timestamp>2013-07-30T04:15:17.778Z</timestamp>
</abortJobResponse>
<?xml version="1.0" encoding="UTF-8"?>
<abortJobResponse xmlns="http://www.ebay.com/marketplace/services">
  <ack>Success</ack>
  <version>1.3.0</version>
  <timestamp>2013-08-19T06:46:05.842Z</timestamp>
</abortJobResponse>