Simple items

List simple items

GET
/api/simple-items
List simple items.
curl --request GET \
  --url 'https://rologi-flow.example.com/api/simple-items?number=1&size=50' \
  --header 'Authorization: Bearer <token>' \
  --header 'Ras-Api-Version: 1'
{
  "content": [
    {
      "id": "CHOCOLATE-BAR",
      "name": "Chocolate Bar",
      "imageUrl": "https://cdn.example.com/items/chocolate-bar.png",
      "scancodes": [
        "8000500037567",
        "8591000000005"
      ],
      "uom": "PIECE",
      "packs": [
        {
          "id": "CHOCOLATE-BAR-PACK-6",
          "name": "Chocolate Bar - Pack of 6",
          "scancodes": [
            "2000000000001",
            "2000000000002"
          ],
          "imageUrl": "https://cdn.example.com/items/chocolate-bar-pack-6.png",
          "count": 6,
          "packagingUnits": [
            {
              "id": "CARTON-60",
              "scancode": "18000500037564",
              "count": 60,
              "imageUrl": "https://cdn.example.com/items/chocolate-bar-carton-60.png",
              "dimensions": {
                "length": 400,
                "width": 300,
                "height": 220,
                "unit": "MILLIMETER"
              },
              "weight": {
                "net": 43,
                "gross": 47,
                "unit": "GRAM"
              }
            }
          ],
          "dimensions": {
            "length": 400,
            "width": 300,
            "height": 220,
            "unit": "MILLIMETER"
          },
          "weight": {
            "net": 43,
            "gross": 47,
            "unit": "GRAM"
          }
        }
      ],
      "packagingUnits": [
        {
          "id": "CARTON-60",
          "scancode": "18000500037564",
          "count": 60,
          "imageUrl": "https://cdn.example.com/items/chocolate-bar-carton-60.png",
          "dimensions": {
            "length": 400,
            "width": 300,
            "height": 220,
            "unit": "MILLIMETER"
          },
          "weight": {
            "net": 43,
            "gross": 47,
            "unit": "GRAM"
          }
        }
      ],
      "dimensions": {
        "length": 400,
        "width": 300,
        "height": 220,
        "unit": "MILLIMETER"
      },
      "weight": {
        "net": 43,
        "gross": 47,
        "unit": "GRAM"
      }
    }
  ],
  "page": {
    "number": 1,
    "size": 50,
    "totalElements": 123,
    "totalPages": 123
  }
}

Returns a paged list of simple items. Use paging parameters to traverse the result set.

Sorting supports the fields:

  • id
  • name
  • uom

Authorizations

Authorization
stringheaderrequired

JWT bearer token authentication.

Parameters

number
integerquery

Page number (1..n).

size
integerquery

Number of items per page.

Ras-Api-Version
enum<string>header
Available options: 1

Response

application/json

OK

content
object[]required

Items for this page (length may be less than the requested size on the last page).

Hide child attributes

content.id
string

Unique identifier of the item

content.name
string

Human readable name of the item

content.imageUrl
string | null

URL to an image representing the item

content.scancodes
string[]

Scannable barcodes assigned to the item, in ascending order

content.uom
enum<string>

Base unit of measure for the item

Available options: PIECE, GRAM, KILOGRAM
content.packs
object[]

Multipacks defined for this item, ordered by identifier. Left out when the item has none.

Hide child attributes

content.packs.id
stringrequired

Unique identifier of the multipack

content.packs.name
stringrequired

Human readable name of the multipack

content.packs.scancodes
string[]required

Scannable barcodes assigned to the multipack, in ascending order

content.packs.imageUrl
string | null

URL to an image representing the multipack

content.packs.count
integer

Number of base items contained in the multipack

content.packs.packagingUnits
object[]

Supplier packagings defined for this multipack, ordered by identifier

Hide child attributes

content.packs.packagingUnits.id
string

Unique identifier of the packaging within the item

content.packs.packagingUnits.scancode
string

Scancode printed on the packaging

content.packs.packagingUnits.count
integer

Number of pieces of the item contained in the packaging

content.packs.packagingUnits.imageUrl
string | null

URL to an image representing the packaging

content.packs.packagingUnits.dimensions
object | null

Outer size of the packaging

Hide child attributes

content.packs.packagingUnits.dimensions.length
integerrequired

Longer base side.

content.packs.packagingUnits.dimensions.width
integerrequired

Shorter base side.

content.packs.packagingUnits.dimensions.height
integerrequired

Height.

content.packs.packagingUnits.dimensions.unit
enum<string>

Unit the dimensions are expressed in.

Available options: MILLIMETER
content.packs.packagingUnits.weight
object | null

Weight of the packaging

Hide child attributes

content.packs.packagingUnits.weight.net
integer | null

Weight of the goods alone.

content.packs.packagingUnits.weight.gross
integer | null

Weight of the goods including their wrapping.

content.packs.packagingUnits.weight.unit
enum<string>

Unit the weight values are expressed in.

Available options: GRAM
content.packs.dimensions
object | null

Outer size of the multipack

Hide child attributes

content.packs.dimensions.length
integerrequired

Longer base side.

content.packs.dimensions.width
integerrequired

Shorter base side.

content.packs.dimensions.height
integerrequired

Height.

content.packs.dimensions.unit
enum<string>

Unit the dimensions are expressed in.

Available options: MILLIMETER
content.packs.weight
object | null

Weight of the multipack

Hide child attributes

content.packs.weight.net
integer | null

Weight of the goods alone.

content.packs.weight.gross
integer | null

Weight of the goods including their wrapping.

content.packs.weight.unit
enum<string>

Unit the weight values are expressed in.

Available options: GRAM
content.packagingUnits
object[]

Supplier packagings defined for this item, ordered by identifier. Left out when the item has none.

Hide child attributes

content.packagingUnits.id
string

Unique identifier of the packaging within the item

content.packagingUnits.scancode
string

Scancode printed on the packaging

content.packagingUnits.count
integer

Number of pieces of the item contained in the packaging

content.packagingUnits.imageUrl
string | null

URL to an image representing the packaging

content.packagingUnits.dimensions
object | null

Outer size of the packaging

Hide child attributes

content.packagingUnits.dimensions.length
integerrequired

Longer base side.

content.packagingUnits.dimensions.width
integerrequired

Shorter base side.

content.packagingUnits.dimensions.height
integerrequired

Height.

content.packagingUnits.dimensions.unit
enum<string>

Unit the dimensions are expressed in.

Available options: MILLIMETER
content.packagingUnits.weight
object | null

Weight of the packaging

Hide child attributes

content.packagingUnits.weight.net
integer | null

Weight of the goods alone.

content.packagingUnits.weight.gross
integer | null

Weight of the goods including their wrapping.

content.packagingUnits.weight.unit
enum<string>

Unit the weight values are expressed in.

Available options: GRAM
content.dimensions
object | null

Outer size of one piece of the item. Left out when unknown.

Hide child attributes

content.dimensions.length
integerrequired

Longer base side.

content.dimensions.width
integerrequired

Shorter base side.

content.dimensions.height
integerrequired

Height.

content.dimensions.unit
enum<string>

Unit the dimensions are expressed in.

Available options: MILLIMETER
content.weight
object | null

Weight of one piece of the item. Left out when unknown.

Hide child attributes

content.weight.net
integer | null

Weight of the goods alone.

content.weight.gross
integer | null

Weight of the goods including their wrapping.

content.weight.unit
enum<string>

Unit the weight values are expressed in.

Available options: GRAM
page
objectrequired

Paging metadata for this response.

Hide child attributes

page.number
integerrequired

1-based index of this page (same convention as paging request parameter `number`).

page.size
integerrequired

Page size requested (maximum number of items per page).

page.totalElements
integerrequired

Total number of matching items across all pages.

page.totalPages
integerrequired

Total number of pages for the query at the requested page size.