AlmondTill/G3N API

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:

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

graphql
query ExampleTransferLanes {
  transferLanes {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    sourceLfId
    destinationLfId
    mode
    rank
    typicalLeadTimeDays
    weightClass
  }
}

Example response

json
{
  "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