Listar kits
RegistosGET /inventory/kits
Pages the tenant's kits with limit (default 20, max 100) and the after cursor. Filter by work_order_type to find the default kit for a type of work order, and by active. Needs the inventory:read scope.
Parâmetros
work_order_typeKits proposed for one work-order type
activeOnly active or inactive kits
limitMaximum resources to return (default 20, maximum 100).
afterOpaque cursor returned by the previous page.
Devolve
200 Kits
Mostrar atributos
dataMostrar atributos filhos
idkit_ identifier
tenant_idcodenamedescriptionwork_order_typeThe work-order type this kit is the default for
activelinesMostrar atributos filhos
item_idquantityQuantity in the item's unit, with at most three decimals (12.5 metres).
requiredA field order cannot be dispatched until this line is reserved (batch 2)
created_atupdated_at
has_morenext_cursor
Permissões inventory:read · Funções: admin, analyst, field_reader, field_supervisor, finance, operations, owner, viewer
curl -X GET "$BUSINESS_API/inventory/kits" \
-H "Authorization: Bearer sk_test_..."
# Sem comando CLI equivalente; use cURL ou HTTP directo.
const res = await fetch("$BUSINESS_API/inventory/kits", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$BUSINESS_API/inventory/kits",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$BUSINESS_API/inventory/kits", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
{
"data": [
{
"id": "inv_2JVQuPrWedpeyptQQdnuAb9S4dV",
"tenant_id": "ten_2ugFXIC316WXzGu1HGal90AxTA6",
"code": "COD-2026-000142",
"name": "Ana Matsinhe",
"description": "Leitura confirmada no local.",
"work_order_type": "work order type",
"active": true,
"lines": [
{
"item_id": "itm_2vLmKDHWenXi6Pxs8hv8WJHGW53",
"quantity": 1,
"required": true
}
],
"created_at": "2026-11-19T09:30:00Z",
"updated_at": "2026-11-19T09:30:00Z"
}
],
"has_more": true,
"next_cursor": "next cursor"
}