Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Event catalogue

    The one event Inventory sends, once per movement, and what its fields hold.

    On this page

    Inventory sends one event for every movement it records, whatever its kind. A command with three lines records three movements and sends three events; a transfer line sends two. Every event has the same envelope and reaches the endpoint of your subscription, signed.

    TypeSent when
    com.rdcopilot.inventory.movement.v1A movement is recorded: receipt, reservation, sale, return, transfer, count or reversal.

    The envelope for a movement

    FieldHolds
    datacontenttypeAlways application/json.
    timeThe occurredAt of the command.
    aggregateTypeinventory-balance: the record that changed is the balance of one item at one location.
    aggregateIdThe identifier of that balance. It is the same for every movement of the item at the location.
    aggregateRevisionThe revision of the balance after the movement: resultingRevision of the movement.
    correlationIdThe operationId of the command.
    causationIdThe documentId of the source of the command: the order, the receipt, the delivery.
    actorThe actor of the command.

    The data of the event

    FieldMeaning
    movementIdThe movement. Read it from the stock card for the rest of its fields.
    productIdThe item.
    locationIdThe location.
    onHandDeltaThe change of the quantity on hand, as a decimal string.
    reservedDeltaThe change of the quantity reserved, as a decimal string.

    The event does not say what kind of movement it is. Read the movement for its kind, its source and its links.

    A reservation

    JSON

    {
      "specversion": "1.0",
      "id": "517ef9ce-9831-449c-bd68-d37290ecd357",
      "type": "com.rdcopilot.inventory.movement.v1",
      "source": "urn:rdcopilot:service:inventory-runtime",
      "time": "2026-11-23T07:12:00.000Z",
      "datacontenttype": "application/json",
      "customerOrgId": "690fa0e3-547f-4f93-96b7-824475cc3d7c",
      "legalCompanyId": "d84ba982-ca9a-4e91-9566-21bd23f7227b",
      "aggregateType": "inventory-balance",
      "aggregateId": "c2c684e0-3700-5969-a967-1f8b830a2012",
      "aggregateRevision": 6,
      "correlationId": "90aebca5-208b-47dd-9e6d-c9159d4aab06",
      "causationId": "46091949-3c11-414b-9157-994f3048e568",
      "actor": {
        "serviceId": "brumar-erp",
        "userId": "4e2f591e-3df0-4f36-8741-3e49134249b0"
      },
      "data": {
        "movementId": "771d53db-5d2c-4a12-b9a6-bb3c86e5eeea",
        "productId": "6cbfcba3-55fd-4cf0-9709-6e75c9717bb3",
        "locationId": "b006344d-2fae-4970-bb6f-c32877084b4f",
        "onHandDelta": "0",
        "reservedDelta": "24"
      }
    }

    A sale from the reservation

    Both quantities fall: the goods left and the reservation was used up.

    JSON

    {
      "specversion": "1.0",
      "id": "36f7271e-e92a-4bbb-b631-d289f80e177e",
      "type": "com.rdcopilot.inventory.movement.v1",
      "source": "urn:rdcopilot:service:inventory-runtime",
      "time": "2026-11-23T07:19:00.000Z",
      "datacontenttype": "application/json",
      "customerOrgId": "690fa0e3-547f-4f93-96b7-824475cc3d7c",
      "legalCompanyId": "d84ba982-ca9a-4e91-9566-21bd23f7227b",
      "aggregateType": "inventory-balance",
      "aggregateId": "c2c684e0-3700-5969-a967-1f8b830a2012",
      "aggregateRevision": 7,
      "correlationId": "87e846f9-6aaa-4b7c-b145-f59827ed2ae6",
      "causationId": "1e341639-829d-43ef-a1c9-10edb27894b4",
      "actor": {
        "serviceId": "brumar-erp",
        "userId": "376a64f7-268a-4f79-808e-0d89162055ac"
      },
      "data": {
        "movementId": "e3b706f6-4600-4e18-9e43-1e9469adc3be",
        "productId": "6cbfcba3-55fd-4cf0-9709-6e75c9717bb3",
        "locationId": "b006344d-2fae-4970-bb6f-c32877084b4f",
        "onHandDelta": "-24",
        "reservedDelta": "-24"
      }
    }