ARCNM

API reference

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.

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).

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 no own: your organization's own items. The standard items an environment stocks are read with GET /environments/{env_id}/raw-material/items.
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

curl -X GET https://api.arcnm.io/api/v1/stock-items \
  -H "X-API-Key: $ARCNM_API_KEY"
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())
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()

Responses

Status Description
200 Successful Response
422 Validation Error
default Error — the error envelope; branch on error.code.

Errors

Standard error responses — see the Errors catalog 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.

Create Stock Item

POST /api/v1/stock-items

Add one of your own raw-material items, bought from today on.

The registry checks the family and its dims (or a custom profile's own section), computes the area and prints the designation.

Parameters

Name In Type Required Description
Idempotency-Key header string no Optional retry key. A retry with the same key and the same request within 24 hours returns the first answer and creates nothing again; the same key with another request is a 409. As an MCP tool's idempotency_key: 1 to 128 letters, digits, ., _, : or -.

Request body (application/json)

Field Type Required Description
article_no string no Your article number for the item.
attach_to_environment_ids string[] no The costing environments that calculate with it from today. Omitted: every environment your organization has open. []: none — add it to an environment later.
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 How it is delivered, one of the conditions of GET /stock-items/schema.
delivery_lengths_mm integer[] no The lengths you buy it in, mm (100 to 30000 each).
die_owner shop | supplier | customer no A custom profile only: who owns the extrusion die.
die_paid boolean no A custom profile only: whether the die is paid for.
die_ref string no A custom profile only: your reference for the die.
dimension_standard string no The standard its dimensions follow, e.g. EN 10060.
dims object no The family's dims, mm (see GET /stock-items/schema); none for a polygon_section.
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 The shape, one of the families of GET /stock-items/schema.
kg_per_m2_printed number no The mass per square metre your supplier's table prints, kg/m². Refused when it is not within 0.5 % of the computed mass.
kg_per_m_printed number no The mass per metre your supplier's table prints, kg/m. Refused when it is not within 0.5 % of the mass computed from the section.
lead_time_days integer no Days from your order to delivery.
length_type mill | fixed | exact | stock | random no How its length is delivered.
material_group steel | stainless | aluminium yes The material group the item is made of; its density gives the nominal mass.
section_polygon SectionPolygonPublic no A custom profile's own section; only for a polygon_section.
section_source dxf | drawing | parametric no A custom profile only: where its section was taken from.
stocked boolean no Whether you keep this item in stock.
supplier_ref string no Your reference for your supplier's article.
surface string no The surface it is delivered with, as you name it.
tolerance_class string no Its tolerance class under that standard, e.g. h9.
tolerance_standard string no The tolerance standard it is delivered to, as you name it.

Request

curl -X POST https://api.arcnm.io/api/v1/stock-items \
  -H "X-API-Key: $ARCNM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "family": "round_bar",
    "material_group": "steel"
  }'
import requests

resp = requests.post(
    "https://api.arcnm.io/api/v1/stock-items",
    headers={"X-API-Key": "YOUR_API_KEY"},
    json={
        "family": "round_bar",
        "material_group": "steel"
    },
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/stock-items", {
  method: "POST",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "family": "round_bar",
    "material_group": "steel"
  }),
})
const data = await resp.json()

Responses

Status Description
201 Successful Response
409 One of your current items already is this item (stock_item_exists).
422 The registry refuses the item; error.message says why.
default Error — the error envelope; branch on error.code.

Errors

Standard error responses — see the Errors catalog 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 201

Field Type Description
area_mm2 number
article_no string
base_item_key string The standard item this one was copied from; null otherwise.
base_uom string
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
delivery_lengths_mm integer[]
designation string
die_owner shop | supplier | customer
die_paid boolean
die_ref string
dimension_standard 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
id string
is_platform boolean
item_key string
kg_per_m2_printed number
kg_per_m_printed number
lead_time_days integer
length_type string
material_group steel | stainless | aluminium
perimeter_mm number
section_polygon SectionPolygonPublic
section_source dxf | drawing | parametric
source_kind mill_programme | stockholder | tenant | computed
stocked boolean
supplier_ref string
surface string
tolerance_class string
tolerance_standard string
valid_from string
valid_to string

Example response

{
  "area_mm2": 0,
  "article_no": "string",
  "base_item_key": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "base_uom": "EA",
  "delivery_condition": "hot_rolled",
  "delivery_lengths_mm": [
    0
  ],
  "designation": "string",
  "die_owner": "shop",
  "die_paid": true,
  "die_ref": "string",
  "dimension_standard": "string",
  "dims": {},
  "dims_key": "string",
  "family": "round_bar",
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "is_platform": true,
  "item_key": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "kg_per_m2_printed": 0,
  "kg_per_m_printed": 0,
  "lead_time_days": 0,
  "length_type": "string",
  "material_group": "steel",
  "perimeter_mm": 0,
  "section_polygon": {
    "inner": [
      [
        []
      ]
    ],
    "outer": [
      [
        null
      ]
    ]
  },
  "section_source": "dxf",
  "source_kind": "mill_programme",
  "stocked": true,
  "supplier_ref": "string",
  "surface": "string",
  "tolerance_class": "string",
  "tolerance_standard": "string",
  "valid_from": "2026-06-01",
  "valid_to": "2026-06-01"
}

Get Stock Item

GET /api/v1/stock-items/{item_key}

One of your own items as it stands: its current version, or its last one once you stopped buying it.

Parameters

Name In Type Required Description
item_key path string yes

Request

curl -X GET https://api.arcnm.io/api/v1/stock-items/{item_key} \
  -H "X-API-Key: $ARCNM_API_KEY"
import requests

resp = requests.get(
    "https://api.arcnm.io/api/v1/stock-items/{item_key}",
    headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/stock-items/{item_key}", {
  method: "GET",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
  },
})
const data = await resp.json()

Responses

Status Description
200 Successful Response
404 None of your own items has this key (stock_item_not_found).
422 Validation Error
default Error — the error envelope; branch on error.code.

Errors

Standard error responses — see the Errors catalog 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.
404 not_found A referenced resource doesn't exist or isn't visible to your organisation.
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
article_no string
base_item_key string The standard item this one was copied from; null otherwise.
base_uom string
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
delivery_lengths_mm integer[]
designation string
die_owner shop | supplier | customer
die_paid boolean
die_ref string
dimension_standard 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
id string
is_platform boolean
item_key string
kg_per_m2_printed number
kg_per_m_printed number
lead_time_days integer
length_type string
material_group steel | stainless | aluminium
perimeter_mm number
section_polygon SectionPolygonPublic
section_source dxf | drawing | parametric
source_kind mill_programme | stockholder | tenant | computed
stocked boolean
supplier_ref string
surface string
tolerance_class string
tolerance_standard string
valid_from string
valid_to string

Example response

{
  "area_mm2": 0,
  "article_no": "string",
  "base_item_key": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "base_uom": "EA",
  "delivery_condition": "hot_rolled",
  "delivery_lengths_mm": [
    0
  ],
  "designation": "string",
  "die_owner": "shop",
  "die_paid": true,
  "die_ref": "string",
  "dimension_standard": "string",
  "dims": {},
  "dims_key": "string",
  "family": "round_bar",
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "is_platform": true,
  "item_key": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "kg_per_m2_printed": 0,
  "kg_per_m_printed": 0,
  "lead_time_days": 0,
  "length_type": "string",
  "material_group": "steel",
  "perimeter_mm": 0,
  "section_polygon": {
    "inner": [
      [
        []
      ]
    ],
    "outer": [
      [
        null
      ]
    ]
  },
  "section_source": "dxf",
  "source_kind": "mill_programme",
  "stocked": true,
  "supplier_ref": "string",
  "surface": "string",
  "tolerance_class": "string",
  "tolerance_standard": "string",
  "valid_from": "2026-06-01",
  "valid_to": "2026-06-01"
}

Update Stock Item

PATCH /api/v1/stock-items/{item_key}

Edit one of your own items. Its family, dims, section, standard, condition and material group are what the item is and do not change: add the other item and stop buying this one.

The current version closes and the next one opens under the same item_key, from today — from tomorrow for an item added today, which is in force through today. Calculations keep the version they were priced on. A request that changes nothing writes nothing.

Parameters

Name In Type Required Description
item_key path string yes

Request body (application/json)

Field Type Required Description
article_no string no Your article number for the item.
delivery_lengths_mm integer[] no The lengths you buy it in, mm (100 to 30000 each).
die_owner shop | supplier | customer no A custom profile only: who owns the extrusion die.
die_paid boolean no A custom profile only: whether the die is paid for.
die_ref string no A custom profile only: your reference for the die.
kg_per_m2_printed number no The mass per square metre your supplier's table prints, kg/m². Refused when it is not within 0.5 % of the computed mass.
kg_per_m_printed number no The mass per metre your supplier's table prints, kg/m. Refused when it is not within 0.5 % of the mass computed from the section.
lead_time_days integer no Days from your order to delivery.
length_type mill | fixed | exact | stock | random no How its length is delivered.
section_source dxf | drawing | parametric no A custom profile only: where its section was taken from.
stocked boolean no Whether you keep this item in stock.
supplier_ref string no Your reference for your supplier's article.
surface string no The surface it is delivered with, as you name it.
tolerance_class string no Its tolerance class under that standard, e.g. h9.
tolerance_standard string no The tolerance standard it is delivered to, as you name it.

Request

curl -X PATCH https://api.arcnm.io/api/v1/stock-items/{item_key} \
  -H "X-API-Key: $ARCNM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "article_no": "string",
    "delivery_lengths_mm": [
      0
    ],
    "die_owner": "shop",
    "die_paid": true,
    "die_ref": "string",
    "kg_per_m2_printed": 0,
    "kg_per_m_printed": 0,
    "lead_time_days": 0,
    "length_type": "mill",
    "section_source": "dxf",
    "stocked": true,
    "supplier_ref": "string",
    "surface": "string",
    "tolerance_class": "string",
    "tolerance_standard": "string"
  }'
import requests

resp = requests.patch(
    "https://api.arcnm.io/api/v1/stock-items/{item_key}",
    headers={"X-API-Key": "YOUR_API_KEY"},
    json={
        "article_no": "string",
        "delivery_lengths_mm": [
            0
        ],
        "die_owner": "shop",
        "die_paid": True,
        "die_ref": "string",
        "kg_per_m2_printed": 0,
        "kg_per_m_printed": 0,
        "lead_time_days": 0,
        "length_type": "mill",
        "section_source": "dxf",
        "stocked": True,
        "supplier_ref": "string",
        "surface": "string",
        "tolerance_class": "string",
        "tolerance_standard": "string"
    },
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/stock-items/{item_key}", {
  method: "PATCH",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "article_no": "string",
    "delivery_lengths_mm": [
      0
    ],
    "die_owner": "shop",
    "die_paid": true,
    "die_ref": "string",
    "kg_per_m2_printed": 0,
    "kg_per_m_printed": 0,
    "lead_time_days": 0,
    "length_type": "mill",
    "section_source": "dxf",
    "stocked": true,
    "supplier_ref": "string",
    "surface": "string",
    "tolerance_class": "string",
    "tolerance_standard": "string"
  }),
})
const data = await resp.json()

Responses

Status Description
200 Successful Response
404 None of your own items has this key (stock_item_not_found).
409 You stopped buying this item (stock_item_stopped).
422 The registry refuses the item; error.message says why.
default Error — the error envelope; branch on error.code.

Errors

Standard error responses — see the Errors catalog 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.
404 not_found A referenced resource doesn't exist or isn't visible to your organisation.
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
article_no string
base_item_key string The standard item this one was copied from; null otherwise.
base_uom string
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
delivery_lengths_mm integer[]
designation string
die_owner shop | supplier | customer
die_paid boolean
die_ref string
dimension_standard 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
id string
is_platform boolean
item_key string
kg_per_m2_printed number
kg_per_m_printed number
lead_time_days integer
length_type string
material_group steel | stainless | aluminium
perimeter_mm number
section_polygon SectionPolygonPublic
section_source dxf | drawing | parametric
source_kind mill_programme | stockholder | tenant | computed
stocked boolean
supplier_ref string
surface string
tolerance_class string
tolerance_standard string
valid_from string
valid_to string

Example response

{
  "area_mm2": 0,
  "article_no": "string",
  "base_item_key": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "base_uom": "EA",
  "delivery_condition": "hot_rolled",
  "delivery_lengths_mm": [
    0
  ],
  "designation": "string",
  "die_owner": "shop",
  "die_paid": true,
  "die_ref": "string",
  "dimension_standard": "string",
  "dims": {},
  "dims_key": "string",
  "family": "round_bar",
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "is_platform": true,
  "item_key": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "kg_per_m2_printed": 0,
  "kg_per_m_printed": 0,
  "lead_time_days": 0,
  "length_type": "string",
  "material_group": "steel",
  "perimeter_mm": 0,
  "section_polygon": {
    "inner": [
      [
        []
      ]
    ],
    "outer": [
      [
        null
      ]
    ]
  },
  "section_source": "dxf",
  "source_kind": "mill_programme",
  "stocked": true,
  "supplier_ref": "string",
  "surface": "string",
  "tolerance_class": "string",
  "tolerance_standard": "string",
  "valid_from": "2026-06-01",
  "valid_to": "2026-06-01"
}

Stop Stock Item

POST /api/v1/stock-items/{item_key}/stop

Stop buying one of your own items, from today on (from tomorrow for an item added today). The item is never deleted: every calculation that names it keeps it.

Parameters

Name In Type Required Description
item_key path string yes

Request

curl -X POST https://api.arcnm.io/api/v1/stock-items/{item_key}/stop \
  -H "X-API-Key: $ARCNM_API_KEY"
import requests

resp = requests.post(
    "https://api.arcnm.io/api/v1/stock-items/{item_key}/stop",
    headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/stock-items/{item_key}/stop", {
  method: "POST",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
  },
})
const data = await resp.json()

Responses

Status Description
200 Successful Response
404 None of your own items has this key (stock_item_not_found).
409 You already stopped buying this item (stock_item_stopped), or a change made today waits for tomorrow (stock_item_change_scheduled).
422 Validation Error
default Error — the error envelope; branch on error.code.

Errors

Standard error responses — see the Errors catalog 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.
404 not_found A referenced resource doesn't exist or isn't visible to your organisation.
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
article_no string
base_item_key string The standard item this one was copied from; null otherwise.
base_uom string
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
delivery_lengths_mm integer[]
designation string
die_owner shop | supplier | customer
die_paid boolean
die_ref string
dimension_standard 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
id string
is_platform boolean
item_key string
kg_per_m2_printed number
kg_per_m_printed number
lead_time_days integer
length_type string
material_group steel | stainless | aluminium
perimeter_mm number
section_polygon SectionPolygonPublic
section_source dxf | drawing | parametric
source_kind mill_programme | stockholder | tenant | computed
stocked boolean
supplier_ref string
surface string
tolerance_class string
tolerance_standard string
valid_from string
valid_to string

Example response

{
  "area_mm2": 0,
  "article_no": "string",
  "base_item_key": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "base_uom": "EA",
  "delivery_condition": "hot_rolled",
  "delivery_lengths_mm": [
    0
  ],
  "designation": "string",
  "die_owner": "shop",
  "die_paid": true,
  "die_ref": "string",
  "dimension_standard": "string",
  "dims": {},
  "dims_key": "string",
  "family": "round_bar",
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "is_platform": true,
  "item_key": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "kg_per_m2_printed": 0,
  "kg_per_m_printed": 0,
  "lead_time_days": 0,
  "length_type": "string",
  "material_group": "steel",
  "perimeter_mm": 0,
  "section_polygon": {
    "inner": [
      [
        []
      ]
    ],
    "outer": [
      [
        null
      ]
    ]
  },
  "section_source": "dxf",
  "source_kind": "mill_programme",
  "stocked": true,
  "supplier_ref": "string",
  "surface": "string",
  "tolerance_class": "string",
  "tolerance_standard": "string",
  "valid_from": "2026-06-01",
  "valid_to": "2026-06-01"
}

Unhide Stock Item

DELETE /api/v1/stock-items/{platform_item_key}/hide

Show a standard item you had hidden, from today on.

Parameters

Name In Type Required Description
platform_item_key path string yes

Request

curl -X DELETE https://api.arcnm.io/api/v1/stock-items/{platform_item_key}/hide \
  -H "X-API-Key: $ARCNM_API_KEY"
import requests

resp = requests.delete(
    "https://api.arcnm.io/api/v1/stock-items/{platform_item_key}/hide",
    headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/stock-items/{platform_item_key}/hide", {
  method: "DELETE",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
  },
})
const data = await resp.json()

Responses

Status Description
200 Successful Response
404 No standard item in force today has this key (stock_item_not_found).
422 Validation Error
default Error — the error envelope; branch on error.code.

Errors

Standard error responses — see the Errors catalog 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.
404 not_found A referenced resource doesn't exist or isn't visible to your organisation.
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
designation string
hidden boolean
item_key string
override StockItemOverridePublic

Example response

{
  "designation": "string",
  "hidden": true,
  "item_key": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "override": {
    "alias_designation": "string",
    "article_no": "string",
    "delivery_lengths_mm": [
      0
    ],
    "lead_time_days": 0,
    "stocked": true,
    "supplier_ref": "string",
    "tolerance_overrides": {},
    "valid_from": "2026-06-01",
    "valid_to": "2026-06-01"
  }
}

Hide Stock Item

POST /api/v1/stock-items/{platform_item_key}/hide

Hide a standard item your shop doesn't buy, for your organization only, from today on. Hiding what is hidden changes nothing.

Parameters

Name In Type Required Description
platform_item_key path string yes

Request

curl -X POST https://api.arcnm.io/api/v1/stock-items/{platform_item_key}/hide \
  -H "X-API-Key: $ARCNM_API_KEY"
import requests

resp = requests.post(
    "https://api.arcnm.io/api/v1/stock-items/{platform_item_key}/hide",
    headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/stock-items/{platform_item_key}/hide", {
  method: "POST",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
  },
})
const data = await resp.json()

Responses

Status Description
200 Successful Response
404 No standard item in force today has this key (stock_item_not_found).
422 Validation Error
default Error — the error envelope; branch on error.code.

Errors

Standard error responses — see the Errors catalog 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.
404 not_found A referenced resource doesn't exist or isn't visible to your organisation.
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
designation string
hidden boolean
item_key string
override StockItemOverridePublic

Example response

{
  "designation": "string",
  "hidden": true,
  "item_key": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "override": {
    "alias_designation": "string",
    "article_no": "string",
    "delivery_lengths_mm": [
      0
    ],
    "lead_time_days": 0,
    "stocked": true,
    "supplier_ref": "string",
    "tolerance_overrides": {},
    "valid_from": "2026-06-01",
    "valid_to": "2026-06-01"
  }
}

Set Stock Item Override

PUT /api/v1/stock-items/{platform_item_key}/override

State what your shop has differently on a standard item — stocked, article number, your supplier's reference, lead time, a tighter tolerance, the lengths you buy, your own name for it — without copying it: every later correction of the standard item still reaches you.

The statement is whole: a field left out takes the standard value, and a statement of nothing removes the override.

Parameters

Name In Type Required Description
platform_item_key path string yes

Request body (application/json)

Field Type Required Description
alias_designation string no Your own name for the item.
article_no string no Your article number for the item.
delivery_lengths_mm integer[] no
lead_time_days integer no Days from your order to delivery.
stocked boolean no Whether you keep this item in stock.
supplier_ref string no Your reference for your supplier's article.
tolerance_overrides object no A tighter tolerance class per face set, e.g. {"bore": "H9"} on a tube bought to order.

Request

curl -X PUT https://api.arcnm.io/api/v1/stock-items/{platform_item_key}/override \
  -H "X-API-Key: $ARCNM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "alias_designation": "string",
    "article_no": "string",
    "delivery_lengths_mm": [
      0
    ],
    "lead_time_days": 0,
    "stocked": true,
    "supplier_ref": "string",
    "tolerance_overrides": {}
  }'
import requests

resp = requests.put(
    "https://api.arcnm.io/api/v1/stock-items/{platform_item_key}/override",
    headers={"X-API-Key": "YOUR_API_KEY"},
    json={
        "alias_designation": "string",
        "article_no": "string",
        "delivery_lengths_mm": [
            0
        ],
        "lead_time_days": 0,
        "stocked": True,
        "supplier_ref": "string",
        "tolerance_overrides": {}
    },
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/stock-items/{platform_item_key}/override", {
  method: "PUT",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "alias_designation": "string",
    "article_no": "string",
    "delivery_lengths_mm": [
      0
    ],
    "lead_time_days": 0,
    "stocked": true,
    "supplier_ref": "string",
    "tolerance_overrides": {}
  }),
})
const data = await resp.json()

Responses

Status Description
200 Successful Response
404 No standard item in force today has this key (stock_item_not_found).
409 A change to the override made today waits for tomorrow (stock_item_change_scheduled).
422 Validation Error
default Error — the error envelope; branch on error.code.

Errors

Standard error responses — see the Errors catalog 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.
404 not_found A referenced resource doesn't exist or isn't visible to your organisation.
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
designation string
hidden boolean
item_key string
override StockItemOverridePublic

Example response

{
  "designation": "string",
  "hidden": true,
  "item_key": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "override": {
    "alias_designation": "string",
    "article_no": "string",
    "delivery_lengths_mm": [
      0
    ],
    "lead_time_days": 0,
    "stocked": true,
    "supplier_ref": "string",
    "tolerance_overrides": {},
    "valid_from": "2026-06-01",
    "valid_to": "2026-06-01"
  }
}

Get Stock Item Schema

GET /api/v1/stock-items/schema

The shape registry: every family with its product class, base unit and dims schema, in the registry's order; the delivery conditions and the material groups a row may name.

Request

curl -X GET https://api.arcnm.io/api/v1/stock-items/schema \
  -H "X-API-Key: $ARCNM_API_KEY"
import requests

resp = requests.get(
    "https://api.arcnm.io/api/v1/stock-items/schema",
    headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/stock-items/schema", {
  method: "GET",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
  },
})
const data = await resp.json()

Responses

Status Description
200 Successful Response
422 Validation Error
default Error — the error envelope; branch on error.code.

Errors

Standard error responses — see the Errors catalog 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.

Response body 200

Field Type Description
conditions 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[]
families StockFamilySchemaPublic[]
material_groups steel | stainless | aluminium[]

Example response

{
  "conditions": [
    "hot_rolled"
  ],
  "families": [
    {
      "base_uom": "m",
      "consumption": "length",
      "dims": [
        {}
      ],
      "key": "round_bar",
      "product": "long"
    }
  ],
  "material_groups": [
    "steel"
  ]
}

Set Standard Items Stocked

POST /api/v1/stock-items/standard/stocked

State for several standard items at once whether your shop keeps them in stock. Everything else you state on an item (article number, lead time, tolerances) stays as it is. All of the items, or none: one key that is no standard item refuses the request.

The keys are the item_key of the standard items an environment lists (GET /environments/{id}/raw-material/items). The statement is your organization's, not one environment's.

Request body (application/json)

Field Type Required Description
item_keys string[] yes
stocked boolean yes

Request

curl -X POST https://api.arcnm.io/api/v1/stock-items/standard/stocked \
  -H "X-API-Key: $ARCNM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "item_keys": [
      "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    ],
    "stocked": true
  }'
import requests

resp = requests.post(
    "https://api.arcnm.io/api/v1/stock-items/standard/stocked",
    headers={"X-API-Key": "YOUR_API_KEY"},
    json={
        "item_keys": [
            "3fa85f64-5717-4562-b3fc-2c963f66afa6"
        ],
        "stocked": True
    },
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/stock-items/standard/stocked", {
  method: "POST",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "item_keys": [
      "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    ],
    "stocked": true
  }),
})
const data = await resp.json()

Responses

Status Description
200 Successful Response
404 No standard item in force today has this key (stock_item_not_found).
422 Validation Error
default Error — the error envelope; branch on error.code.

Errors

Standard error responses — see the Errors catalog 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
changed integer Items whose statement changed; one that already said so is not counted.
from_tomorrow integer Of those, the items whose statement already changed today: the new one takes effect tomorrow.

Example response

{
  "changed": 0,
  "from_tomorrow": 0
}

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

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": {}
  }'
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())
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()

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 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

{
  "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
}