Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Overview

    What the Inventory API does, how a call is built and where to go next.

    On this page

    The Inventory API is the stock ledger of your company. For every item at every location it keeps what is on hand, what is reserved for orders and what is available, and it records every change as a movement. Your ERP, your point of sale and your own software read the balances and send commands to change them; nothing else changes a quantity. It is a JSON API over HTTPS.

    Client credentials, your base address and a test company are issued with your account. Accounts are opened by our team: ask for one through the contact form and we set it up with you.

    Request an account

    How a call works

    1. Sign in

      Ask for a token with your client credentials. See Authentication.

    2. Read the balance

      Read the availability of an item at a location. The answer carries the revision of that balance. See Availability.

    3. Send a command

      A command has an operationId you choose, the document that causes it, the actor and its lines. Each line carries the revision you read as expectedRevision. See Idempotent commands.

    4. Read the outcome

      The answer is a 202 with the operation result. If a balance moved in the meantime, the answer is a 409 with revision_conflict and nothing is applied. See Revisions and concurrency.

    5. Listen

      Create a subscription and each movement is also sent to your endpoint as a signed event. See Subscriptions and Event catalogue.

    Kinds of movement

    Every change is a movement of one of seven kinds, and each kind has its own command. A movement is recorded once and never edited. See Movements are immutable.

    StatusMeaning
    receipt Goods came in. On hand goes up.
    reservation Stock is promised to an order. Reserved goes up, on hand does not change.
    sale Goods left. On hand goes down, and so does reserved by the part that was reserved.
    return Goods came back. On hand goes up.
    transfer Stock moved between two locations: two movements that share a transferGroupId.
    count On hand was set to what was counted. The movement holds the difference.
    reversal An earlier movement was undone by a new one, linked to it.

    Where next