[GET] - Subscription Job Status

  • Updated

Use this end point to get the status of subscription job submitted.

Endpoint 

GET: https://api.insideview.com/api/v1/subscription/job/{{jobId}}

This job ID is generated once create job request is submitted.

Request

HTTP Headers

Header Name Type Required Description
accessToken String Yes Valid access token.
See Authentication and Authorization Overview for more details.
Accept String No Selects the response's content type.
Valid values are application/json and application/xml (default).  

URI Parameters

Parameter Name Type Required Description
jobId String Yes Job ID

 

Response for Fetching a Job Status

HTTP 200

{
     "jobId":"u259755kvimbu9lo3oq1",
     "subscriptionId":"3n6ste1l43npouqjb5o",
     "status":"finished",
     "totalProcessed":100,
     "type":"notificationSubscriptionUpdate"
     "subscriptionType": "companynews"
  }

application/xml Example

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<BulkNotificationJobStatus>
    <jobId>e85hoj06dkbcn2dji7fn</jobId>
    <status>finished</status>
    <subscriptionId>6ki389k91aqj40tdeqhs</subscriptionId>
    <subscriptionType>companynews</subscriptionType>
    <totalProcessed>2</totalProcessed>
    <type>notificationSubscriptionUpdate</type>
</BulkNotificationJobStatus>

HTTP 401

Unauthorized Error - Cannot use API's without setting a valid accessToken in header.

HTTP 405

Method Not Allowed - Your are not allowed to access this API.

HTTP 404

  {
     "errorType":"BULK_JOB_NOT_FOUND",
     "status":404,
     "message":"Job tiqtpq36k18klj6jj doesnt exist.",
     "diagnosticCode":"a0tmt6ael2ncja5s4eqs",
     "errorNumber":"404-603"
  }