Skip to main content
Published: May 27 2009, 12:17:00 PMUpdated: November 28 2020, 7:36:51 PM

How can I find out if a job that I submitted via the LMS API has completed?

There are two ways to find if your job has completed.

  1. Poll/Pull method - Make a call to getJobStatus. You may need to make a call to getJobStatus repeatedly until the job status comes back as Completed.


     

    getJobStatus Sample Response

     <?xml version='1.0' encoding='UTF-8'?><getJobStatusResponse xmlns="http://www.ebay.com/marketplace/services"><ack>Success</ack><version>1.0.0</version><timestamp>2009-05-27T20:29:58.473Z</timestamp><jobProfile><jobId>5000084257</jobId><jobType>ActiveInventoryReport</jobType><jobStatus>Completed</jobStatus><creationTime>2009-05-27T19:00:46.000Z</creationTime><completionTime>2009-05-27T19:02:02.000Z</completionTime><errorCount>0</errorCount><percentComplete>100.0</percentComplete><fileReferenceId>5000007797</fileReferenceId></jobProfile></getJobStatusResponse>

     

  2. Notification/Push method - Subscribe to the BulkDataExchangeJobCompleted notification event. As you can see from the example below the payload consists of the response from getJobStatus call.

     

    Notification Sample Payload


    <?xml version='1.0' encoding='UTF-8'?><getJobStatusResponse xmlns="http://www.ebay.com/marketplace/services"><ack>Success</ack><version>1.2.0</version><timestamp>2009-05-27T19:02:02.070Z</timestamp><jobProfile><jobId>5000084257</jobId><jobType>ActiveInventoryReport</jobType><jobStatus>Completed</jobStatus><creationTime>2009-05-27T19:00:46.000Z</creationTime><completionTime>2009-05-27T19:02:01.000Z</completionTime><errorCount>0</errorCount><percentComplete>100.0</percentComplete><fileReferenceId>5000007797</fileReferenceId></jobProfile></getJobStatusResponse>

     

     

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