AlmondTill/G3N API

Count the shelves against the books

How the books stay honest: a count freezes a location’s lines, the counter works blind against the shelves, captures record what was physically found, and posting moves the books by exactly the differences — no more, no less.

Warehouse · a guided walk in 4 steps.

In the office

Set up a cycle count for one category at one location, start it so the counters work blind, capture what they find, and post the differences. Posting moves the books by exactly the variances — no more, no less — and the count becomes history; a recount is a new count linked to the first.

This walk starts wherever you are in the office.

Step 1. The count names its location and why it is being taken — wall-to-wall, a scheduled cycle, or a spot check. Open Stock counts and create one for the location. Open Stock counts.

Stock counts — /counts
Stock counts — /counts

Step 2. Starting freezes the shelf list into concrete lines and hides the expected figures — an honest count is a blind count. Start from the count page when the counters are ready. Open Stock counts.

Step 3. Each capture records the physically-counted quantity — an explicit zero is a real answer; re-counts overwrite while counting. Capture quantities on the count page, line by line. Open Stock counts.

Step 4. Posting moves the books by exactly the variances and the count becomes history; a recount is a new linked count. Post from the count page once every line is captured. Open Stock counts.

What you see

The example shop is Linden & Vale; a posted count moves its books by exactly the differences found, and nothing else.

Try it

Walked with screenshots in the manager’s manual: chapter 2 — Count one category on a Tuesday — and post the differences

For developers — the calls

The steps

  1. Set up the count — The count names its location and why it is being taken — wall-to-wall, a scheduled cycle, or a spot check. — createCount
  2. Start it — Starting freezes the shelf list into concrete lines and hides the expected figures — an honest count is a blind count. — startCount
  3. Capture what you find — Each capture records the physically-counted quantity — an explicit zero is a real answer; re-counts overwrite while counting. — captureCount
  4. Post the differences — Posting moves the books by exactly the variances and the count becomes history; a recount is a new linked count. — postCount

The calls

Every operation this use case runs, in the order it first appears, with the request and the response its reference page shows.

createCount

createCount — mutation · Create a new stock count — checking real shelves against the books at your organization.

Example request

graphql
mutation ExampleCreateCount($input: CreateCountInput!) {
  createCount(input: $input) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    organizationId
    countType
    recountOfCountId
  }
}

Variables:

json
{
  "input": {
    "caption": "Blue jeans",
    "logicalFacilityId": "01900000-0000-7000-8000-10c08c590000",
    "countType": "physical"
  }
}

Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.

Example response

json
{
  "data": {
    "createCount": {
      "id": "01900000-0000-7000-8000-e1e7b8940000",
      "sysId": "IC-EXMP-0000-000F",
      "type": "Count",
      "caption": "Blue jeans",
      "status": "draft",
      "parentId": "01900000-0000-7000-8000-10c08c590000",
      "rootId": "01900000-0000-7000-8000-a1295a650000",
      "createdAt": "2027-01-31T00:00:00.000Z",
      "updatedAt": "2027-01-31T00:00:00.000Z",
      "revisionNum": 0,
      "revision": "01900000-0000-7000-8000-53c6eea90000",
      "organizationId": "01900000-0000-7000-8000-1971e30a0000",
      "countType": "physical",
      "recountOfCountId": "01900000-0000-7000-8000-df1841e90000"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

startCount

startCount — mutation · Start a stock count — the checklist of what to count is drawn up.

Example request

graphql
mutation ExampleStartCount($id: ID!, $revision: ID!, $reason: String) {
  startCount(id: $id, revision: $revision, reason: $reason) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    organizationId
    countType
    recountOfCountId
  }
}

Variables:

json
{
  "id": "01900000-0000-7000-8000-e1e7b8940000",
  "revision": "01900000-0000-7000-8000-b7960e180000",
  "reason": "Correcting a miscount."
}

Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.

Example response

json
{
  "data": {
    "startCount": {
      "id": "01900000-0000-7000-8000-e1e7b8940000",
      "sysId": "IC-EXMP-0000-000F",
      "type": "Count",
      "caption": "Blue jeans",
      "status": "counting",
      "parentId": "01900000-0000-7000-8000-10c08c590000",
      "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",
      "organizationId": "01900000-0000-7000-8000-1971e30a0000",
      "countType": "physical",
      "recountOfCountId": "01900000-0000-7000-8000-df1841e90000"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

captureCount

captureCount — mutation · Enter counted quantities into an open stock count.

Example request

graphql
mutation ExampleCaptureCount($input: CaptureCountInput!, $revision: ID!, $reason: String) {
  captureCount(input: $input, revision: $revision, reason: $reason) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    organizationId
    countType
    recountOfCountId
  }
}

Variables:

json
{
  "input": {
    "countId": "01900000-0000-7000-8000-e1e7b8940000",
    "lines": [
      {
        "lineNo": 1,
        "countedQty": "<counted qty>"
      }
    ]
  },
  "revision": "01900000-0000-7000-8000-b7960e180000",
  "reason": "Correcting a miscount."
}

Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.

Example response

json
{
  "data": {
    "captureCount": {
      "id": "01900000-0000-7000-8000-e1e7b8940000",
      "sysId": "IC-EXMP-0000-000F",
      "type": "Count",
      "caption": "Blue jeans",
      "status": "draft",
      "parentId": "01900000-0000-7000-8000-10c08c590000",
      "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",
      "organizationId": "01900000-0000-7000-8000-1971e30a0000",
      "countType": "physical",
      "recountOfCountId": "01900000-0000-7000-8000-df1841e90000"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

postCount

postCount — mutation · Post a completed stock count — the counted truth replaces the book figures.

Example request

graphql
mutation ExamplePostCount($id: ID!, $revision: ID!, $reason: String) {
  postCount(id: $id, revision: $revision, reason: $reason) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    organizationId
    countType
    recountOfCountId
  }
}

Variables:

json
{
  "id": "01900000-0000-7000-8000-e1e7b8940000",
  "revision": "01900000-0000-7000-8000-b7960e180000",
  "reason": "Correcting a miscount."
}

Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.

Example response

json
{
  "data": {
    "postCount": {
      "id": "01900000-0000-7000-8000-e1e7b8940000",
      "sysId": "IC-EXMP-0000-000F",
      "type": "Count",
      "caption": "Blue jeans",
      "status": "posted",
      "parentId": "01900000-0000-7000-8000-10c08c590000",
      "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",
      "organizationId": "01900000-0000-7000-8000-1971e30a0000",
      "countType": "physical",
      "recountOfCountId": "01900000-0000-7000-8000-df1841e90000"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}