barcode
Scan barcodes to look up items or assign barcodes to inventory objects like parts, stock, and orders.
Instructions
Barcode scanning and assignment in InvenTree.
Operations: Read: scan, lookup Write: assign, unassign
Args: operation: One of the operations listed above. barcode_data: Barcode string for scan/assign/lookup. model_type: Model type for assign/unassign (part, stockitem, stocklocation, build, purchaseorder, salesorder, returnorder). pk: Object ID for assign/unassign.
Returns: JSON string with barcode result or {"error": "..."}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | ||
| barcode_data | No | ||
| model_type | No | ||
| pk | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |