BrainBox Configuration

Map incoming BrainBox data to StockWise categories, purchase orders and attributes.

The BrainBox Configuration screen controls how data sent by the BrainBox integration is routed to categories and mapped to attributes.

To open it, go to Configuration › BrainBox Configuration. The breadcrumb shows Configurations • Brainbox Config.

BrainBox Configuration screen with the Category ID payload field, a Desktop mapping tab and Match Rules

How routing works

The screen explains: "One mapping per category. An incoming payload is routed by its own categoryId if it sends one; otherwise to the category whose mapped payload fields are ALL present in the payload (the most specific one wins); otherwise to the default category. Match rules are only needed to separate two categories that report the same fields, such as laptop and desktop."

Category ID payload field

This optional field sets "Where in the payload to read the target category ID, when the consumer sends one. It must be the numeric ID from the categories endpoint, not a name — an unknown or non-numeric value is rejected rather than routed by field names. Leave blank to accept the default "categoryId" / "category_id"."

Category mappings

Each mapping has its own tab, named after its category. The default mapping shows a Default badge, for example Desktop Default. Select + Add Category to add a mapping.

Each mapping has these fields:

FieldDescription
CategoryThe category this mapping applies to.
PO NumberThe default PO for this mapping, for example BrainBox-Quarantine. Help text: "Default PO."
Default CostThe default cost.
DefaultA toggle that marks the default mapping.
Delete iconShown at the end of the mapping row.

Match Rules (optional)

"Routing already works without rules: this category is used when every payload field mapped below is present in the payload. Add rules only when another category reads the SAME fields and only a value tells them apart (for example formFactor equals Laptop vs Desktop). When present, ALL rules must pass."

Select Add Rule to add a rule.

Payload Mapping

Each row maps a Payload Field to a StockWise Attribute, for example:

Payload field maps toAttribute level
Serial NumberItem
BrandProduct
ModelProduct
Disk SizeProduct

Other attributes, such as Processor and Ram, can be mapped the same way. Select Add Payload Field to add a row.

When you're done, select Save Configuration.

On this page