Get job
Read one job with its sections and cost centres.
GET https://cotlet.dev/api/v1/simpro/jobs/{job_id}
read
Returns the customer, site, status, stage and the sections with their cost centres, which add_schedule_entry needs. If the job came from a quote, the quote ID is included. Read only.
Parameters
| Name | Type | Description |
|---|---|---|
| job_id integer required | integer | Job ID from list_jobs. |
Request
curl https://cotlet.dev/api/v1/simpro/jobs/1 \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("simpro", "get_job", {"job_id":1}) const result = await cotlet.call('simpro', 'get_job', {"job_id":1}); cotlet call simpro get_job --data '{"job_id":1}' Example response
{
"job_id": 20871,
"customer": "Harbour Dental",
"site": "12 Pier Rd",
"status": "Pending",
"stage": "Pending",
"converted_from_quote_id": 10442,
"sections": [
{
"section_id": 1,
"cost_centres": [
{
"cost_centre_id": 2,
"name": "Plumbing"
}
]
}
]
}