Read Service Job

This endpoint is used to read a service job by its ID. It can be used to poll a long-running service job.

Path Parameters

PropertyTypeDescription
serviceJobIdNumberThe Fusebill generated ID of the service job
Examples
curl -X GET "https://secure.fusebill.com/v1/serviceJobs/{serviceJobId}" \
	-H "Content-Type: application/json" \
	-H "Authorization: Basic {APIKey}"
//path parameter
int serviceJobId = {serviceJobId};
//Setup API key
string apiKey = "{APIKey}";
//Configure URI
WebRequest request = WebRequest.Create("HTTPS://secure.fusebill.com/v1/serviceJobs/" + serviceJobId);
//Add Content type
request.ContentType = "application/json";
//Add Api key authorization
request.Headers.Add(HttpRequestHeader.Authorization, "Basic " + apiKey);
//Set request method
request.Method = "GET";
//Perform the request
var httpResponse = (HttpWebResponse)request.GetResponse();
//Record the response from our request
var result = "";
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
  result = streamReader.ReadToEnd();
}
#Import library Requests
import requests
#Pass in a dictionary to the Headers parameter
headers = {'Authorization' : 'Basic {APIKey}', 'Content-Type' : 'application/json'}
#Pass in your URI and Headers
r = requests.get('https://secure.fusebill.com/v1/serviceJobs/{serviceJobId}', headers=headers)
print(r.content)
Response
{
    "accountId": 12345,
    "type": "SubscriptionProductBulkPriceChange",
    "status": "NotStarted",
    "createdTimestamp": "2020-06-23T10:50:42",
    "completedTimestamp": null,
    "additionalData": "{\"planProductIds\":[61180,61181,61182],\"createCharges\":false}",
    "serviceTasks": [],
    "totalCount": 19,
    "totalSuccessful": null,
    "totalFailed": null,
    "percentComplete": null,
    "isOffline": false,
    "id": 2607617,
    "uri": null
}
{
    "ErrorId": 0,
    "HttpStatusCode": 404,
    "Errors": [
        {
            "Key": "Api Error",
            "Value": "ServiceJob with id 260761 not found."
        }
    ]
}
Language
Authorization