AlmondTill/G3N API

tillSession

query · in the family Till session

What it does

Look up one record — a till session — one drawer’s working shift, opened and closed with counts.

One TillSession by id. The record must belong to your organization group; an id from another group reads as not found.

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.

Arguments

NameTypeRequiredNotes
idID ID!yesThe id of the record.

Returns

TillSession — A TillSession — the cash-drawer session at a Register: opened by a User with a counted starting float, tracking float / expected / counted / over-short through the immutable CashEntry ledger. ONE live session per register. Expected cash = the drawerTotals cache, stamped in the same transaction as every entry post. The shift IS this doc; X/Z report artifacts are the reports family.

Example request

graphql
query ExampleTillSession($id: ID!) {
  tillSession(id: $id) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    openedBy
    closedAt
    noSaleCount
    lastNoSaleAt
  }
}

Variables:

json
{
  "id": "01900000-0000-7000-8000-4ed885220000"
}

Example response

json
{
  "data": {
    "tillSession": {
      "id": "01900000-0000-7000-8000-4ed885220000",
      "sysId": "TS-EXMP-0000-000F",
      "type": "TillSession",
      "caption": "Blue jeans",
      "status": "open",
      "parentId": "01900000-0000-7000-8000-2739c9e00000",
      "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",
      "openedBy": "01900000-0000-7000-8000-553745ed0000",
      "closedAt": "2027-01-31T00:00:00.000Z",
      "noSaleCount": 1,
      "lastNoSaleAt": "2027-01-31T00:00:00.000Z"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": null,
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer