---
title: Stock Items
description: The Stock Items API lists the section stock in force for your shop by family and size, and dry-runs a candidate row for its dimensions, section key, and mass.
---

# Stock Items

The Stock Items API lists the section stock in force for your shop by family and size, and dry-runs a candidate row for its dimensions, section key, and mass.

> **Auto-generated** from the public OpenAPI spec — this page never
> drifts from the running API. Base URL `https://api.arcnm.io`. Authenticate with
> the `X-API-Key` header (see [Authentication](../authentication.md)).

## List Stock Items

`GET /api/v1/stock-items`

The stock items in force on ``as_of``, ordered by family and size.

> **Paginated.** Pass `limit` and `offset` to page through results.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `scope` | query | `own` \| `platform` | no | `own`: your organization's own items. `platform`: the standard items, for superusers signed in to the app only. |
| `as_of` | query | string | no | List the rows open on this date (`YYYY-MM-DD`); today (UTC) by default. |
| `limit` | query | integer | no | Maximum number of results to return. |
| `offset` | query | integer | no | Number of results to skip before the returned page. |

**Request**

<CodeTabs>

```bash title="cURL"
curl -X GET https://api.arcnm.io/api/v1/stock-items \
  -H "X-API-Key: $ARCNM_API_KEY"
```

```python title="Python"
import requests

resp = requests.get(
    "https://api.arcnm.io/api/v1/stock-items",
    headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
```

```typescript title="TypeScript"
const resp = await fetch("https://api.arcnm.io/api/v1/stock-items", {
  method: "GET",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
  },
})
const data = await resp.json()
```

</CodeTabs>

**Responses**

| Status | Description |
| --- | --- |
| `200` | Successful Response |
| `403` | `scope=platform` outside a superuser's session in the app. |
| `422` | Validation Error |
| `default` | Error — the error envelope; branch on `error.code`. |

**Errors**

Standard error responses — see the [Errors catalog](../errors.md) for the full envelope, `request_id`, and retry-safety table.

| Status | Code | When |
| --- | --- | --- |
| `401` | `invalid_api_key` | Missing, malformed, or revoked API key. |
| `403` | `insufficient_scope` | The key is valid but lacks a scope this endpoint requires. |
| `429` | `rate_limited` | Per-key or per-org rate limit exceeded — back off with jitter and retry. |


## Validate Stock Item

`POST /api/v1/stock-items/validate`

Dry-run one candidate row through the registry: the normalised dims,
their key, the section's area and perimeter, the nominal mass and — when
the row prints one — whether the printed mass is within 0.5 % of it, and
the designation the registry prints. Nothing is stored.

**Request body** (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `delivery_condition` | `hot_rolled` \| `hot_finished` \| `cold_rolled` \| `cold_formed` \| `cold_drawn` \| `cold_sized` \| `bright_drawn` \| `peeled` \| `ground` \| `seamless` \| `welded` \| `extruded` \| `forged` \| `as_rolled` \| `normalised` \| `hot_dip_galvanised` \| `sendzimir_galvanised` \| `electro_galvanised` \| `pickled_oiled` \| `strip_cut` | no |  |
| `dimension_standard` | string | no |  |
| `dims` | object | yes |  |
| `family` | `round_bar` \| `flat_bar` \| `square_bar` \| `hex_bar` \| `round_tube` \| `square_tube` \| `rect_tube` \| `chs` \| `shs` \| `rhs` \| `channel` \| `channel_parallel` \| `beam_i` \| `beam_h` \| `angle_equal` \| `angle_unequal` \| `tee` \| `z_section` \| `cold_formed` \| `threaded_rod` \| `polygon_section` \| `sheet` \| `plate` \| `block` \| `near_net_piece` | yes |  |
| `kg_per_m2_printed` | number | no |  |
| `kg_per_m_printed` | number | no |  |
| `material_group` | `steel` \| `stainless` \| `aluminium` | no |  |

**Request**

<CodeTabs>

```bash title="cURL"
curl -X POST https://api.arcnm.io/api/v1/stock-items/validate \
  -H "X-API-Key: $ARCNM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "family": "round_bar",
    "dims": {}
  }'
```

```python title="Python"
import requests

resp = requests.post(
    "https://api.arcnm.io/api/v1/stock-items/validate",
    headers={"X-API-Key": "YOUR_API_KEY"},
    json={
        "family": "round_bar",
        "dims": {}
    },
)
resp.raise_for_status()
print(resp.json())
```

```typescript title="TypeScript"
const resp = await fetch("https://api.arcnm.io/api/v1/stock-items/validate", {
  method: "POST",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "family": "round_bar",
    "dims": {}
  }),
})
const data = await resp.json()
```

</CodeTabs>

**Responses**

| Status | Description |
| --- | --- |
| `200` | Successful Response |
| `422` | The registry refuses the row; `detail` says why. |
| `default` | Error — the error envelope; branch on `error.code`. |

**Errors**

Standard error responses — see the [Errors catalog](../errors.md) for the full envelope, `request_id`, and retry-safety table.

| Status | Code | When |
| --- | --- | --- |
| `401` | `invalid_api_key` | Missing, malformed, or revoked API key. |
| `403` | `insufficient_scope` | The key is valid but lacks a scope this endpoint requires. |
| `409` | `conflict` | A conflicting change, or an `Idempotency-Key` reused with a different body. |
| `429` | `rate_limited` | Per-key or per-org rate limit exceeded — back off with jitter and retry. |


**Response body** `200`

| Field | Type | Description |
| --- | --- | --- |
| `area_mm2` | number |  |
| `designation` | string |  |
| `dims` | object |  |
| `dims_key` | string |  |
| `family` | `round_bar` \| `flat_bar` \| `square_bar` \| `hex_bar` \| `round_tube` \| `square_tube` \| `rect_tube` \| `chs` \| `shs` \| `rhs` \| `channel` \| `channel_parallel` \| `beam_i` \| `beam_h` \| `angle_equal` \| `angle_unequal` \| `tee` \| `z_section` \| `cold_formed` \| `threaded_rod` \| `polygon_section` \| `sheet` \| `plate` \| `block` \| `near_net_piece` |  |
| `kg_per_m` | number |  |
| `kg_per_m2` | number |  |
| `mass_check` | boolean | Printed mass within 0.5 % of the nominal; null when none is printed. |
| `perimeter_mm` | number |  |

**Example response**

```json
{
  "area_mm2": 0,
  "designation": "string",
  "dims": {},
  "dims_key": "string",
  "family": "round_bar",
  "kg_per_m": 0,
  "kg_per_m2": 0,
  "mass_check": true,
  "perimeter_mm": 0
}
```
