List service requests

List the services on jobs and quotes by status, job, location or deficiency.

GET https://cotlet.dev/api/v1/servicetrade/service-requests

read

Returns the description, status, service line, location and the deficiency each service addresses. A quote is made from these ids, and an appointment can carry them.

Parameters

Parameters: list_service_requests
NameTypeDescription
status string string One or more of open, in_progress, closed, void, canceled, pending, comma-separated.
job_id integer integer Only services on this job.
location_id integer integer Only services at this location.
deficiency_id integer integer Only services meant to repair this deficiency, from list_deficiencies.
cursor string string Next page cursor from the previous call.

Request

cURL
curl https://cotlet.dev/api/v1/servicetrade/service-requests \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("servicetrade", "list_service_requests")
Node.js
const result = await cotlet.call('servicetrade', 'list_service_requests');
CLI
cotlet call servicetrade list_service_requests

Example response

JSON

{
  "service_requests": [
    {
      "id": 77302,
      "description": "Replace failed pressure switch on fire pump controller",
      "status": "open",
      "service_line": "Fire protection",
      "location": {
        "id": 5120,
        "name": "Harbor Point Mall"
      },
      "deficiency_id": 9031
    }
  ],
  "next_cursor": null
}

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.