Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Event catalogue

    Every event the API sends, the record it is about, when it is sent and the fields of its data.

    On this page

    Each operation that changes a record sends exactly one event, after the change is applied. The type is com.rdcopilot.erp.<event>.v1. The envelope is the same for every event, see Event envelope; this page lists what differs: the aggregateType and the fields of data.

    TypeAggregateSent whenFields of `data`
    com.rdcopilot.erp.item.created.v1itemAn item was created.`code`, `name`
    com.rdcopilot.erp.partner.created.v1partnerA customer or supplier was created.`name`, `roles`
    com.rdcopilot.erp.sales-order.created.v1sales-orderA sales order was entered as a draft.`number`, `customerId`, `total`
    com.rdcopilot.erp.sales-order.confirmed.v1sales-orderA draft passed the credit check and was confirmed.`number`, `status`
    com.rdcopilot.erp.sales-order.reserved.v1sales-orderStock was set aside for an order. status is reserved when every line is covered and confirmed while lines are short.`number`, `status`, `short`
    com.rdcopilot.erp.delivery.created.v1deliveryA delivery took the reserved units out of stock.`number`, `salesOrderNumber`
    com.rdcopilot.erp.invoice.created.v1invoiceAn invoice was issued for a delivered order.`number`, `salesOrderNumber`, `total`
    com.rdcopilot.erp.invoice.payment-recorded.v1invoiceA payment was recorded against an invoice.`number`, `amount`, `balance`, `status`
    com.rdcopilot.erp.purchase-order.created.v1purchase-orderA purchase order was placed.`number`, `supplierId`, `total`
    com.rdcopilot.erp.receipt.recorded.v1receiptGoods were received against a purchase order and added to stock.`number`, `purchaseOrderNumber`
    com.rdcopilot.erp.supplier-bill.recorded.v1supplier-billA supplier bill was recorded as a draft.`number`, `supplierNumber`, `purchaseOrderNumber`, `total`
    com.rdcopilot.erp.supplier-bill.corrected.v1supplier-billThe lines of a draft bill were corrected.`number`, `total`
    com.rdcopilot.erp.supplier-bill.submitted.v1supplier-billA bill was sent for approval.`number`, `match`
    com.rdcopilot.erp.supplier-bill.approved.v1supplier-billOne step of the approval chain approved the bill. status is approved after the last step.`number`, `step`, `status`
    com.rdcopilot.erp.supplier-bill.rejected.v1supplier-billA bill went back to draft with a reason.`number`, `reason`
    com.rdcopilot.erp.supplier-bill.held.v1supplier-billA bill was put on hold.`number`, `reason`
    com.rdcopilot.erp.supplier-bill.released.v1supplier-billA bill on hold was released.`number`
    com.rdcopilot.erp.supplier-bill.scheduled.v1supplier-billAn approved bill was scheduled for payment.`number`, `scheduledFor`
    com.rdcopilot.erp.supplier-bill.paid.v1supplier-billThe payment of a scheduled bill was recorded.`number`
    com.rdcopilot.erp.work-order.created.v1work-orderA work order was planned.`number`, `itemCode`, `planned`
    com.rdcopilot.erp.work-order.started.v1work-orderA work order went into production.`number`
    com.rdcopilot.erp.work-order.finished.v1work-orderA work order was finished: components were consumed and the made items added to stock.`number`, `produced`

    An event

    The delivery of an order sends delivery.created. aggregateId is the delivery, and aggregateRevision is its revision after the change.

    delivery.created

    {
      "specversion": "1.0",
      "id": "dff3fbc0-e5e9-4d5c-af95-9e2047b9a31e",
      "type": "com.rdcopilot.erp.delivery.created.v1",
      "source": "/erp/v1",
      "time": "2026-11-23T07:54:00Z",
      "customerOrgId": "e008e1af-fe83-441e-8dae-e518a9f6c52a",
      "legalCompanyId": "e532fe90-4649-4d42-8767-77a0f6dc1d54",
      "aggregateType": "delivery",
      "aggregateId": "484f788c-71dc-48c2-864a-187d82d44488",
      "aggregateRevision": 1,
      "correlationId": "43773434-1a1d-4d7b-8228-d019a068345f",
      "causationId": "a2c43bc6-4592-49bb-a0d4-ea72f62d73e7",
      "actor": {
        "clientId": "9cdf2ed6-aca2-4654-9334-b958d8053885"
      },
      "data": {
        "number": "LIV-2026-01844",
        "salesOrderNumber": "CV-1048"
      }
    }

    Reading events

    • An event says that something happened and carries only the fields in the table. Read the record with its aggregateId for the rest.
    • A sales-order.reserved event with status confirmed means that lines are still short; short lists them with the units each one still wants.
    • supplier-bill.approved is sent once per step. The bill is fully approved when status is approved.