curl --request GET \
--url https://api.useopenwrench.com/api/external/v1/supplier/work_order/work_orders/count_by \
--header 'OW-KEY: <api-key>' \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.useopenwrench.com/api/external/v1/supplier/work_order/work_orders/count_by"
headers = {
"X-API-KEY": "<api-key>",
"OW-KEY": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>', 'OW-KEY': '<api-key>'}};
fetch('https://api.useopenwrench.com/api/external/v1/supplier/work_order/work_orders/count_by', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.useopenwrench.com/api/external/v1/supplier/work_order/work_orders/count_by",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"OW-KEY: <api-key>",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.useopenwrench.com/api/external/v1/supplier/work_order/work_orders/count_by"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("OW-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.useopenwrench.com/api/external/v1/supplier/work_order/work_orders/count_by")
.header("X-API-KEY", "<api-key>")
.header("OW-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.useopenwrench.com/api/external/v1/supplier/work_order/work_orders/count_by")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
request["OW-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"type": "<string>",
"data": 123,
"status": "ok"
}{
"message": "<string>",
"type": "<string>",
"status": "error",
"traceId": "<string>"
}{
"message": "<string>",
"type": "<string>",
"status": "error",
"traceId": "<string>"
}{
"message": "<string>",
"type": "<string>",
"status": "error",
"traceId": "<string>"
}Count work orders
Counts work orders visible to the supplier key. Accepts the same filters as the list endpoint (listed as parameters below) and runs the same search-index query, so the count always agrees with the list results, including the same ignored unsupported parameters and the brief lag before a just-created work order is counted. Tenant-security filters restricting results to the API key’s supplier facility/company are always applied server-side and cannot be overridden.
curl --request GET \
--url https://api.useopenwrench.com/api/external/v1/supplier/work_order/work_orders/count_by \
--header 'OW-KEY: <api-key>' \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.useopenwrench.com/api/external/v1/supplier/work_order/work_orders/count_by"
headers = {
"X-API-KEY": "<api-key>",
"OW-KEY": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>', 'OW-KEY': '<api-key>'}};
fetch('https://api.useopenwrench.com/api/external/v1/supplier/work_order/work_orders/count_by', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.useopenwrench.com/api/external/v1/supplier/work_order/work_orders/count_by",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"OW-KEY: <api-key>",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.useopenwrench.com/api/external/v1/supplier/work_order/work_orders/count_by"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("OW-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.useopenwrench.com/api/external/v1/supplier/work_order/work_orders/count_by")
.header("X-API-KEY", "<api-key>")
.header("OW-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.useopenwrench.com/api/external/v1/supplier/work_order/work_orders/count_by")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
request["OW-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"type": "<string>",
"data": 123,
"status": "ok"
}{
"message": "<string>",
"type": "<string>",
"status": "error",
"traceId": "<string>"
}{
"message": "<string>",
"type": "<string>",
"status": "error",
"traceId": "<string>"
}{
"message": "<string>",
"type": "<string>",
"status": "error",
"traceId": "<string>"
}Autorizaciones
Parámetros de consulta
Full-text search. Matches words (with prefix and stem matching) across the title, description, location name, notes, service call check-in/check-out notes, problem type name, and reference numbers (work order number, PO number, asset serial number). Wrap the value in double quotes to require the exact phrase.
The detailed workflow status, for example statuses=PendingConfirmationByServiceProvider to find work waiting for you to accept. Values are listed in the status model. This is the work order's own status, even on work sub-contracted to you. Third-party suppliers never see PendingApproval work orders. One value. To match several, use the plural key.
The detailed workflow status, for example statuses=PendingConfirmationByServiceProvider to find work waiting for you to accept. Values are listed in the status model. This is the work order's own status, even on work sub-contracted to you. Third-party suppliers never see PendingApproval work orders. Comma-separated list; matches any value listed.
The detailed workflow status, for example statuses=PendingConfirmationByServiceProvider to find work waiting for you to accept. Values are listed in the status model. This is the work order's own status, even on work sub-contracted to you. Third-party suppliers never see PendingApproval work orders. Comma-separated list; excludes every value listed.
true returns work still in progress (display status Pending, Open, InProgress, or OnHold). false returns closed work (Completed or Cancelled). Deferred work orders match neither value. Archived work orders are included either way; add hasSupplierArchived=false to leave them out.
true, false Work at these locations. Get location ids from GET /v1/supplier/location/locations. One value. To match several, use the plural key.
Work at these locations. Get location ids from GET /v1/supplier/location/locations. Comma-separated list; matches any value listed.
Work on these assets, whether as the main asset or a sub-asset. Get asset ids from GET /v1/supplier/asset/assets. One value. To match several, use the plural key.
Work on these assets, whether as the main asset or a sub-asset. Get asset ids from GET /v1/supplier/asset/assets. Comma-separated list; matches any value listed.
Work of these problem types. Get ids from GET /v1/supplier/work_order/problem_types. One value. To match several, use the plural key.
Work of these problem types. Get ids from GET /v1/supplier/work_order/problem_types. Comma-separated list; matches any value listed.
Work carrying at least one of these labels. Get label ids from the label catalog. Comma-separated list; matches any value listed.
Earliest creation time to include. Format MM/dd/yyyy HH:mm:ss, for example 08/01/2026 00:00:00: a local wall-clock time read in timezone, or UTC when timezone is omitted. Don't include an offset in the value: it is ignored. The bound is inclusive. Send either end on its own for an open-ended range. A non-empty value that doesn't parse, such as an ISO 8601 value or a date without a time, is rejected with 400. An empty value is read as 1 January 1970.
Latest creation time to include. Format MM/dd/yyyy HH:mm:ss, for example 08/01/2026 00:00:00: a local wall-clock time read in timezone, or UTC when timezone is omitted. Don't include an offset in the value: it is ignored. The bound is inclusive and exact, so send 23:59:59 to include the whole end day. Send either end on its own for an open-ended range. A non-empty value that doesn't parse, such as an ISO 8601 value or a date without a time, is rejected with 400. An empty value is read as 1 January 1970.
Earliest completion time to include. Format MM/dd/yyyy HH:mm:ss, for example 08/01/2026 00:00:00: a local wall-clock time read in timezone, or UTC when timezone is omitted. Don't include an offset in the value: it is ignored. The bound is inclusive. Send either end on its own for an open-ended range. A non-empty value that doesn't parse, such as an ISO 8601 value or a date without a time, is rejected with 400. An empty value is read as 1 January 1970.
Latest completion time to include. Format MM/dd/yyyy HH:mm:ss, for example 08/01/2026 00:00:00: a local wall-clock time read in timezone, or UTC when timezone is omitted. Don't include an offset in the value: it is ignored. The bound is inclusive and exact, so send 23:59:59 to include the whole end day. Send either end on its own for an open-ended range. A non-empty value that doesn't parse, such as an ISO 8601 value or a date without a time, is rejected with 400. An empty value is read as 1 January 1970.
Earliest scheduled time of the most recent visit to include. Format MM/dd/yyyy HH:mm:ss, for example 08/01/2026 00:00:00: a local wall-clock time read in timezone, or UTC when timezone is omitted. Don't include an offset in the value: it is ignored. The bound is inclusive. Send either end on its own for an open-ended range. A non-empty value that doesn't parse, such as an ISO 8601 value or a date without a time, is rejected with 400. An empty value is read as 1 January 1970.
Latest scheduled time of the most recent visit to include. Format MM/dd/yyyy HH:mm:ss, for example 08/01/2026 00:00:00: a local wall-clock time read in timezone, or UTC when timezone is omitted. Don't include an offset in the value: it is ignored. The bound is inclusive and exact, so send 23:59:59 to include the whole end day. Send either end on its own for an open-ended range. A non-empty value that doesn't parse, such as an ISO 8601 value or a date without a time, is rejected with 400. An empty value is read as 1 January 1970.
Work from one client. Get buyer company ids from GET /v1/supplier/buyer_company/buyer_companies. Has no effect for internal service teams, which only ever see their own company's work. One value.
Optional IANA time zone name, such as America/Chicago or UTC, that this route's date filters are read in. Each date filter value is a local wall-clock time in this zone. When omitted, date filters are read in UTC. Names are case-sensitive. Fixed offsets (-05:00, GMT-5, Z, Etc/GMT+5), abbreviations (CST), and unknown names are rejected with 400. On a daylight saving change day, a time in the skipped hour moves forward by the length of the gap, and a time in the repeated hour means the standard-time (second) occurrence.
"America/Chicago"