transferLanes
query · in the family Transfer lane
What it does
The transfer lane list — each entry is a transfer lane — a named sender→receiver route stock moves along.
The TransferLanes your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed.
Before you call
A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.
Capability area: Reading your records — Looking up and listing the records of your organization.
Roles that may call it:
- Owner
- System Administrator
- Manager
- Associate Manager
- Warehouse Associate
- Sales Associate
- An API key whose scope allows
api:transferLanes
What happens
Reads only — changes nothing.
Returns
TransferLane [TransferLane!]! — Group-scoped like a Brand (parent = the org group). The matrix is sparse + the geo seed is virtual: an absent pair ranks by geodistance (LF→PF→PFL.geo) AT read — no seeder materializes derivable rows; overriding the default = creating the specific lane. The pair is immutable at birth (re-route = create + doom; src == dest refused) and unique per group (the ordered-pair marker — a live duplicate is CONFLICT/IDENTITY_TAKEN naming the holder; a doomed holder is taken over). rank is required iff mode is ranked and refused otherwise (strict both ways; a mode moving OFF ranked drops the stored rank — the merged-record law). Inactive = absent, not never: deactivating returns the pair to the sparse geodistance default — a standing prohibition must stay active never. A NON-doomed lane blocks both its LFs dooms; deactivate stays free. Money reuses the MoneyEntry SDL (declared on the Product entry).
Example request
query ExampleTransferLanes {
transferLanes {
id
sysId
type
caption
status
parentId
rootId
createdAt
updatedAt
revisionNum
revision
sourceLfId
destinationLfId
mode
rank
typicalLeadTimeDays
weightClass
}
}Example response
{
"data": {
"transferLanes": [
{
"id": "01900000-0000-7000-8000-e7c44a140000",
"sysId": "TL-EXMP-0000-000F",
"type": "TransferLane",
"caption": "Blue jeans",
"status": "active",
"parentId": "01900000-0000-7000-8000-eacdfcfd0000",
"rootId": "01900000-0000-7000-8000-a1295a650000",
"createdAt": "2027-01-31T00:00:00.000Z",
"updatedAt": "2027-01-31T00:00:00.000Z",
"revisionNum": 1,
"revision": "01900000-0000-7000-8000-53c6eea90000",
"sourceLfId": "01900000-0000-7000-8000-0560b74e0000",
"destinationLfId": "01900000-0000-7000-8000-4560391d0000",
"mode": "never",
"rank": 1,
"typicalLeadTimeDays": 1,
"weightClass": "light"
}
]
},
"extensions": {
"at": {
"callId": "01EXAMPLE-CALL-ID",
"version": {
"requested": null,
"serviced": {
"name": "genesis",
"number": 0
}
}
}
}
}Errors this call can answer
VALIDATION/INVALID— Something in the request is not valid. Retry: no. (VALIDATION)AUTHN/REQUIRED— Sign in to do this. Retry: no. (AUTHN)AUTHZ/FORBIDDEN— Your role does not allow this action. Retry: no. (AUTHZ)RATE_LIMIT/THROTTLED— Too many requests in a short time. Retry: yes. (RATE_LIMIT)