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.
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:
- Owner
- System Administrator
- Manager
- Associate Manager
- Warehouse Associate
- Sales Associate
- An API key whose scope allows
api:cannedUoms
What happens
Reads only.
Returns
CannedUom [CannedUom!]! — One canned unit of measure.
Example request
graphql
query ExampleCannedUoms {
cannedUoms {
code
caption
dimensionClass
factorToBase
}
}Example response
json
{
"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
VALIDATION/INVALID— Something in the request is not valid. Retry: no. (VALIDATION)AUTHN/REQUIRED— Sign in to do this. Retry: no. (AUTHN)AUTHZ/FORBIDDEN— Your role does not allow this action. Retry: no. (AUTHZ)RATE_LIMIT/THROTTLED— Too many requests in a short time. Retry: yes. (RATE_LIMIT)