Search simple items
curl --request POST \
--url https://rologi-flow.example.com/api/simple-items/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Ras-Api-Version: 1' \
--data '
{
"filter": {
"type": "QUERY",
"query": [
{
"field": "state",
"operator": "in",
"value": [
"COMPLETED",
"CANCELED",
"FAILED"
]
}
]
},
"page": {
"number": 1,
"size": 50,
"sort": "state desc, name"
},
"search": "chocolate"
}
'{
"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 matching the free text and the filter. Searching, filtering, and sorting apply to the whole catalogue before the page is cut.
Authorizations
JWT bearer token authentication.
Parameters
1 Body
Optional query filter. Currently only `FilterQuery` (type `QUERY`) is supported.
Hide child attributes
Hide child attributes
List of conditions. All conditions must match (logical AND).
Hide child attributes
Hide child attributes
Entity field name to filter on.
Comparison operator.
is, eq, ne, co, sw, ew, gt, gte, lt, lte, in Value to compare against. Type depends on the field and operator (scalar or collection for `in`). The server coerces JSON values to the entity field type (e.g. TSID as base32 string, enum constant name, ISO-8601 instant). Use `true` or `false` with operator `is` for null checks.
QUERY type discriminator.
QUERY, SCANCODE Paging and sort parameters. When not specified it defaults to page number 1, size 50, and unsorted.
Hide child attributes
Hide child attributes
Page number (1..n).
Number of items per page.
Optional sort criteria as a compact string. Defaults to unsorted if not given.
Optional free text. A resource matches when any of its searchable fields contains the text, ignoring case. The text is taken as a whole, without wildcards. Combined with `filter` using logical AND.
Response
OK
Items for this page (length may be less than the requested size on the last page).
Hide child attributes
Hide child attributes
Unique identifier of the item
Human readable name of the item
URL to an image representing the item
Scannable barcodes assigned to the item, in ascending order
Base unit of measure for the item
PIECE, GRAM, KILOGRAM Multipacks defined for this item, ordered by identifier. Left out when the item has none.
Hide child attributes
Hide child attributes
Unique identifier of the multipack
Human readable name of the multipack
Scannable barcodes assigned to the multipack, in ascending order
URL to an image representing the multipack
Number of base items contained in the multipack
Supplier packagings defined for this multipack, ordered by identifier
Hide child attributes
Hide child attributes
Unique identifier of the packaging within the item
Scancode printed on the packaging
Number of pieces of the item contained in the packaging
URL to an image representing the packaging
Outer size of the packaging
Hide child attributes
Hide child attributes
Longer base side.
Shorter base side.
Height.
Unit the dimensions are expressed in.
MILLIMETER Weight of the packaging
Hide child attributes
Hide child attributes
Weight of the goods alone.
Weight of the goods including their wrapping.
Unit the weight values are expressed in.
GRAM Outer size of the multipack
Hide child attributes
Hide child attributes
Longer base side.
Shorter base side.
Height.
Unit the dimensions are expressed in.
MILLIMETER Weight of the multipack
Hide child attributes
Hide child attributes
Weight of the goods alone.
Weight of the goods including their wrapping.
Unit the weight values are expressed in.
GRAM Supplier packagings defined for this item, ordered by identifier. Left out when the item has none.
Hide child attributes
Hide child attributes
Unique identifier of the packaging within the item
Scancode printed on the packaging
Number of pieces of the item contained in the packaging
URL to an image representing the packaging
Outer size of the packaging
Hide child attributes
Hide child attributes
Longer base side.
Shorter base side.
Height.
Unit the dimensions are expressed in.
MILLIMETER Weight of the packaging
Hide child attributes
Hide child attributes
Weight of the goods alone.
Weight of the goods including their wrapping.
Unit the weight values are expressed in.
GRAM Outer size of one piece of the item. Left out when unknown.
Hide child attributes
Hide child attributes
Longer base side.
Shorter base side.
Height.
Unit the dimensions are expressed in.
MILLIMETER Weight of one piece of the item. Left out when unknown.
Hide child attributes
Hide child attributes
Weight of the goods alone.
Weight of the goods including their wrapping.
Unit the weight values are expressed in.
GRAM Paging metadata for this response.
Hide child attributes
Hide child attributes
1-based index of this page (same convention as paging request parameter `number`).
Page size requested (maximum number of items per page).
Total number of matching items across all pages.
Total number of pages for the query at the requested page size.