Skip to main content

getProductUOM

Requires permission products:product:read.

One pack (a unit on a product or variant) by its id, or null when it was removed or is not this organization's.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query GetProductUOM($id: String!) {
getProductUOM(id: $id) {
id
createdAt
barcode
conversionFactor
deletedAt
deletedBy
uom {
id
code
colorCode
name
pluralName
createdAt
}
}
}

Variables:

{
"id": "string"
}

Response:

{
"data": {
"getProductUOM": {
"id": "id",
"createdAt": "2025-01-15T00:00:00Z",
"barcode": "string",
"conversionFactor": 0,
"deletedAt": "2025-01-15T00:00:00Z",
"deletedBy": "string",
"uom": {
"id": "id",
"code": "string",
"colorCode": "string",
"name": "string",
"pluralName": "string",
"createdAt": "2025-01-15T00:00:00Z"
}
}
}
}
getProductUOM(
id: String!
): ProductUOM

Arguments​

getProductUOM.id ● String! non-null scalar​

The ID of the product unit (pack).

Type​

ProductUOM object​

A unit (pack) set up on a product or variant: its conversion factor to the base unit, the documents it can be used on, and its ordering and pricing rules.