> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# BillOfMaterials

> A recipe that builds products, the outputs, from other products, the inputs, such as a kit from its parts.

**Required scopes:** [`products_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-products_read)

**buildable** `Int!` *required*

How many units the bill of materials can build across its enabled locations from the stock there, as last calculated. It is recalculated after stock or the recipe changes, so it can trail them briefly. Requires the `inventory_read` scope.

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the bill of materials was created.

**id** `ID!` *required*

The id of this bill of materials.

**inputs** `[BillOfMaterialsLineItemConnection!](/docs/api-reference/v3/pagination)` *required*

The products one build consumes, and how many of each, in the order the recipe lists them.

**Requires:** [`products_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-products_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns inputs after it.

**before** `String`

Backward pagination cursor — returns inputs before it.

**first** `Int`

Forward pagination: returns the first N inputs (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N inputs (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**Fields**

**edges** `[\[BillOfMaterialsLineItemEdge!\]!](/docs/api-reference/v3/pagination)` *required*

The list of edges (each a node plus its pagination `cursor`).

**fields**

**cursor** `String!` *required*

Opaque cursor for this item; pass to `after`/`before` to page from here.

**node** `[BillOfMaterialsLineItem!](/docs/api-reference/v3/reference/inventory/bill-of-materials-line-item)` *required*

The item at this edge.

**nodes** `[\[BillOfMaterialsLineItem!\]!](/docs/api-reference/v3/reference/inventory/bill-of-materials-line-item)` *required*

The nodes in this page, without the edge/cursor wrapper — a convenience over `edges`.

**fields**

**conditional** `Boolean!` *required*

Whether the Redo app limits this line to the orders its conditions match. The conditions themselves aren't readable yet. Always false on an output.

**product** `[Product](/docs/api-reference/v3/reference/catalog/product)`

The product consumed or made. Null when it isn't one of the caller's.

**Requires:** [`products_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-products_read)

**quantity** `Int!` *required*

How many units of the product one build consumes or makes.

**pageInfo** `[PageInfo!](/docs/api-reference/v3/pagination)` *required*

Pagination metadata for the current page.

**fields**

**endCursor** `String`

Cursor of the last edge in this page; pass to `after` to page forward.

**hasNextPage** `Boolean!` *required*

Whether more items exist after this page (drives forward pagination with `first`/`after`).

**hasPreviousPage** `Boolean!` *required*

Whether more items exist before this page (drives backward pagination with `last`/`before`).

**startCursor** `String`

Cursor of the first edge in this page; pass to `before` to page backward.

**locations** `[BillOfMaterialsLocationConnection!](/docs/api-reference/v3/pagination)` *required*

The locations the bill of materials can be built at, each with how many units it can build there.

**Requires:** [`inventory_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-inventory_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns locations after it.

**before** `String`

Backward pagination cursor — returns locations before it.

**first** `Int`

Forward pagination: returns the first N locations (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N locations (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**Fields**

**edges** `[\[BillOfMaterialsLocationEdge!\]!](/docs/api-reference/v3/pagination)` *required*

The list of edges (each a node plus its pagination `cursor`).

**fields**

**cursor** `String!` *required*

Opaque cursor for this item; pass to `after`/`before` to page from here.

**node** `[BillOfMaterialsLocation!](/docs/api-reference/v3/reference/inventory/bill-of-materials-location)` *required*

The item at this edge.

**nodes** `[\[BillOfMaterialsLocation!\]!](/docs/api-reference/v3/reference/inventory/bill-of-materials-location)` *required*

The nodes in this page, without the edge/cursor wrapper — a convenience over `edges`.

**fields**

**buildable** `Int!` *required*

How many units the bill of materials can build at this location from the stock there, as last calculated.

**enabled** `Boolean!` *required*

Whether the bill of materials is built at this location. A disabled location builds none.

**id** `ID!` *required*

The id of this bill of materials location.

**location** `[Location](/docs/api-reference/v3/reference/inventory/location)`

The location the bill of materials is built at. Null when it isn't one of the caller's.

**Requires:** [`locations_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-locations_read)

**pageInfo** `[PageInfo!](/docs/api-reference/v3/pagination)` *required*

Pagination metadata for the current page.

**fields**

**endCursor** `String`

Cursor of the last edge in this page; pass to `after` to page forward.

**hasNextPage** `Boolean!` *required*

Whether more items exist after this page (drives forward pagination with `first`/`after`).

**hasPreviousPage** `Boolean!` *required*

Whether more items exist before this page (drives backward pagination with `last`/`before`).

**startCursor** `String`

Cursor of the first edge in this page; pass to `before` to page backward.

**name** `String!` *required*

The name of the bill of materials.

**outputs** `[BillOfMaterialsLineItemConnection!](/docs/api-reference/v3/pagination)` *required*

The products one build makes, and how many of each, in the order the recipe lists them.

**Requires:** [`products_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-products_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns outputs after it.

**before** `String`

Backward pagination cursor — returns outputs before it.

**first** `Int`

Forward pagination: returns the first N outputs (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N outputs (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**Fields**

**edges** `[\[BillOfMaterialsLineItemEdge!\]!](/docs/api-reference/v3/pagination)` *required*

The list of edges (each a node plus its pagination `cursor`).

**fields**

**cursor** `String!` *required*

Opaque cursor for this item; pass to `after`/`before` to page from here.

**node** `[BillOfMaterialsLineItem!](/docs/api-reference/v3/reference/inventory/bill-of-materials-line-item)` *required*

The item at this edge.

**nodes** `[\[BillOfMaterialsLineItem!\]!](/docs/api-reference/v3/reference/inventory/bill-of-materials-line-item)` *required*

The nodes in this page, without the edge/cursor wrapper — a convenience over `edges`.

**fields**

**conditional** `Boolean!` *required*

Whether the Redo app limits this line to the orders its conditions match. The conditions themselves aren't readable yet. Always false on an output.

**product** `[Product](/docs/api-reference/v3/reference/catalog/product)`

The product consumed or made. Null when it isn't one of the caller's.

**Requires:** [`products_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-products_read)

**quantity** `Int!` *required*

How many units of the product one build consumes or makes.

**pageInfo** `[PageInfo!](/docs/api-reference/v3/pagination)` *required*

Pagination metadata for the current page.

**fields**

**endCursor** `String`

Cursor of the last edge in this page; pass to `after` to page forward.

**hasNextPage** `Boolean!` *required*

Whether more items exist after this page (drives forward pagination with `first`/`after`).

**hasPreviousPage** `Boolean!` *required*

Whether more items exist before this page (drives backward pagination with `last`/`before`).

**startCursor** `String`

Cursor of the first edge in this page; pass to `before` to page backward.

**status** `[BillOfMaterialsStatus!](/docs/api-reference/v3/reference/inventory/bill-of-materials-status)` *required*

Whether the bill of materials is in use.

**tags** `[String!]!` *required*

The tags on the bill of materials. Empty when it has none.

**updatedAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the bill of materials was last updated.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.