Simple items

Create or update simple items in batch

POST
/api/simple-items
Upsert simple items in batch.
curl --request POST \
  --url https://rologi-flow.example.com/api/simple-items \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Ras-Api-Version: 1' \
  --data '
{
  "entries": [
    {
      "id": "<string>",
      "entry": {
        "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"
        }
      }
    }
  ]
}
'
{
  "upserted": [
    "<string>"
  ],
  "errors": [
    {
      "id": "<string>",
      "error": "<string>"
    }
  ]
}

Upserts multiple simple items in a single request. Unknown identifiers will be inserted, matching identifiers will be either ignored or updated (depending on setting in the request body). In case of multiple entries sharing the same ID, only the last one will be processed.

Authorizations

Authorization
stringheaderrequired

JWT bearer token authentication.

Parameters

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

Body

application/json
entries
object[]

Hide child attributes

entries.id
string
entries.entry
object

Request to create a new item if it does not exist, or update an existing item

Hide child attributes

entries.entry.name
stringrequired

Human readable name of the item

entries.entry.scancodes
string[]required

Set of scannable barcodes assigned to the item

entries.entry.imageUrl
string | null

URL to an image representing the item

entries.entry.uom
enum<string>

Base unit of measure for the item

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

Optional multipacks for the item

Hide child attributes

entries.entry.packs.id
stringrequired

Unique identifier of the multipack

entries.entry.packs.name
stringrequired

Human readable name of the multipack

entries.entry.packs.scancodes
string[]required

Set of scannable barcodes assigned to the multipack

entries.entry.packs.imageUrl
string | null

URL to an image representing the multipack

entries.entry.packs.count
integer

Number of base items contained in the multipack

entries.entry.packs.packagingUnits
object[]

Optional supplier packagings the multipack arrives in

Hide child attributes

entries.entry.packs.packagingUnits.id
stringrequired

Unique identifier of the packaging within the item

entries.entry.packs.packagingUnits.scancode
stringrequired

Scancode printed on the packaging. Several packagings of the same item may share it while a supplier phases a change in.

entries.entry.packs.packagingUnits.count
integer

Number of pieces of the item contained in the packaging

entries.entry.packs.packagingUnits.imageUrl
string | null

URL to an image representing the packaging, used for visual verification before decanting

entries.entry.packs.packagingUnits.dimensions
object | null

Outer size of the packaging

Hide child attributes

entries.entry.packs.packagingUnits.dimensions.length
integerrequired

Longer base side.

entries.entry.packs.packagingUnits.dimensions.width
integerrequired

Shorter base side.

entries.entry.packs.packagingUnits.dimensions.height
integerrequired

Height.

entries.entry.packs.packagingUnits.dimensions.unit
enum<string>

Unit the dimensions are expressed in.

Available options: MILLIMETER
entries.entry.packs.packagingUnits.weight
object | null

Weight of the packaging

Hide child attributes

entries.entry.packs.packagingUnits.weight.net
integer | null

Weight of the goods alone.

entries.entry.packs.packagingUnits.weight.gross
integer | null

Weight of the goods including their wrapping.

entries.entry.packs.packagingUnits.weight.unit
enum<string>

Unit the weight values are expressed in.

Available options: GRAM
entries.entry.packs.dimensions
object | null

Outer size of the multipack. Accepted only for items with unit of measure PIECE.

Hide child attributes

entries.entry.packs.dimensions.length
integerrequired

Longer base side.

entries.entry.packs.dimensions.width
integerrequired

Shorter base side.

entries.entry.packs.dimensions.height
integerrequired

Height.

entries.entry.packs.dimensions.unit
enum<string>

Unit the dimensions are expressed in.

Available options: MILLIMETER
entries.entry.packs.weight
object | null

Weight of the multipack. Accepted only for items with unit of measure PIECE.

Hide child attributes

entries.entry.packs.weight.net
integer | null

Weight of the goods alone.

entries.entry.packs.weight.gross
integer | null

Weight of the goods including their wrapping.

entries.entry.packs.weight.unit
enum<string>

Unit the weight values are expressed in.

Available options: GRAM
entries.entry.packagingUnits
object[]

Optional supplier packagings the item arrives in

Hide child attributes

entries.entry.packagingUnits.id
stringrequired

Unique identifier of the packaging within the item

entries.entry.packagingUnits.scancode
stringrequired

Scancode printed on the packaging. Several packagings of the same item may share it while a supplier phases a change in.

entries.entry.packagingUnits.count
integer

Number of pieces of the item contained in the packaging

entries.entry.packagingUnits.imageUrl
string | null

URL to an image representing the packaging, used for visual verification before decanting

entries.entry.packagingUnits.dimensions
object | null

Outer size of the packaging

Hide child attributes

entries.entry.packagingUnits.dimensions.length
integerrequired

Longer base side.

entries.entry.packagingUnits.dimensions.width
integerrequired

Shorter base side.

entries.entry.packagingUnits.dimensions.height
integerrequired

Height.

entries.entry.packagingUnits.dimensions.unit
enum<string>

Unit the dimensions are expressed in.

Available options: MILLIMETER
entries.entry.packagingUnits.weight
object | null

Weight of the packaging

Hide child attributes

entries.entry.packagingUnits.weight.net
integer | null

Weight of the goods alone.

entries.entry.packagingUnits.weight.gross
integer | null

Weight of the goods including their wrapping.

entries.entry.packagingUnits.weight.unit
enum<string>

Unit the weight values are expressed in.

Available options: GRAM
entries.entry.dimensions
object | null

Outer size of one piece of the item. Accepted only for items with unit of measure PIECE.

Hide child attributes

entries.entry.dimensions.length
integerrequired

Longer base side.

entries.entry.dimensions.width
integerrequired

Shorter base side.

entries.entry.dimensions.height
integerrequired

Height.

entries.entry.dimensions.unit
enum<string>

Unit the dimensions are expressed in.

Available options: MILLIMETER
entries.entry.weight
object | null

Weight of one piece of the item. Accepted only for items with unit of measure PIECE.

Hide child attributes

entries.entry.weight.net
integer | null

Weight of the goods alone.

entries.entry.weight.gross
integer | null

Weight of the goods including their wrapping.

entries.entry.weight.unit
enum<string>

Unit the weight values are expressed in.

Available options: GRAM

Response

application/json

Created

upserted
string[]
errors
object[]

Hide child attributes

errors.id
string
errors.error
string