Groups
Containers, truck loads, stacks and other labelled sets of pieces.
The group object#
A labelled set of logs: a container, truck load, stack or load, or a parent your system places loads under (a yard row, a vessel hold). Volume, counts and weight reconciliation are computed over it. Fields you can request through expand[]: origin_place, parent.
| Field | Description |
|---|---|
idstring | Unique identifier, prefixed grp_. |
objectgroup | String representing the object type. Always group. |
livemodeboolean | true for objects in the live account, false for objects in the test account. Test and live data never mix. |
client_idstring, nullable | Caller-chosen identifier, unique per account and resource type. The SDKs set it so records created offline reconcile when they sync. Retrying a create with the same client_id returns the existing record instead of a duplicate. |
kindstring, nullable | What the group is. Recommended values: container, truck_load, stack, other; any string is accepted. |
namestring, nullable | Display name. |
external_refstring, nullable | Your container number, ticket or stack id. |
parent_idstring, nullable | The one group this group sits inside, for example a truck load in a yard row. Nesting is at most 4 deep; cycles are rejected. |
origin_place_idstring, nullable | The tract this group (a load) is tied to: where its wood was harvested. Every log first measured into this group traces to it, also after it moves on. Set it on create, open or update; when it is empty, the first scan whose location lies inside exactly one tract's boundary sets it (see origin). Setting it to null clears it. |
originGroupOrigin, nullable | How origin_place_id was determined; null when it is empty. |
origin.place_idstring | The tract, as origin_place_id. |
origin.sourceassigned \| location | |
origin.determined_atstring, nullable | When it was assigned or derived. |
origin.assigned_byobject, nullable | |
origin.evidenceobject, nullable | For source: location, the scan whose location matched. |
defaultsGroupDefaults, nullable | The group spec: values applied to every new item in the group, marked source: group_default. Most useful for tag-only scans where no measurement supplies anything. |
defaults.speciesstring, nullable | Species code from your catalogue. |
defaults.length_mnumber, nullable | Nominal log length in metres. |
defaults.gradestring, nullable | Grade from your catalogue. |
defaults.diameter_class_mnumber, nullable | Nominal diameter class in metres. With this set, a qr_count scan yields assigned measurements and a volume with no further call. |
holdsenum (sawlog, lumber, panel), nullable | What the Timbereye apps scan into a group: logs (sawlog), lumber bundles or panel units. The apps keep one product per group and ask for it when a group is made; null on a group nobody chose for. Recorded, never enforced: the API accepts any product in any group (https://www.timbereye.com/docs/lumber-and-panels/). |
weightGroupWeight, nullable | A weighbridge ticket recorded on a group, normally a truck load or container: gross, tare and net as written on the ticket, in kg and as entered. Timbereye does not measure weight. The net weight is spread over the group's logs in proportion to their JAS volume (each log's weight, source: allocated). A parent group's weight is the sum of its children's unless set directly. |
weight.gross_kgnumber, nullable | Gross weight in kg. |
weight.tare_kgnumber, nullable | Tare weight in kg. |
weight.net_kgnumber, nullable | Net weight in kg. Always present when the group has a weight: the net you gave, or gross less tare. |
weight.enteredobject, nullable | The values exactly as written on the ticket, in one unit: only what you gave, so net is null when it was derived. Null when the weight is the sum of child groups. |
weight.ticket_refstring, nullable | Scale ticket number. |
weight.weighed_atstring, nullable | When the load was weighed. |
weight.ticket_image_idstring, nullable | The photo of the weighbridge ticket, a group image of this group (kind weigh_ticket). |
weight.entered_byobject, nullable | Who entered the weight; null for weights entered before this was recorded. |
weight.entered_atstring, nullable | When the weight was entered (not when the load was weighed). |
summaryGroupSummary | Rolled-up numbers for the group; a parent's summary includes its child groups. Volume uses the account's default rule. |
summary.itemsinteger | Number of active items in the group and its child groups. |
summary.measuredinteger | Items whose effective measurement is any stage other than assigned: a device estimate, a server refinement or a manual override. Items with only an assigned measurement are not measured; they are counted in assigned_count. An item with no measurement at all is in neither. |
summary.refinedinteger | Items whose server refinement has succeeded (refinement.status of succeeded on the item). A manual override on its own does not count. Always at most measured. measured minus refined is the number of items that rest on a device estimate or an override only (estimated_only on a volume). |
summary.volumeVolumeSummary, nullable | The logs' volume under the account's default rule. null for a lumber or panel group (a bundle, unit or packing list), which holds no logs: its figures are tally. |
summary.density_kg_m3number, nullable | Net weight divided by volume. A check on both numbers: a load far outside the species' usual range has a wrong count, length or ticket. Null without a weight or volume. |
summary.net_kgnumber, nullable | Net weight of the group in kg; null without a weight. |
summary.weight_allocationnone \| partial \| full | none when the group has no weight, partial when some items have no volume and so received no weight, full when every item received its share. |
summary.piecesinteger | Pieces of one product in the group and its children when it holds lumber or panel tally lines (a line its count, logs one each). Present only while the group holds one product: a group holding logs and bundles, or bundles and units, has no piece count across products (each product's count is in products). |
summary.productsGroupProducts | What the group and everything nested in it holds, product by product, each with its own figures and never one figure across products: sawlog (its logs: the same logs and volume as items and volume), lumber (its bundles, and the board feet and m³ of their final tallies) and panel (its units, sheets, m² and m³). Only the products it holds are present; an empty group has {}. Bundles and units are child groups (parent_id the group); a group a phone opened may hold all three. |
summary.tallyobject, nullable | A lumber or panel group's own tally figures under its rule (pieces, board_feet, mbf, m3, m2). |
summary.assigned_countinteger | Items whose effective measurement is assigned: a nominal diameter class taken from the group spec, with no image behind it. These are never counted in measured. |
versioninteger | Increases on every change. Send it as If-Match on PATCH to avoid overwriting a concurrent edit. |
metadataMetadata | Free-form string map for your own data (an ERP booking number, a yard row). At most 50 keys; keys up to 40 characters; values up to 500 characters. Use this instead of asking for customer-specific fields. On update, supplied keys are merged into the existing map and a key set to an empty string is removed. |
shippingGroupShipping, nullable | Shipping details the packing list prints, as stored on this group; null when none are set. |
created_atstring | Creation time. |
origin_placePlace, nullable | The origin place, present only when expand[]=origin_place was requested. |
parentGroup, nullable | The parent group, present only when expand[]=parent was requested. |
productenum (sawlog, lumber, panel) | What a group holds: logs (every existing group), lumber boards or panel sheets. |
specobject, nullable | A lumber or panel group's spec (present for those groups only). |
bundleobject, nullable | A lumber or panel group's bundle attributes and label. |
ruleobject, nullable | A lumber or panel group's tally rule with its policies and method, the named board-foot method it follows (nhla_board_measure, nominal_piece_tally, width_length_tally, exact, mill_half_foot_down, or null for none). |
expectedobject, nullable | |
totals_conventionstring, nullable |
Create a group#
POST/v1/groups
Creates a container, truck load, stack, load or any other labelled set of logs, or a parent your system places groups under (a yard row, a vessel, a vessel hold). Accepts JSON or form encoding (defaults[species]=PINE_TAEDA, metadata[erp_booking]=BK-2231). Any number of groups may share a kind and external_ref (a container number is used again for the next load), so this always creates a new group: give each visit its own group, from your own record (external_ref: load_8841, the container number in name), or use POST /groups/open to continue the newest group for a reference. Retrying a create with the same Idempotency-Key returns the group it created.
Keys: secret key; restricted key with groups:write; capture token (Allowed. A token limited to group_ids cannot create new groups).
Body
| Field | Description |
|---|---|
client_idstring | Caller-chosen identifier, unique per account and resource type. The SDKs set it so records created offline reconcile when they sync. Retrying a create with the same client_id returns the existing record instead of a duplicate. |
kindstring | What the group is. Recommended values: container, truck_load, stack, other; any string is accepted. |
namestring | Display name. |
external_refstring | Your container number, ticket or stack id. |
parent_idstring | The one group this group sits inside, for example a truck load in a yard row. Nesting is at most 4 deep; cycles are rejected. |
origin_place_idstring | The tract this group (a load) is tied to: where its wood was harvested. Every log first measured into this group traces to it, also after it moves on. Set it on create, open or update; when it is empty, the first scan whose location lies inside exactly one tract's boundary sets it (see origin). Setting it to null clears it. |
defaultsGroupDefaultsInput | Group spec input. Omitted fields are unchanged on update; null clears one. The response's defaults.length_m is the length in metres. |
defaults.speciesstring, nullable | Species code from your catalogue; null clears it. |
defaults.lengthLengthInput, nullable | Nominal log length; null clears it. |
defaults.gradestring, nullable | Grade; null clears it. |
defaults.diameter_class_mnumber, nullable | Nominal diameter class in metres; null clears it. |
metadataMetadata | Free-form string map for your own data (an ERP booking number, a yard row). At most 50 keys; keys up to 40 characters; values up to 500 characters. Use this instead of asking for customer-specific fields. On update, supplied keys are merged into the existing map and a key set to an empty string is removed. |
holdsenum (sawlog, lumber, panel) | What the Timbereye apps scan into a group: logs (sawlog), lumber bundles or panel units. The apps keep one product per group and ask for it when a group is made; null on a group nobody chose for. Recorded, never enforced: the API accepts any product in any group (https://www.timbereye.com/docs/lumber-and-panels/). |
shippingGroupShippingInput | Shipping details for the packing list, all optional, one line of plain text each (trimmed; no line breaks or HTML), at most 8 KB in all. On PATCH each field you send replaces that field (a party is replaced whole), null or a blank value removes it, fields you leave out are unchanged, and shipping: null removes them all. Only a secret or restricted key (groups:write) or a console sign-in may set them; a publishable key, a capture token or a phone signed in to the app is refused with 403. Timbereye prints them as given and does not issue, validate or file shipping documents. |
productenum (sawlog, lumber, panel) | What a group holds: logs (every existing group), lumber boards or panel sheets. |
specLumberSpecInput | The bundle's (or unit's) spec. tally names the tally shape. |
spec.tallyuniform \| per_piece \| width_class | |
spec.speciesstring | |
spec.gradestring | |
spec.surfacingstring | |
spec.seasoningstring | |
spec.panel_typestring | |
spec.thicknessLumberDimension | A dimension of a lumber or panel spec: { value, unit }, { nominal, actual, unit } (a 2x4 is 2 × 1.5 in) or, for hardwood thickness, { quarters } (4 is 4/4, one inch). basis says whether the value is nominal (the default) or actual. |
spec.widthLumberDimension | A dimension of a lumber or panel spec: { value, unit }, { nominal, actual, unit } (a 2x4 is 2 × 1.5 in) or, for hardwood thickness, { quarters } (4 is 4/4, one inch). basis says whether the value is nominal (the default) or actual. |
spec.lengthLumberDimension | A dimension of a lumber or panel spec: { value, unit }, { nominal, actual, unit } (a 2x4 is 2 × 1.5 in) or, for hardwood thickness, { quarters } (4 is 4/4, one inch). basis says whether the value is nominal (the default) or actual. |
bundleBundleAttributes | Trade attributes of a bundle, stored and printed as given: the printed bundle number (may repeat within a list; external_ref is the unique key), buyer_ref, quality_code, drying (AD, KD or blank), width_spec, and an optional label: the declared size and piece count read off the pack's label (source operator or ocr), kept apart from the tallied count. |
bundle.numberstring | |
bundle.buyer_refstring | |
bundle.quality_codestring | |
bundle.dryingstring, nullable | |
bundle.width_specstring | |
bundle.spec_linestring, nullable | A free-text spec line ("KD 6–8% MC · S2S"), printed on the tally sheet and the packing list as given; never used in a figure. |
bundle.labelobject | |
ruleTallyRuleInput | A tally rule and its policies (see GET /volume_rules). Omitted policies of a hardwood bundle tallied board by board come from the organisation's board_foot_method when it uses the same rule (or from the method whose sm_round was named); otherwise they take the rule's defaults. |
rule.id requiredstring | |
rule.versionstring | |
rule.policiesobject | |
expectedobject | Your expected figures (pieces, m3, board_feet, m2) for a lumber or panel group; never used in a figure. |
totalsexact \| reported | A packing list's totals convention. |
photosPhotoPolicyInput | Which photos a lumber bundle or panel unit needs before its tally can be final. Omitted: none, unless the organisation requires photos (GET /account, lumber.photos_required), then the product's defaults (lumber bundle_end and label; panels label and unit_edge). { required: [kinds] } names the kinds ([]: none); { required: false, reason } waives them for this group with the reason recorded. A packing list's setting is inherited by the bundles created with it. |
photos.requiredfalse or array of bundle_end \| bundle_far_end \| label \| tally_sheet \| unit_edge \| other | |
photos.reasonstring |
Request
A phone does not call this itself: the Swift and Kotlin SDKs make this call for the scanner, with the app's key. See Scan in your app. The samples are for your server.
const result = await timbereye.groups.create({
kind: "container",
externalRef: "ctr_4821",
name: "MSKU1234567",
originPlaceId: "plc_4Hk2pT",
defaults: { species: "PINE_TAEDA", length: { valueM: 11.8 } },
metadata: { erpBooking: "BK-2231" },
})curl -X POST https://api.timbereye.com/v1/groups \
-H "Authorization: Bearer $TIMBEREYE_SECRET_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"kind": "container",
"external_ref": "ctr_4821",
"name": "MSKU1234567",
"origin_place_id": "plc_4Hk2pT",
"defaults": { "species": "PINE_TAEDA", "length": { "value_m": 11.8 } },
"metadata": { "erp_booking": "BK-2231" }
}'timbereye groups create \
--kind container \
--external-ref ctr_4821 \
--name MSKU1234567 \
--origin-place plc_4Hk2pT \
--data '{"defaults":{"species":"PINE_TAEDA","length":{"value_m":11.8}},"metadata":{"erp_booking":"BK-2231"}}' \
--jsonResponse
// 200
{
"id": "grp_7QxV3m",
"object": "group",
"livemode": true,
"client_id": null,
"kind": "container",
"name": "MSKU1234567",
"external_ref": "ctr_4821",
"parent_id": null,
"origin_place_id": "plc_4Hk2pT",
"origin": {
"place_id": "plc_4Hk2pT",
"source": "assigned",
"determined_at": "2027-02-03T14:00:00Z",
"assigned_by": { "type": "key", "id": "key_1a2B3c" },
"evidence": null
},
"defaults": {
"species": "PINE_TAEDA",
"length_m": 11.8,
"grade": null,
"diameter_class_m": null
},
"weight": null,
"summary": {
"items": 0,
"measured": 0,
"refined": 0,
"volume": { "rule": "jas", "m3": 0 },
"net_kg": null,
"density_kg_m3": null,
"weight_allocation": "none",
"assigned_count": 0
},
"version": 0,
"metadata": { "erp_booking": "BK-2231" },
"created_at": "2027-02-03T14:05:11Z"
}Errors
| Status | When |
|---|---|
400 | invalid_request_error: the request was malformed or a field was invalid. |
401 | authentication_error: missing, malformed, expired or revoked key. |
402 | invalid_request_error: new live work is refused for billing. payment_overdue: an invoice is unpaid past its grace period; pay it or change the card in the console (Billing). spend_cap_reached: the monthly spend cap set to pause is reached; raise it or wait for the next month. Reads, and finishing scans already started, still work. |
403 | permission_error: the key lacks the scope, the capture token is limited to other groups, or the resource is read-only to you. |
404 | invalid_request_error, resource_missing: no such object. Objects in another account are also reported as 404. |
409 | invalid_request_error: idempotency_key_reused, idempotency_request_in_progress, group_not_empty, group_billed, place_in_use, resource_exists, place_name_taken or another state conflict. |
413 | invalid_request_error, payload_too_large: the upload is over the size limit (10 MB for multipart). |
422 | invalid_request_error: the request was well formed but cannot be applied. Codes: group_cycle, group_depth_exceeded, unit_ambiguous, weight_inconsistent, area_ha_not_allowed, assignment_required. |
429 | rate_limit_error: slow down and retry after the Retry-After delay. |
500 | api_error: something went wrong on our side. Safe to retry with the same Idempotency-Key. |
503 | api_error: isolation_unavailable (the resource's account isolation is not in place), service_unavailable (for example image storage not available in this environment) or model_unavailable (no on-device detector to offer in this environment). Retry later. |
List groups#
GET/v1/groups
Returns groups, newest first. Filter by kind, external_ref, parent_id, origin_place_id, a creation time range, or your own metadata (metadata[booking]=B123).
Keys: secret key; restricted key with groups:read; capture token (Allowed).
Parameters
| Field | Description |
|---|---|
qstring, query | Search. A group id (grp_…) finds that group; any other text is found, ignoring case, anywhere in the name or the external reference. |
kindstring, query | Only groups of this kind. |
external_refstring, query | Only groups with this external reference. |
parent_idstring, query | Only children of this group. |
client_idstring, query | Only the group with this client id. |
metadataobject, query | Only groups whose metadata has every given key with exactly this value: metadata[booking]=B123. At most 5 keys. This is how you find a group by your own identifier (booking number, ticket, vessel) in one call. |
origin_place_idstring, query | Only groups whose origin place is this one. |
created_afterstring, query | Only groups created at or after this time (ISO 8601). |
created_beforestring, query | Only groups created before this time (ISO 8601). |
limitinteger, query | Page size, 1 to 100. |
starting_afterstring, query | Opaque cursor: pass the next_cursor of the previous page. Results are ordered by (created_at, id). |
expand[]array of string, query | Replace an id field with the full object, e.g. expand[]=origin_place. Allowed values are listed on each resource. |
Request
A phone does not call this itself: the Swift and Kotlin SDKs make this call for the scanner, with the app's key. See Scan in your app. The samples are for your server.
for await (const group of timbereye.groups.list()) {
// every page, one at a time
}curl https://api.timbereye.com/v1/groups \
-H "Authorization: Bearer $TIMBEREYE_SECRET_KEY"timbereye groups list --jsonResponse
// 200
{
"object": "list",
"data": [
{
"id": "grp_7QxV3m",
"object": "group",
"livemode": true,
"client_id": null,
"kind": "container",
"name": "MSKU1234567",
"external_ref": "ctr_4821",
"parent_id": null,
"origin_place_id": "plc_4Hk2pT",
"origin": {
"place_id": "plc_4Hk2pT",
"source": "assigned",
"determined_at": "2027-02-03T14:00:00Z",
"assigned_by": {
"type": "key",
"id": "key_1a2B3c"
},
"evidence": null
},
"defaults": {
"species": "PINE_TAEDA",
"length_m": 11.8,
"grade": null,
"diameter_class_m": null
},
"weight": null,
"summary": {
"items": 0,
"measured": 0,
"refined": 0,
"volume": { "rule": "jas", "m3": 0 },
"net_kg": null,
"density_kg_m3": null,
"weight_allocation": "none",
"assigned_count": 0
},
"version": 0,
"metadata": { "erp_booking": "BK-2231" },
"created_at": "2027-02-03T14:05:11Z"
}
],
"has_more": false,
"next_cursor": null
}Errors
| Status | When |
|---|---|
400 | invalid_request_error: the request was malformed or a field was invalid. |
401 | authentication_error: missing, malformed, expired or revoked key. |
403 | permission_error: the key lacks the scope, the capture token is limited to other groups, or the resource is read-only to you. |
404 | invalid_request_error, resource_missing: no such object. Objects in another account are also reported as 404. |
429 | rate_limit_error: slow down and retry after the Retry-After delay. |
500 | api_error: something went wrong on our side. Safe to retry with the same Idempotency-Key. |
503 | api_error: isolation_unavailable (the resource's account isolation is not in place), service_unavailable (for example image storage not available in this environment) or model_unavailable (no on-device detector to offer in this environment). Retry later. |
Look up a reference#
GET/v1/groups/lookup
Returns the newest group with a kind and external_ref (matched after trimming and ignoring case), with its pieces and when it was last scanned, and what a phone should offer by default: continue when the group was last active (its newest scan, else its creation) in the last 12 hours, otherwise new. group is null when no group has the reference. Nothing is created. The Timbereye app calls it on New group, so a worker who types a container number that already has a group sees that group with two choices, Continue this one or Start a new one, then calls POST /groups/open with existing set to the choice.
Keys: secret key; restricted key with groups:read; capture token (Allowed. A token limited to group_ids only finds one of its groups); publishable key (Allowed. Returns the group's id, kind, name, reference, pieces and when it was last scanned; never its figures, logs or images).
Parameters
| Field | Description |
|---|---|
kind requiredstring, query | The group's kind, such as container. |
external_ref requiredstring, query | The reference, such as a container number. |
Request
A phone does not call this itself: the Swift and Kotlin SDKs make this call for the scanner, with the app's key. See Scan in your app. The samples are for your server.
const result = await timbereye.groups.lookup({ kind: "kind_…", externalRef: "external_ref_…" })curl "https://api.timbereye.com/v1/groups/lookup?kind=kind_%E2%80%A6&external_ref=external_ref_%E2%80%A6" \
-H "Authorization: Bearer $TIMBEREYE_SECRET_KEY"timbereye groups lookup --kind 'kind_…' --external-ref 'external_ref_…' --jsonResponse
// 200
{
"object": "group_lookup",
"livemode": true,
"kind": "container",
"external_ref": "MSKU1234567",
"group": {
"id": "grp_7QxV3m",
"kind": "container",
"name": null,
"external_ref": "MSKU1234567",
"pieces": 212,
"last_scanned_at": "2027-02-03T09:12:00Z",
"created_at": "2027-02-03T08:01:00Z"
},
"suggestion": "continue"
}Errors
| Status | When |
|---|---|
400 | invalid_request_error: the request was malformed or a field was invalid. |
401 | authentication_error: missing, malformed, expired or revoked key. |
403 | permission_error: the key lacks the scope, the capture token is limited to other groups, or the resource is read-only to you. |
429 | rate_limit_error: slow down and retry after the Retry-After delay. |
500 | api_error: something went wrong on our side. Safe to retry with the same Idempotency-Key. |
503 | api_error: isolation_unavailable (the resource's account isolation is not in place), service_unavailable (for example image storage not available in this environment) or model_unavailable (no on-device detector to offer in this environment). Retry later. |
Open a group by your own reference#
POST/v1/groups/open
Returns a group for a reference such as a container number, or creates one. kind and external_ref are matched after trimming surrounding spaces and ignoring case (MSKU1234567 and msku1234567 are one reference); the group keeps the reference as first written. The group id, not the reference, is the identity: it is on every record and event. A reference may have many groups (containers are used again), and existing says which one you want: - auto (the default): the newest group with the reference when it was last active (its newest scan, else its creation) within 12 hours before started_at (default now), else a new group. So the same container the same day continues one group, and the same container weeks later starts a new one, with no extra step for anyone. - continue: the newest group with the reference, or a new one when there is none. - new: always a new group. Two devices opening the same reference at the same moment get one group (unless one asks for new). A phone that captured offline sends the started_at of when the worker started, so a late upload decides as it would have then. To show the worker the choice first, call GET /groups/lookup. Groups made with POST /groups are found here too. defaults (the group spec) is applied when this call creates the group. For a group that exists it is applied only when the caller may write the spec (a secret key, a restricted key with groups:write, a dashboard member who may write data, or a capture token or publishable key created with spec: write), with apply_to_existing as in PATCH /groups/{id}; otherwise it is ignored and the group comes back with the spec it has. A publishable key gets a capture_group (only what the capture screen needs: its id, kind, reference, name as the scanner's title, spec and version; no summary, figures, weight, metadata or places, because anyone holding the app's key and a reference can open it), and the group becomes reachable by that key from that installation; it counts against groups_opened_per_day. A capture token limited to group_ids can only continue one of its groups (403 group_not_allowed otherwise, and never creates). Every other caller gets the full group. To read a group by reference without creating it, use GET /groups/lookup or GET /groups?external_ref=.
Keys: secret key; restricted key with groups:write; capture token (Allowed. A token limited to group_ids finds one of its groups and never creates one); publishable key (Allowed. Returns a capture_group and lets the key use that group from this installation. Counts against groups_opened_per_day. May set parent_id (a group the key reaches) and origin_place_id on the group it creates; everything else about a group's placement stays server-only).
Body
| Field | Description |
|---|---|
kind requiredstring | What the group is: container, truck_load, stack, ... Matched ignoring case and surrounding spaces. |
external_ref requiredstring | Your handle for the job: ideally your own record id for this load (unique in your system), or the container number. Matched ignoring case and surrounding spaces. Container numbers are used again for later loads, so a reference may have many groups; existing chooses. |
namestring | A display name, set when this call creates the group (change it later with PATCH /groups/{id}). Pass your record id as external_ref and the container number as name. |
defaultsGroupDefaultsInput | Group spec input. Omitted fields are unchanged on update; null clears one. The response's defaults.length_m is the length in metres. |
defaults.speciesstring, nullable | Species code from your catalogue; null clears it. |
defaults.lengthLengthInput, nullable | Nominal log length; null clears it. |
defaults.gradestring, nullable | Grade; null clears it. |
defaults.diameter_class_mnumber, nullable | Nominal diameter class in metres; null clears it. |
holdsenum (sawlog, lumber, panel) | What the Timbereye apps scan into the group: set on a group this call creates, and on the group it continues when that group has none yet (never changed once set; use PATCH /groups/{id}). |
shippingGroupShippingInput | Shipping details the packing list prints, set when this call creates the group (change them later with PATCH /groups/{id}). Secret and restricted keys and console sign-ins only: a publishable key, a capture token or a phone signed in to the app is refused with 403. |
apply_to_existingnone \| defaulted \| all | When defaults change the spec of a group that exists, which of its items take them, as in PATCH /groups/{id}. |
parent_idstring | The group this one sits in (a yard row, or a vessel hold for a load), set when this call creates the group. It must be an open group the caller may capture into: with a publishable key, one it reaches (with group_access: opened_only, one it opened by reference). Refused with 404 param: parent_id (403 group_not_allowed for an opened_only key), the same answer for any id it may not use. |
origin_place_idstring | Where the logs come from (a tract for a forest stack), set when this call creates the group. Any place of the account; a phone cannot list or read places, so your app passes an id your backend gave it. Refused with 404 param: origin_place_id, the same answer for any id it may not use. |
productenum (sawlog, lumber, panel) | lumber or panel opens a bundle (kind: bundle, unit for panels, with parent_id the container, truck load or stack it goes into) or a group of one product (kind: packing_list, kept for existing clients; a container opened without product holds any product). The lumber fields below apply only when this call creates the group, as in POST /groups/batch; an existing group keeps its own. Needs the organisation's lumber enabled in this mode (GET /account lumber.enabled) and the product among lumber.products, else 403 product_not_enabled. Omitted: sawlog. |
specLumberSpecInput | The bundle's (or unit's) spec. tally names the tally shape. |
spec.tallyuniform \| per_piece \| width_class | |
spec.speciesstring | |
spec.gradestring | |
spec.surfacingstring | |
spec.seasoningstring | |
spec.panel_typestring | |
spec.thicknessLumberDimension | A dimension of a lumber or panel spec: { value, unit }, { nominal, actual, unit } (a 2x4 is 2 × 1.5 in) or, for hardwood thickness, { quarters } (4 is 4/4, one inch). basis says whether the value is nominal (the default) or actual. |
spec.widthLumberDimension | A dimension of a lumber or panel spec: { value, unit }, { nominal, actual, unit } (a 2x4 is 2 × 1.5 in) or, for hardwood thickness, { quarters } (4 is 4/4, one inch). basis says whether the value is nominal (the default) or actual. |
spec.lengthLumberDimension | A dimension of a lumber or panel spec: { value, unit }, { nominal, actual, unit } (a 2x4 is 2 × 1.5 in) or, for hardwood thickness, { quarters } (4 is 4/4, one inch). basis says whether the value is nominal (the default) or actual. |
bundleBundleAttributes | Trade attributes of a bundle, stored and printed as given: the printed bundle number (may repeat within a list; external_ref is the unique key), buyer_ref, quality_code, drying (AD, KD or blank), width_spec, and an optional label: the declared size and piece count read off the pack's label (source operator or ocr), kept apart from the tallied count. |
bundle.numberstring | |
bundle.buyer_refstring | |
bundle.quality_codestring | |
bundle.dryingstring, nullable | |
bundle.width_specstring | |
bundle.spec_linestring, nullable | A free-text spec line ("KD 6–8% MC · S2S"), printed on the tally sheet and the packing list as given; never used in a figure. |
bundle.labelobject | |
ruleTallyRuleInput | A tally rule and its policies (see GET /volume_rules). Omitted policies of a hardwood bundle tallied board by board come from the organisation's board_foot_method when it uses the same rule (or from the method whose sm_round was named); otherwise they take the rule's defaults. |
rule.id requiredstring | |
rule.versionstring | |
rule.policiesobject | |
photosPhotoPolicyInput | Which photos a lumber bundle or panel unit needs before its tally can be final. Omitted: none, unless the organisation requires photos (GET /account, lumber.photos_required), then the product's defaults (lumber bundle_end and label; panels label and unit_edge). { required: [kinds] } names the kinds ([]: none); { required: false, reason } waives them for this group with the reason recorded. A packing list's setting is inherited by the bundles created with it. |
photos.requiredfalse or array of bundle_end \| bundle_far_end \| label \| tally_sheet \| unit_edge \| other | |
photos.reasonstring | |
totalsexact \| reported | A packing list's totals convention. |
existingauto \| continue \| new | When a group with this reference exists: auto continues the newest one if it was last active within 12 hours before started_at, else starts a new group; continue always continues the newest one; new always starts a new group. With no group for the reference, every value creates one. |
started_atstring | When the worker started the group, for existing: auto; now when omitted. A phone that was offline sends the time it started the group, so an upload days later decides as it would have then. |
Request
A phone does not call this itself: the Swift and Kotlin SDKs make this call for the scanner, with the app's key. See Scan in your app. The samples are for your server.
const result = await timbereye.groups.open({
kind: "container",
externalRef: "ctr_4821",
name: "MSKU1234567",
defaults: { species: "PINE_TAEDA", length: { valueM: 11.8 } },
})curl -X POST https://api.timbereye.com/v1/groups/open \
-H "Authorization: Bearer $TIMBEREYE_SECRET_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"kind": "container",
"external_ref": "ctr_4821",
"name": "MSKU1234567",
"defaults": { "species": "PINE_TAEDA", "length": { "value_m": 11.8 } }
}'timbereye groups open \
--kind container \
--external-ref ctr_4821 \
--name MSKU1234567 \
--data '{"defaults":{"species":"PINE_TAEDA","length":{"value_m":11.8}}}' \
--jsonResponse
// 200
{
"id": "grp_7QxV3m",
"object": "group",
"livemode": true,
"client_id": null,
"kind": "container",
"name": "MSKU1234567",
"external_ref": "ctr_4821",
"parent_id": null,
"origin_place_id": "plc_4Hk2pT",
"origin": {
"place_id": "plc_4Hk2pT",
"source": "assigned",
"determined_at": "2027-02-03T14:00:00Z",
"assigned_by": { "type": "key", "id": "key_1a2B3c" },
"evidence": null
},
"defaults": {
"species": "PINE_TAEDA",
"length_m": 11.8,
"grade": null,
"diameter_class_m": null
},
"weight": null,
"summary": {
"items": 0,
"measured": 0,
"refined": 0,
"volume": { "rule": "jas", "m3": 0 },
"net_kg": null,
"density_kg_m3": null,
"weight_allocation": "none",
"assigned_count": 0
},
"version": 0,
"metadata": { "erp_booking": "BK-2231" },
"created_at": "2027-02-03T14:05:11Z"
}Errors
| Status | When |
|---|---|
400 | invalid_request_error: the request was malformed or a field was invalid. |
401 | authentication_error: missing, malformed, expired or revoked key. |
402 | invalid_request_error: new live work is refused for billing. payment_overdue: an invoice is unpaid past its grace period; pay it or change the card in the console (Billing). spend_cap_reached: the monthly spend cap set to pause is reached; raise it or wait for the next month. Reads, and finishing scans already started, still work. |
403 | permission_error: the key lacks the scope, the capture token is limited to other groups, or the resource is read-only to you. |
404 | invalid_request_error, resource_missing: no such object. Objects in another account are also reported as 404. |
409 | invalid_request_error: idempotency_key_reused, idempotency_request_in_progress, group_not_empty, group_billed, place_in_use, resource_exists, place_name_taken or another state conflict. |
429 | rate_limit_error: slow down and retry after the Retry-After delay. |
500 | api_error: something went wrong on our side. Safe to retry with the same Idempotency-Key. |
503 | api_error: isolation_unavailable (the resource's account isolation is not in place), service_unavailable (for example image storage not available in this environment) or model_unavailable (no on-device detector to offer in this environment). Retry later. |
Retrieve a group#
GET/v1/groups/{id}
Returns one group with its summary.
Keys: secret key; restricted key with groups:read; capture token (Allowed); publishable key (Allowed for a group whose id the device presents (unless the key has group_access: opened_only), and for groups it opened by reference. Returns a capture_group: the spec, never figures, logs or images. A key with group_access: opened_only given any other group id gets 403 group_not_allowed, the same whether the id names a group of this account, of another, or none).
Parameters
| Field | Description |
|---|---|
id requiredstring, path | Group id. |
expand[]array of string, query | Replace an id field with the full object, e.g. expand[]=origin_place. Allowed values are listed on each resource. |
Request
A phone does not call this itself: the Swift and Kotlin SDKs make this call for the scanner, with the app's key. See Scan in your app. The samples are for your server.
const result = await timbereye.groups.retrieve("grp_7QxV3m")curl https://api.timbereye.com/v1/groups/grp_7QxV3m \
-H "Authorization: Bearer $TIMBEREYE_SECRET_KEY"timbereye groups get grp_7QxV3m --jsonResponse
// 200
{
"id": "grp_7QxV3m",
"object": "group",
"livemode": true,
"client_id": null,
"kind": "container",
"name": "MSKU1234567",
"external_ref": "ctr_4821",
"parent_id": null,
"origin_place_id": "plc_4Hk2pT",
"origin": {
"place_id": "plc_4Hk2pT",
"source": "assigned",
"determined_at": "2027-02-03T14:00:00Z",
"assigned_by": { "type": "key", "id": "key_1a2B3c" },
"evidence": null
},
"defaults": {
"species": "PINE_TAEDA",
"length_m": 11.8,
"grade": null,
"diameter_class_m": null
},
"weight": null,
"summary": {
"items": 0,
"measured": 0,
"refined": 0,
"volume": { "rule": "jas", "m3": 0 },
"net_kg": null,
"density_kg_m3": null,
"weight_allocation": "none",
"assigned_count": 0
},
"version": 0,
"metadata": { "erp_booking": "BK-2231" },
"created_at": "2027-02-03T14:05:11Z"
}Errors
| Status | When |
|---|---|
400 | invalid_request_error: the request was malformed or a field was invalid. |
401 | authentication_error: missing, malformed, expired or revoked key. |
403 | permission_error: the key lacks the scope, the capture token is limited to other groups, or the resource is read-only to you. |
404 | invalid_request_error, resource_missing: no such object. Objects in another account are also reported as 404. |
429 | rate_limit_error: slow down and retry after the Retry-After delay. |
500 | api_error: something went wrong on our side. Safe to retry with the same Idempotency-Key. |
503 | api_error: isolation_unavailable (the resource's account isolation is not in place), service_unavailable (for example image storage not available in this environment) or model_unavailable (no on-device detector to offer in this environment). Retry later. |
Update a group#
PATCH/v1/groups/{id}
Changes labels, parent, origin, metadata or the group spec (defaults). Changing a default can be applied to existing items with apply_to_existing. Send If-Match with the group version to guard against concurrent edits. A parent must be in the same account, depth is at most 4 and a cycle is rejected with 422 group_cycle and a depth over 4 with 422 group_depth_exceeded.
Keys: secret key; restricted key with groups:write; capture token (Allowed only when the token was minted with spec: write, and only for defaults); publishable key (Allowed only for defaults and apply_to_existing, only when the key has spec: write (the default), and for holds (no spec: write needed), on a group the key may capture into; returns a capture_group. A key with group_access: opened_only given any other group id gets 403 group_not_allowed, the same whether the id names a group of this account, of another, or none).
Parameters
| Field | Description |
|---|---|
id requiredstring, path | Group id. |
Body
| Field | Description |
|---|---|
kindstring | What the group is. Recommended values: container, truck_load, stack, other; any string is accepted. |
namestring, nullable | Display name. |
external_refstring, nullable | Your container number, ticket or stack id. |
parent_idstring, nullable | Move the group, or null to make it top-level. |
origin_place_idstring, nullable | The tract this group (a load) is tied to: where its wood was harvested. Every log first measured into this group traces to it, also after it moves on. Set it on create, open or update; when it is empty, the first scan whose location lies inside exactly one tract's boundary sets it (see origin). Setting it to null clears it. |
defaultsGroupDefaultsInput | Group spec input. Omitted fields are unchanged on update; null clears one. The response's defaults.length_m is the length in metres. |
defaults.speciesstring, nullable | Species code from your catalogue; null clears it. |
defaults.lengthLengthInput, nullable | Nominal log length; null clears it. |
defaults.gradestring, nullable | Grade; null clears it. |
defaults.diameter_class_mnumber, nullable | Nominal diameter class in metres; null clears it. |
holdsenum (sawlog, lumber, panel), nullable | What the Timbereye apps scan into the group, or null to clear it. A phone may set it (no spec: write needed); it changes nothing the group holds. |
apply_to_existingnone \| defaulted \| all | Only meaningful together with defaults. Whether a changed default is applied to items already in the group. defaulted (the default) rewrites only items whose value still has source: group_default, so an operator's correction is never overwritten. all overwrites every item. none affects new items only. |
metadataMetadata | Free-form string map for your own data (an ERP booking number, a yard row). At most 50 keys; keys up to 40 characters; values up to 500 characters. Use this instead of asking for customer-specific fields. On update, supplied keys are merged into the existing map and a key set to an empty string is removed. |
shippingGroupShippingInput | Shipping details for the packing list, all optional, one line of plain text each (trimmed; no line breaks or HTML), at most 8 KB in all. On PATCH each field you send replaces that field (a party is replaced whole), null or a blank value removes it, fields you leave out are unchanged, and shipping: null removes them all. Only a secret or restricted key (groups:write) or a console sign-in may set them; a publishable key, a capture token or a phone signed in to the app is refused with 403. Timbereye prints them as given and does not issue, validate or file shipping documents. |
Request
A phone does not call this itself: the Swift and Kotlin SDKs make this call for the scanner, with the app's key. See Scan in your app. The samples are for your server.
const result = await timbereye.groups.update("grp_7QxV3m", { defaults: { length: { valueM: 5.8 } }, applyToExisting: "defaulted" })curl -X PATCH https://api.timbereye.com/v1/groups/grp_7QxV3m \
-H "Authorization: Bearer $TIMBEREYE_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"defaults": { "length": { "value_m": 5.8 } },
"apply_to_existing": "defaulted"
}'timbereye groups update grp_7QxV3m \
--apply-to-existing defaulted \
--data '{"defaults":{"length":{"value_m":5.8}}}' \
--jsonResponse
// 200
{
"id": "grp_7QxV3m",
"object": "group",
"livemode": true,
"client_id": null,
"kind": "container",
"name": "MSKU1234567",
"external_ref": "ctr_4821",
"parent_id": null,
"origin_place_id": "plc_4Hk2pT",
"origin": {
"place_id": "plc_4Hk2pT",
"source": "assigned",
"determined_at": "2027-02-03T14:00:00Z",
"assigned_by": { "type": "key", "id": "key_1a2B3c" },
"evidence": null
},
"defaults": {
"species": "PINE_TAEDA",
"length_m": 11.8,
"grade": null,
"diameter_class_m": null
},
"weight": null,
"summary": {
"items": 0,
"measured": 0,
"refined": 0,
"volume": { "rule": "jas", "m3": 0 },
"net_kg": null,
"density_kg_m3": null,
"weight_allocation": "none",
"assigned_count": 0
},
"version": 0,
"metadata": { "erp_booking": "BK-2231" },
"created_at": "2027-02-03T14:05:11Z"
}Errors
| Status | When |
|---|---|
400 | invalid_request_error: the request was malformed or a field was invalid. |
401 | authentication_error: missing, malformed, expired or revoked key. |
403 | permission_error: the key lacks the scope, the capture token is limited to other groups, or the resource is read-only to you. |
404 | invalid_request_error, resource_missing: no such object. Objects in another account are also reported as 404. |
409 | invalid_request_error: idempotency_key_reused, idempotency_request_in_progress, group_not_empty, group_billed, place_in_use, resource_exists, place_name_taken or another state conflict. |
412 | invalid_request_error, version_mismatch: the If-Match version no longer matches. Nothing changed. |
413 | invalid_request_error, payload_too_large: the upload is over the size limit (10 MB for multipart). |
422 | invalid_request_error: the request was well formed but cannot be applied. Codes: group_cycle, group_depth_exceeded, unit_ambiguous, weight_inconsistent, area_ha_not_allowed, assignment_required. |
429 | rate_limit_error: slow down and retry after the Retry-After delay. |
500 | api_error: something went wrong on our side. Safe to retry with the same Idempotency-Key. |
503 | api_error: isolation_unavailable (the resource's account isolation is not in place), service_unavailable (for example image storage not available in this environment) or model_unavailable (no on-device detector to offer in this environment). Retry later. |
Delete a group#
DELETE/v1/groups/{id}
Deletes a group that never held anything: no logs (removed ones count), scans, nested groups or photos, no logs that moved on to other groups, and no phone that may still be capturing into it (a publishable key opened it, or an unexpired capture token is limited to it). Anything else is refused with 409 group_not_empty and the group stays as the record of that work (correct or remove its logs instead). A live group on the usage or billing ledger, or linked to a shipment, is never deleted: 409 group_billed. In test mode, cascade=true deletes the group with everything in it (nested groups, logs with their measurements, scans and photos); in live mode cascade is 400 parameter_invalid. Emits group.deleted for each deleted group. Afterwards GET returns 404 and lists leave it out; a second delete is 404 resource_missing. Publishable keys, capture tokens and phones signed in to the app cannot delete.
Keys: secret key; restricted key with groups:write.
Parameters
| Field | Description |
|---|---|
id requiredstring, path | Group id. |
cascadeboolean, query | Test mode only: delete the group with everything in it. Refused with 400 parameter_invalid in live mode. |
Request
const result = await timbereye.groups.delete("grp_7QxV3m")curl -X DELETE https://api.timbereye.com/v1/groups/grp_7QxV3m \
-H "Authorization: Bearer $TIMBEREYE_SECRET_KEY"timbereye groups delete grp_7QxV3m --yes --jsonResponse
// 200
{ "id": "grp_8Fq2Lm", "object": "group", "deleted": true }Errors
| Status | When |
|---|---|
400 | invalid_request_error: the request was malformed or a field was invalid. |
401 | authentication_error: missing, malformed, expired or revoked key. |
403 | permission_error: the key lacks the scope, the capture token is limited to other groups, or the resource is read-only to you. |
404 | invalid_request_error, resource_missing: no such object. Objects in another account are also reported as 404. |
409 | invalid_request_error: group_not_empty (the group holds logs, scans, groups or photos, has held logs, or a phone may still be capturing into it) or group_billed (it is on the usage or billing ledger in live mode, or is linked to a shipment). |
429 | rate_limit_error: slow down and retry after the Retry-After delay. |
500 | api_error: something went wrong on our side. Safe to retry with the same Idempotency-Key. |
Set a group's weight#
PUT/v1/groups/{id}/weight
Sets or replaces the weight from a scale ticket. Net weight is spread over the group's items in proportion to volume (remainder on the first item, so items sum exactly); allocation reruns whenever items, volumes or the weight change. Earlier values stay in the event feed (group.updated). When gross, tare and net are all given, net must equal gross less tare exactly in the given unit, else 422 weight_inconsistent with param: net; a tare above gross is 422 weight_inconsistent with param: tare. Without net, net is derived as gross less tare and entered.net stays null; net_kg is always present. Timbereye records who entered the weight and when (entered_by, entered_at); ticket_image_id links the weighbridge ticket's photo (a group image of this group, kind weigh_ticket).
Keys: secret key; restricted key with groups:write; capture token (Allowed for the token's groups); publishable key (Allowed on a group the device may capture into (any product), so a worker can enter the weighbridge ticket; returns a capture_group. Take the ticket as a group photo of kind weigh_ticket).
Parameters
| Field | Description |
|---|---|
id requiredstring, path | Group id. |
Body
| Field | Description |
|---|
Request
A phone does not call this itself: the Swift and Kotlin SDKs make this call for the scanner, with the app's key. See Scan in your app. The samples are for your server.
const result = await timbereye.groups.setWeight("grp_7QxV3m", {
gross: 52480,
tare: 14120,
unit: "lb",
ticketRef: "WT-88213",
weighedAt: "2027-02-03T15:20:00Z",
})curl -X PUT https://api.timbereye.com/v1/groups/grp_7QxV3m/weight \
-H "Authorization: Bearer $TIMBEREYE_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"gross": 52480,
"tare": 14120,
"unit": "lb",
"ticket_ref": "WT-88213",
"weighed_at": "2027-02-03T15:20:00Z"
}'timbereye groups set-weight grp_7QxV3m \
--gross 52480 \
--tare 14120 \
--ticket-ref WT-88213 \
--weighed-at 2027-02-03T15:20:00Z \
--data '{"unit":"lb"}' \
--jsonResponse
// 200
{
"id": "grp_7QxV3m",
"object": "group",
"livemode": true,
"client_id": null,
"kind": "container",
"name": "MSKU1234567",
"external_ref": "ctr_4821",
"parent_id": null,
"origin_place_id": "plc_4Hk2pT",
"origin": {
"place_id": "plc_4Hk2pT",
"source": "assigned",
"determined_at": "2027-02-03T14:00:00Z",
"assigned_by": { "type": "key", "id": "key_1a2B3c" },
"evidence": null
},
"defaults": {
"species": "PINE_TAEDA",
"length_m": 11.8,
"grade": null,
"diameter_class_m": null
},
"weight": null,
"summary": {
"items": 0,
"measured": 0,
"refined": 0,
"volume": { "rule": "jas", "m3": 0 },
"net_kg": null,
"density_kg_m3": null,
"weight_allocation": "none",
"assigned_count": 0
},
"version": 0,
"metadata": { "erp_booking": "BK-2231" },
"created_at": "2027-02-03T14:05:11Z"
}Errors
| Status | When |
|---|---|
400 | invalid_request_error: the request was malformed or a field was invalid. |
401 | authentication_error: missing, malformed, expired or revoked key. |
403 | permission_error: the key lacks the scope, the capture token is limited to other groups, or the resource is read-only to you. |
404 | invalid_request_error, resource_missing: no such object. Objects in another account are also reported as 404. |
409 | invalid_request_error: idempotency_key_reused, idempotency_request_in_progress, group_not_empty, group_billed, place_in_use, resource_exists, place_name_taken or another state conflict. |
413 | invalid_request_error, payload_too_large: the upload is over the size limit (10 MB for multipart). |
422 | invalid_request_error: the request was well formed but cannot be applied. Codes: group_cycle, group_depth_exceeded, unit_ambiguous, weight_inconsistent, area_ha_not_allowed, assignment_required. |
429 | rate_limit_error: slow down and retry after the Retry-After delay. |
500 | api_error: something went wrong on our side. Safe to retry with the same Idempotency-Key. |
503 | api_error: isolation_unavailable (the resource's account isolation is not in place), service_unavailable (for example image storage not available in this environment) or model_unavailable (no on-device detector to offer in this environment). Retry later. |
Remove a group's weight#
DELETE/v1/groups/{id}/weight
Removes the group's weight and the per-log shares allocated from it; logs with a measured weight keep it. Emits group.updated. Removing a weight from a group that has none returns the group.
Keys: secret key; restricted key with groups:write.
Parameters
| Field | Description |
|---|---|
id requiredstring, path | Group id. |
Request
const result = await timbereye.groups.clearWeight("grp_7QxV3m")curl -X DELETE https://api.timbereye.com/v1/groups/grp_7QxV3m/weight \
-H "Authorization: Bearer $TIMBEREYE_SECRET_KEY"timbereye groups clear-weight grp_7QxV3m --jsonResponse
// 200
{
"id": "grp_7QxV3m",
"object": "group",
"livemode": true,
"client_id": null,
"kind": "container",
"name": "MSKU1234567",
"external_ref": "ctr_4821",
"parent_id": null,
"origin_place_id": "plc_4Hk2pT",
"origin": {
"place_id": "plc_4Hk2pT",
"source": "assigned",
"determined_at": "2027-02-03T14:00:00Z",
"assigned_by": { "type": "key", "id": "key_1a2B3c" },
"evidence": null
},
"defaults": {
"species": "PINE_TAEDA",
"length_m": 11.8,
"grade": null,
"diameter_class_m": null
},
"weight": null,
"summary": {
"items": 0,
"measured": 0,
"refined": 0,
"volume": { "rule": "jas", "m3": 0 },
"net_kg": null,
"density_kg_m3": null,
"weight_allocation": "none",
"assigned_count": 0
},
"version": 0,
"metadata": { "erp_booking": "BK-2231" },
"created_at": "2027-02-03T14:05:11Z"
}Errors
| Status | When |
|---|---|
401 | authentication_error: missing, malformed, expired or revoked key. |
403 | permission_error: the key lacks the scope, the capture token is limited to other groups, or the resource is read-only to you. |
404 | invalid_request_error, resource_missing: no such object. Objects in another account are also reported as 404. |
409 | invalid_request_error: idempotency_key_reused, idempotency_request_in_progress, group_not_empty, group_billed, place_in_use, resource_exists, place_name_taken or another state conflict. |
429 | rate_limit_error: slow down and retry after the Retry-After delay. |
500 | api_error: something went wrong on our side. Safe to retry with the same Idempotency-Key. |
503 | api_error: isolation_unavailable (the resource's account isolation is not in place), service_unavailable (for example image storage not available in this environment) or model_unavailable (no on-device detector to offer in this environment). Retry later. |