Create or update a simple item
curl --request PUT \
--url https://rologi-flow.example.com/api/simple-items/%3Cid%3E \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Ras-Api-Version: 1' \
--data '
{
"name": "Chocolate Bar",
"scancodes": [
"8000500037567",
"8591000000005"
],
"imageUrl": "https://cdn.example.com/items/chocolate-bar.png",
"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"
}
}
'{
"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"
}
}Creates a new simple item if it does not exist, or updates it if it already exists.
Authorizations
JWT bearer token authentication.
Parameters
1 Body
Human readable name of the item
Set of scannable barcodes assigned to the item
URL to an image representing the item
Base unit of measure for the item
PIECE, GRAM, KILOGRAM Optional multipacks for the item
Hide child attributes
Hide child attributes
Unique identifier of the multipack
Human readable name of the multipack
Set of scannable barcodes assigned to the multipack
URL to an image representing the multipack
Number of base items contained in the multipack
Optional supplier packagings the multipack arrives in
Hide child attributes
Hide child attributes
Unique identifier of the packaging within the item
Scancode printed on the packaging. Several packagings of the same item may share it while a supplier phases a change in.
Number of pieces of the item contained in the packaging
URL to an image representing the packaging, used for visual verification before decanting
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. Accepted only for items with unit of measure PIECE.
Hide child attributes
Hide child attributes
Longer base side.
Shorter base side.
Height.
Unit the dimensions are expressed in.
MILLIMETER Weight of the multipack. Accepted only for items with unit of measure PIECE.
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 Optional supplier packagings the item arrives in
Hide child attributes
Hide child attributes
Unique identifier of the packaging within the item
Scancode printed on the packaging. Several packagings of the same item may share it while a supplier phases a change in.
Number of pieces of the item contained in the packaging
URL to an image representing the packaging, used for visual verification before decanting
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. Accepted only for items with unit of measure PIECE.
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. Accepted only for items with unit of measure PIECE.
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 Response
OK
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
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
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
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
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