Assign SSCC pallet numbers
assign_ssccGive pallet rows a new SSCC, the 18-digit GS1 serial number that identifies one pallet. One row is one pallet, so make one row per pallet first (bulk_create_items), each with the product, carton GTIN, carton count, lot and dates of that pallet. Pass item_ids and column, the column the number is written to (a column id or its header; add it with add_column first, and do not use the barcode column). Numbers are built from the GS1 company prefix saved under Barcode settings, a running serial and a check digit. Every number is issued once and logged. A row that already has a value in the column keeps it and is returned with status kept, so calling this again is safe and never changes a number that may already be on a printed label. Every row is checked before any number is taken: an unknown item id, an unknown column or a missing company prefix returns an error and nothing is written. To put the number on a label, add a GS1-128 barcode with gs1_fields [{ ai: "00", column }] in create_label_design. A pallet normally carries two identical labels: print the row with copies_per_label 2. To reprint a pallet label, print the same row again. At most 500 rows. Optional extension_digit 0-9 (default 0) starts a separate number series.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"item_ids": "<item_ids>",
"column": "<column>"
},
"name": "assign_sscc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| column | Yes | ||
| item_ids | Yes | ||
| sheet_number | No | ||
| extension_digit | No |