Skip to main content

skuPatterns

Requires at least one of the permissions products:product:create or products:product:update.

Lists the organization's SKU patterns. Needs the products create or update permission.

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 SkuPatterns {
skuPatterns {
id
name
createdAt
brandId
categoryId
deletedAt
brand {
id
code
name
createdAt
deletedAt
deletedBy
}
}
}

Response:

{
"data": {
"skuPatterns": [
{
"id": "id",
"name": "string",
"createdAt": "2025-01-15T00:00:00Z",
"brandId": "id",
"categoryId": "id",
"deletedAt": "2025-01-15T00:00:00Z",
"brand": {
"id": "id",
"code": "string",
"name": "string",
"createdAt": "2025-01-15T00:00:00Z",
"deletedAt": "2025-01-15T00:00:00Z",
"deletedBy": "string"
}
}
]
}
}
skuPatterns: [SKUPattern!]!

Type​

SKUPattern object​

A rule that builds SKUs from placeholders such as brand, category and a running number.