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

Parameters: get_job
NameTypeDescription
job_id integer required integer Job ID from list_jobs.

Request

cURL
curl https://cotlet.dev/api/v1/simpro/jobs/1 \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("simpro", "get_job", {"job_id":1})
Node.js
const result = await cotlet.call('simpro', 'get_job', {"job_id":1});
CLI
cotlet call simpro get_job --data '{"job_id":1}'

Example response

JSON

{
  "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"
        }
      ]
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.