LookupProductIdentifierRequest
| Field | Type | Description |
|---|---|---|
value | string | Barcode or serial value to resolve. |
All operations use POST /public-api/publicapi.v1.Inventory/ and require the
creator’s inventory access in addition to the exact scope listed on each method.
An identifier value is a barcode or serial string that must be unique within
the workspace. Unix-second timestamps are int64 values, encoded as JSON strings.
LookupProductIdentifier resolves one barcode or serial value to its product
identifier record, returning the owning productId. Read-only; returns
NotFound when no identifier matches. Requires inventory:read.
POST /public-api/publicapi.v1.Inventory/LookupProductIdentifier Resolves a barcode or serial value to its product identifier. NotFound when the value is unknown in this workspace.
| Field | Type | Description |
|---|---|---|
value | string | Barcode or serial value to resolve. |
| Field | Type | Description |
|---|---|---|
identifier | ProductIdentifier | Matched identifier. |
ListProductIdentifiers returns the barcodes and serials registered for one
product, oldest first. Read-only. Requires inventory:read. Without pageSize (1 to 100) the first 100 return; when nextCursor is set,
send it back as cursor with the same filters for the next page.
POST /public-api/publicapi.v1.Inventory/ListProductIdentifiers Lists the registered barcode and serial identifiers for one product, oldest first. Without page_size the first 100 return with a next_cursor when more exist.
| Field | Type | Description |
|---|---|---|
product_id | string | Product whose identifiers to list. |
page_size | int32 | Rows per page, 1 to 100. Zero uses 100. Without page_size the first 100 return with a next_cursor when more exist. |
cursor | string | Opaque next_cursor from the previous page; keep the other filters the same. The preferred way to read every row. |
| Field | Type | Description |
|---|---|---|
identifiers | repeated ProductIdentifier | Identifiers registered for the product. |
next_cursor | string | Pass as cursor to read the next page. Empty on the last page. |
AddProductIdentifier registers a barcode or serial for a product. The value
must be unique in the workspace; a value already registered returns
AlreadyExists. This operation is not idempotent. Requires
inventory_identifier:write.
POST /public-api/publicapi.v1.Inventory/AddProductIdentifier Registers a barcode or serial identifier for a product. Not idempotent; a duplicate value conflicts.
| Field | Type | Description |
|---|---|---|
product_id | string | Product to register the identifier for. |
value | string | Barcode or serial value to register; must be unique in the workspace. |
| Field | Type | Description |
|---|---|---|
identifier | ProductIdentifier | The newly created identifier. |
DeleteProductIdentifier removes one identifier record by its ID. Requires
inventory_identifier:write.
POST /public-api/publicapi.v1.Inventory/DeleteProductIdentifier Deletes a product identifier by ID. Destructive; NotFound when the identifier does not exist.
| Field | Type | Description |
|---|---|---|
id | string | Identifier record to delete. |
No fields.