Item codes
A primary or alternate code (SKU, GTIN or other) that identifies a catalog item.
- API name:
productitemcodes - Domain: Catalog
- Modules: Master data
Fields
The API name is what the API, MCP and the CLI use.
| Name | API name | Type | Required | Description |
|---|---|---|---|---|
| ID | id | Record ID | Yes | |
| Item | productitemId | Reference | Yes | |
| Scheme | scheme | Constant | Yes | Code family: GTIN, internal SKU, legacy, or other scheme. |
| Code | value | Text | Yes | Scanned or entered value. GTIN values normalize to 14 digits in normalized. |
| Primary | isPrimary | Boolean | Yes | Primary sku and gtin on the item are projection-maintained; alternates are authored here. |
| Data | data | Data | ||
| Created by | createdBy | User | ||
| Created at | createdAt | Date and Time | Yes | |
| Updated by | updatedBy | User | ||
| Updated at | updatedAt | Date and Time | Yes | |
| Blocked by | blockedBy | User | ||
| Blocked at | blockedAt | Date and Time | ||
| Archived by | archivedBy | User | ||
| Archived at | archivedAt | Date and Time |
Relations
Owned records (solid line) are deleted with their owner. Grouped records (dashed line) can exist alone.
| Field | Points to | Kind |
|---|---|---|
Item productitemId | Product items | grouped by |
Actions
What you can do with a record. Every action also sends the webhook event productitemcodes.<action>. Reads (find, get, count) work on every table.
| Name | API name | Description | Where |
|---|---|---|---|
| Create | create | Add a new item code. | App · WebMCP · API · MCP · CLI |
| Edit | update | Save changes to this item code. | App · WebMCP · API · MCP · CLI |
| Block | block | Stop edits and deletion of this item code. It stays visible and can still appear on existing documents. Unblock to edit again. | App · API · CLI |
| Unblock | unblock | Allow edits and deletion of this item code again. | App · API · CLI |
| Archive | archive | Retire this item code from daily use. It leaves active lists and pickers, and most actions stop. Unarchive to restore it. | App · WebMCP · API · MCP · CLI |
| Restore | unarchive | Return this item code to active lists and actions. | App · WebMCP · API · MCP · CLI |
| Delete | delete | Delete this item code and the data that belongs with it. This cannot be undone. | App · WebMCP · API · MCP · CLI |