AlmondTill/G3N API

On this page

cannedUoms

query · in the family Reading your records

What it does

The platform’s preset units of measure (each, pair, kilogram…) — copy or reference them instead of redefining the basics.

The canned UoM registry. Requires authentication.

What happens

Reads only.

Who may call it

Capability area: Reading your records — Looking up and listing the records of your organization.

Returns

CannedUom [CannedUom!]! — One canned unit of measure.

Example request

query ExampleCannedUoms {
  cannedUoms {
    code
    caption
    dimensionClass
    factorToBase
  }
}

Example response

{
  "data": {
    "cannedUoms": [
      {
        "code": "BJ-001",
        "caption": "Blue jeans",
        "dimensionClass": "count",
        "factorToBase": 1.5
      }
    ]
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": null,
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer