AlmondTill/G3N API

Move stock between locations

How stock travels between your locations without losing custody: a transfer names the lines up front, submitting reserves them at the source, shipping carries them at their book value, and receiving lands them — with every shortfall or surplus disposed by name, never silently.

Warehouse · a guided walk in 5 steps.

In the office

Compose the transfer — which items, how much, from where to where — submit it so the stock is set aside at the source, ship it, receive what lands, and close it. Anything missing or extra is disposed by name — loss, damage, found, scrap, or returned — so the books never drift silently.

This walk starts wherever you are in the office.

Step 1. The transfer is the move’s paper: which items, how much, from where to where — fixed before anything moves. Open Transfers and create one; pick the two locations and the lines. Open Transfers.

Transfers — /transfers
Transfers — /transfers

Step 2. Submitting sets the stock aside at the source so it cannot be sold out from under the move; a same-place move completes right here. Submit from the transfer page when the lines are right. Open Transfers.

Step 3. Shipping marks the goods as on the road, carried at their book value until they land. Ship from the transfer page when the goods leave; the expected arrival may ride along. Open Transfers.

Step 4. Receiving records what actually arrived — on hand, or held for review; partial arrivals are normal, receive again as more lands. Receive on the transfer page, line by line. Open Transfers.

Step 5. A fully-landed move closes; anything missing or extra is disposed by name — loss, damage, found, scrap, or returned — so the books never drift silently. Close from the transfer page; a disputed move offers resolve instead. Open Transfers.

What you see

Last month the floor item of Tops style 1 (FW25) recorded 0 movements; a transfer that lands on the floor is one of them. The example shop’s Transfers page is empty — its history moved no stock between locations — so the transfer you see here will be your own.

Try it

Walked with screenshots in the receiver’s manual: chapter 2 — Move six units from the back room to the floor

For developers — the calls

The steps

  1. Compose the transfer — The transfer is the move’s paper: which items, how much, from where to where — fixed before anything moves. — createTransfer
  2. Submit to reserve — Submitting sets the stock aside at the source so it cannot be sold out from under the move; a same-place move completes right here. — submitTransfer
  3. Ship it — Shipping marks the goods as on the road, carried at their book value until they land. — shipTransfer
  4. Receive what lands — Receiving records what actually arrived — on hand, or held for review; partial arrivals are normal, receive again as more lands. — receiveTransfer
  5. Close it — or resolve the differences — A fully-landed move closes; anything missing or extra is disposed by name — loss, damage, found, scrap, or returned — so the books never drift silently. — closeTransfer, resolveTransfer

The calls

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

createTransfer

createTransfer — mutation · Create a new stock transfer between locations at your organization.

Example request

graphql
mutation ExampleCreateTransfer($input: CreateTransferInput!) {
  createTransfer(input: $input) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    destinationLogicalFacilityId
    weight
    sourceOrganizationId
    destinationOrganizationId
    expectedArrivalAt
    carrierRefs
  }
}

Variables:

json
{
  "input": {
    "caption": "Blue jeans",
    "sourceLogicalFacilityId": "01900000-0000-7000-8000-280b436e0000",
    "destinationLogicalFacilityId": "01900000-0000-7000-8000-c9ff9bd30000",
    "lines": [
      {
        "inventoryItemId": "01900000-0000-7000-8000-ab0d13b80000",
        "quantity": "2"
      }
    ]
  }
}

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

Example response

json
{
  "data": {
    "createTransfer": {
      "id": "01900000-0000-7000-8000-0895e8a60000",
      "sysId": "TF-EXMP-0000-000F",
      "type": "Transfer",
      "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",
      "destinationLogicalFacilityId": "01900000-0000-7000-8000-c9ff9bd30000",
      "weight": "<weight>",
      "sourceOrganizationId": "01900000-0000-7000-8000-ba02d0670000",
      "destinationOrganizationId": "01900000-0000-7000-8000-951ed1800000",
      "expectedArrivalAt": "2027-01-31T00:00:00.000Z",
      "carrierRefs": [
        "<carrier refs>"
      ]
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

submitTransfer

submitTransfer — mutation · Submit a stock transfer — commit the move between your locations.

Example request

graphql
mutation ExampleSubmitTransfer($id: ID!, $revision: ID!, $reason: String) {
  submitTransfer(id: $id, revision: $revision, reason: $reason) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    destinationLogicalFacilityId
    weight
    sourceOrganizationId
    destinationOrganizationId
    expectedArrivalAt
    carrierRefs
  }
}

Variables:

json
{
  "id": "01900000-0000-7000-8000-0895e8a60000",
  "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": {
    "submitTransfer": {
      "id": "01900000-0000-7000-8000-0895e8a60000",
      "sysId": "TF-EXMP-0000-000F",
      "type": "Transfer",
      "caption": "Blue jeans",
      "status": "pending_send_approval",
      "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",
      "destinationLogicalFacilityId": "01900000-0000-7000-8000-c9ff9bd30000",
      "weight": "<weight>",
      "sourceOrganizationId": "01900000-0000-7000-8000-ba02d0670000",
      "destinationOrganizationId": "01900000-0000-7000-8000-951ed1800000",
      "expectedArrivalAt": "2027-01-31T00:00:00.000Z",
      "carrierRefs": [
        "<carrier refs>"
      ]
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

shipTransfer

shipTransfer — mutation · Ship a transfer — the stock physically leaves the sender.

Example request

graphql
mutation ExampleShipTransfer($input: ShipTransferInput!, $revision: ID!, $reason: String) {
  shipTransfer(input: $input, revision: $revision, reason: $reason) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    destinationLogicalFacilityId
    weight
    sourceOrganizationId
    destinationOrganizationId
    expectedArrivalAt
    carrierRefs
  }
}

Variables:

json
{
  "input": {
    "transferId": "01900000-0000-7000-8000-0895e8a60000",
    "expectedArrivalAt": "2027-01-31T00:00:00.000Z"
  },
  "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": {
    "shipTransfer": {
      "id": "01900000-0000-7000-8000-0895e8a60000",
      "sysId": "TF-EXMP-0000-000F",
      "type": "Transfer",
      "caption": "Blue jeans",
      "status": "in_transit",
      "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",
      "destinationLogicalFacilityId": "01900000-0000-7000-8000-c9ff9bd30000",
      "weight": "<weight>",
      "sourceOrganizationId": "01900000-0000-7000-8000-ba02d0670000",
      "destinationOrganizationId": "01900000-0000-7000-8000-951ed1800000",
      "expectedArrivalAt": "2027-01-31T00:00:00.000Z",
      "carrierRefs": [
        "<carrier refs>"
      ]
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

receiveTransfer

receiveTransfer — mutation · Receive a transfer — the stock arrives and books into the receiver.

Example request

graphql
mutation ExampleReceiveTransfer($input: ReceiveTransferInput!, $revision: ID!, $reason: String) {
  receiveTransfer(input: $input, revision: $revision, reason: $reason) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    destinationLogicalFacilityId
    weight
    sourceOrganizationId
    destinationOrganizationId
    expectedArrivalAt
    carrierRefs
  }
}

Variables:

json
{
  "input": {
    "transferId": "01900000-0000-7000-8000-0895e8a60000",
    "receipts": [
      {
        "lineNo": 1,
        "quantity": "2",
        "toBucket": "on_hand"
      }
    ],
    "surplus": [
      {
        "lineNo": 1,
        "quantity": "2",
        "toBucket": "on_hand"
      }
    ]
  },
  "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": {
    "receiveTransfer": {
      "id": "01900000-0000-7000-8000-0895e8a60000",
      "sysId": "TF-EXMP-0000-000F",
      "type": "Transfer",
      "caption": "Blue jeans",
      "status": "pending_receive_approval",
      "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",
      "destinationLogicalFacilityId": "01900000-0000-7000-8000-c9ff9bd30000",
      "weight": "<weight>",
      "sourceOrganizationId": "01900000-0000-7000-8000-ba02d0670000",
      "destinationOrganizationId": "01900000-0000-7000-8000-951ed1800000",
      "expectedArrivalAt": "2027-01-31T00:00:00.000Z",
      "carrierRefs": [
        "<carrier refs>"
      ]
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

closeTransfer

closeTransfer — mutation · Close a completed transfer.

Example request

graphql
mutation ExampleCloseTransfer($id: ID!, $revision: ID!, $reason: String) {
  closeTransfer(id: $id, revision: $revision, reason: $reason) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    destinationLogicalFacilityId
    weight
    sourceOrganizationId
    destinationOrganizationId
    expectedArrivalAt
    carrierRefs
  }
}

Variables:

json
{
  "id": "01900000-0000-7000-8000-0895e8a60000",
  "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": {
    "closeTransfer": {
      "id": "01900000-0000-7000-8000-0895e8a60000",
      "sysId": "TF-EXMP-0000-000F",
      "type": "Transfer",
      "caption": "Blue jeans",
      "status": "closed",
      "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",
      "destinationLogicalFacilityId": "01900000-0000-7000-8000-c9ff9bd30000",
      "weight": "<weight>",
      "sourceOrganizationId": "01900000-0000-7000-8000-ba02d0670000",
      "destinationOrganizationId": "01900000-0000-7000-8000-951ed1800000",
      "expectedArrivalAt": "2027-01-31T00:00:00.000Z",
      "carrierRefs": [
        "<carrier refs>"
      ]
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

resolveTransfer

resolveTransfer — mutation · Resolve a transfer’s missing or damaged residuals — decide loss, damage, or found, in one step.

Example request

graphql
mutation ExampleResolveTransfer($input: ResolveTransferInput!, $revision: ID!, $reason: String) {
  resolveTransfer(input: $input, revision: $revision, reason: $reason) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    destinationLogicalFacilityId
    weight
    sourceOrganizationId
    destinationOrganizationId
    expectedArrivalAt
    carrierRefs
  }
}

Variables:

json
{
  "input": {
    "transferId": "01900000-0000-7000-8000-0895e8a60000",
    "resolutions": [
      {
        "lineNo": 1,
        "quantity": "2",
        "disposition": "<disposition>",
        "reason": "Correcting a miscount."
      }
    ]
  },
  "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": {
    "resolveTransfer": {
      "id": "01900000-0000-7000-8000-0895e8a60000",
      "sysId": "TF-EXMP-0000-000F",
      "type": "Transfer",
      "caption": "Blue jeans",
      "status": "closed",
      "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",
      "destinationLogicalFacilityId": "01900000-0000-7000-8000-c9ff9bd30000",
      "weight": "<weight>",
      "sourceOrganizationId": "01900000-0000-7000-8000-ba02d0670000",
      "destinationOrganizationId": "01900000-0000-7000-8000-951ed1800000",
      "expectedArrivalAt": "2027-01-31T00:00:00.000Z",
      "carrierRefs": [
        "<carrier refs>"
      ]
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}