Master data and stock

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
    }
  ]
}
FieldMeaning
nameName of the item for a person to read. Required.
scancodesThe set of scannable barcodes of the item. Required.
uomBase unit of measure: PIECE, GRAM or KILOGRAM.
imageUrlURL of an image of the item.
dimensionsOuter size of one piece. Rologi Flow accepts it only for items with the unit PIECE.
weightWeight of one piece. Rologi Flow accepts it only for items with the unit PIECE.
packsOptional multipacks of the item.
packagingUnitsOptional 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.

FieldMeaning
idIdentifier of the packaging, unique in the item. Required.
scancodeThe scancode on the packaging. Required. More than one packaging of the same item can have the same scancode while a supplier makes a change.
countNumber of pieces of the item in the packaging.
imageUrlURL of an image of the packaging. It is used for a visual check before decanting.
dimensions, weightOuter size and weight of the packaging.

Dimensions and weight

  • dimensions has length, width and height in MILLIMETER. The length is the longer base side, and the width is the shorter base side.
  • weight has net (the goods alone) and gross (the goods with their wrapping) in whole GRAM. 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 207 has a body with the result: the upserted identifiers and the errors.

Delete

  • DELETE /api/simple-items/{id} deletes one item. The operation is idempotent.
  • DELETE /api/simple-items with a list of ids deletes 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"]
}

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.