Simple items
Keep the item catalogue in step with your system.
A simple item is one stock keeping unit. Task lines refer to it by its identifier.
Create or update
Send PUT with the item identifier in the path. Rologi Flow creates the item if it does not exist, or updates it if it exists.
PUT https://rologi-flow.example.com/api/simple-items/chocolate-bar
Authorization: Bearer <token>
Content-Type: application/json
{
"name": "Chocolate Bar",
"scancodes": ["8000500037567", "8591000000005"],
"uom": "PIECE",
"dimensions": {
"length": 150,
"width": 40,
"height": 10,
"unit": "MILLIMETER"
},
"weight": {
"net": 43,
"gross": 47,
"unit": "GRAM"
},
"packs": [
{
"id": "CHOCOLATE-BAR-PACK-6",
"name": "Chocolate Bar - Pack of 6",
"count": 6,
"scancodes": ["2000000000001"]
}
],
"packagingUnits": [
{
"id": "CARTON-60",
"scancode": "18000500037564",
"count": 60
}
]
}| Field | Meaning |
|---|---|
name | Name of the item for a person to read. Required. |
scancodes | The set of scannable barcodes of the item. Required. |
uom | Base unit of measure: PIECE, GRAM or KILOGRAM. |
imageUrl | URL of an image of the item. |
dimensions | Outer size of one piece. Rologi Flow accepts it only for items with the unit PIECE. |
weight | Weight of one piece. Rologi Flow accepts it only for items with the unit PIECE. |
packs | Optional multipacks of the item. |
packagingUnits | Optional supplier packagings in which the item arrives. |
Multipacks
A multipack contains a number of base items (count). It has its own id, name and scancodes. It can also have its own dimensions, weight and supplier packagings.
Supplier packagings
A supplier packaging is the packaging in which the item arrives from a supplier. It is not a sellable unit. Use a multipack for a sellable unit.
| Field | Meaning |
|---|---|
id | Identifier of the packaging, unique in the item. Required. |
scancode | The scancode on the packaging. Required. More than one packaging of the same item can have the same scancode while a supplier makes a change. |
count | Number of pieces of the item in the packaging. |
imageUrl | URL of an image of the packaging. It is used for a visual check before decanting. |
dimensions, weight | Outer size and weight of the packaging. |
Dimensions and weight
dimensionshaslength,widthandheightinMILLIMETER. The length is the longer base side, and the width is the shorter base side.weighthasnet(the goods alone) andgross(the goods with their wrapping) in wholeGRAM. Send one of the two values or both.
Batch upsert
POST /api/simple-items takes a list of entries. Each entry has the item id and the item data.
POST https://rologi-flow.example.com/api/simple-items
Authorization: Bearer <token>
Content-Type: application/json
{
"entries": [
{
"id": "chocolate-bar",
"entry": {
"name": "Chocolate Bar",
"scancodes": ["8000500037567"],
"uom": "PIECE"
}
},
{
"id": "digital-camera",
"entry": {
"name": "Digital Camera",
"scancodes": ["8590000125008"],
"uom": "PIECE"
}
}
]
}- Rologi Flow inserts unknown identifiers.
- If more than one entry has the same identifier, Rologi Flow processes only the last one.
- The answer
207has a body with the result: theupsertedidentifiers and theerrors.
Delete
DELETE /api/simple-items/{id}deletes one item. The operation is idempotent.DELETE /api/simple-itemswith a list ofidsdeletes many items. Rologi Flow ignores unknown identifiers.
DELETE https://rologi-flow.example.com/api/simple-items
Authorization: Bearer <token>
Content-Type: application/json
{
"ids": ["chocolate-bar", "digital-camera"]
}Read and search
GET /api/simple-items/{id} returns the full item with its multipacks. GET /api/simple-items returns a page of items. You can sort the list by id, name or uom.
POST /api/simple-items/search searches the catalogue. The free text also finds an item by a scancode of one of its multipacks or supplier packagings. See search and paging.
Reference
Create or update, batch upsert, get, list, search, delete, batch delete.