Inventory Manager API · items

Record that a quantity arrived, at locationId or else the default location

POST /items/{sku}/receive

An untracked SKU goes into on-hand and can be sold at once. A serial- or batch-tracked SKU's units wait in awaitingIdentification, out of available, until POST /items/:sku/identify names them. An optional poId consumes that purchase order's incoming expectation. An optional unitCostCents values the units: with no poId, accounting opens a cost layer at it. A unit cost in the home currency (costCurrency absent or equal to it) also becomes the SKU's cost basis (GET /items/:sku/cost); a cost carries that day's exchange rate (409 ReferenceRateUnavailable when none). Appends inventory.stock-received. reference (the document the stock came on: a delivery note, or a receipt id) is required and is the idempotency key: a reference already in the journal is acknowledged without re-applying, and appends nothing.

Access

Requires receiving:write.

How scopes come from roles: Scopes and roles. Getting a token: Authentication and app tokens.

Retries

reference (the document the stock came on: a delivery note, or a receipt id) is required and is the idempotency key: a reference already in the journal is acknowledged without re-applying, and appends nothing.

A retry with the same key answers 200, with what the first call recorded.

Why every write carries a key: Idempotency and retries.

Facts appended

  • inventory.stock-received

What a fact is: Facts and the journal.

AI agent tool

Agents call this as inventory_receive_stock (Inventory: Receive stock), in the stock toolset.

Connecting an agent: AI agents.

Example

48 units of a purchase order arrive at Main at $12.50 each.

curl
curl -X POST 'https://inventory.getmanifold.io/items/WIDGET-BLUE/receive' \
  -H "Authorization: Bearer $MANIFOLD_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
  "locationId": "loc_019cadd3-8330-7e12-aa44-2cd5f05da74a",
  "quantity": 48,
  "poId": "po_01a141ef-d880-772d-949d-a2ec6691c9c8",
  "unitCostCents": 1250,
  "reference": "rcpt_01a16131-8e00-74ae-b2dd-7dfe50fb5464:WIDGET-BLUE"
}'
JavaScript (fetch)
const response = await fetch("https://inventory.getmanifold.io/items/WIDGET-BLUE/receive", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.MANIFOLD_TOKEN}`, "Content-Type": "application/json" },
  body: JSON.stringify({
    "locationId": "loc_019cadd3-8330-7e12-aa44-2cd5f05da74a",
    "quantity": 48,
    "poId": "po_01a141ef-d880-772d-949d-a2ec6691c9c8",
    "unitCostCents": 1250,
    "reference": "rcpt_01a16131-8e00-74ae-b2dd-7dfe50fb5464:WIDGET-BLUE"
  }),
});
if (!response.ok) throw new Error(`${response.status}: ${await response.text()}`);
const answer = await response.json();
Request body · application/json
{
  "locationId": "loc_019cadd3-8330-7e12-aa44-2cd5f05da74a",
  "quantity": 48,
  "poId": "po_01a141ef-d880-772d-949d-a2ec6691c9c8",
  "unitCostCents": 1250,
  "reference": "rcpt_01a16131-8e00-74ae-b2dd-7dfe50fb5464:WIDGET-BLUE"
}
Response · 200 · application/json
{
  "id": "itm_019cd543-e6f8-7bec-b392-ec0ac6b812ed",
  "sku": "WIDGET-BLUE",
  "name": "Widget, blue",
  "tracking": "none",
  "costingMethod": "fifo",
  "kind": "stock",
  "counted": true,
  "sellable": true,
  "barcodes": [
    {
      "value": "9300000000019",
      "type": "gtin"
    }
  ],
  "hsCodes": [
    {
      "country": "AU",
      "code": "39269000"
    }
  ],
  "countryOfOrigin": "AU",
  "weightGrams": 240,
  "packedSize": {
    "lengthMm": 120,
    "widthMm": 80,
    "heightMm": 60
  },
  "ownPackaging": false,
  "accounts": {
    "inventory": "1400",
    "revenue": "4000",
    "expense": "5000"
  },
  "taxClass": "standard",
  "stock": [
    {
      "locationId": "loc_019cadd3-8330-7e12-aa44-2cd5f05da74a",
      "onHand": 142,
      "reserved": 10,
      "damaged": 2,
      "awaitingIdentification": 0,
      "inTransit": 0,
      "incoming": 24
    },
    {
      "locationId": "loc_019cd06e-3b38-7e92-b496-c92f8184a3aa",
      "onHand": 18,
      "reserved": 0,
      "damaged": 0,
      "awaitingIdentification": 0,
      "inTransit": 6,
      "incoming": 0
    }
  ],
  "backordered": 0,
  "cost": {
    "costCents": 1250,
    "source": "receipt",
    "at": "2026-10-22T01:20:03.000Z"
  },
  "createdAt": "2026-03-10T01:02:03.000Z",
  "updatedAt": "2026-10-22T01:20:03.000Z"
}

The panel writes this call in other languages. It does not send it: Manifold's APIs do not take calls from a web page on another site, so run the call from your own code or terminal. The whole API as OpenAPI: inventory-manager.openapi.json. Base URL https://inventory.getmanifold.io.

Errors

Every refusal is a status and a JSON body whose _tag names it. A refused call changes nothing.

401

RefusalWhat it meansWhat to do
Unauthorized reason The token is missing, expired or not one Manifold issued.Get a fresh token and send the call again.
TokenAlreadyUsed tokenId A single-use app token was already spent.Mint a new token for this call.

402

RefusalWhat it meansWhat to do
SubscriptionRequired status The organization's subscription has lapsed, so writes are refused.An owner settles billing. Reads still work meanwhile.

403

RefusalWhat it meansWhat to do
TenantRequired userId The token names no organization.Choose the organization, then get a new token.
ScopeRequired required The token's roles do not grant the scope this call needs.Ask an owner or admin for a role that grants it.

404

RefusalWhat it meansWhat to do
ItemNotFound sku No such record in this organization.Check the id in the path or the body.
LocationNotFound locationId No such record in this organization.Check the id in the path or the body.

409

RefusalWhat it meansWhat to do
LocationArchived locationId The location is archived, and an archived location takes no changes or stock.Use an active location.
ReferenceRateUnavailable currency, homeCurrency, date, reason No exchange rate was published for the currency near that date.Send the rate yourself, or pick another date.
MirroredFromSource source This area is fed by your source system until the organization goes live.Make the change in the source system, or go live first.

503

RefusalWhat it meansWhat to do
RequestLogUnavailable tokenId, reason The service could not record the request, so it did nothing.Send the same request again, with the same key.

How refusals work everywhere: Errors.

Used in