Home
Find the answer to your question
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.
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> |
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
|