Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Period locks

    A month is locked when its checklist has nothing blocking; after that nothing is posted into it.

    On this page

    A month ends in two steps. Choose Start closing, then work through the checklist. When nothing blocks, it is locked. A locked month is final: the entries it holds are the ones that go into the reports and the returns for October 2026.

    The checklist

    ItemWhat blocks
    Bank reconciledBank lines of the month that are neither posted nor rejected.
    VAT reconciled with documentsThe VAT in the ledger differs from the VAT on the month’s documents. Post or reject the outstanding documents to reconcile the totals.
    AccrualsDocuments of the month still waiting to be posted, and the confirmation by the person who owns the item.
    DepreciationThe depreciation entry of the month, until it is posted.
    Stock valuedThe confirmation that the stock was valued, until the person who owns the item gives it.

    Each item has an owner and a count of what blocks it. Locking is refused while the counts add up to more than 0.

    Use Open documents on a checklist row to see the documents that block that item. When the pre-filled return arrives, Month end shows it for reference. You can lock the period before it arrives.

    After the lock

    • A posting request with an effectiveDate in the locked month is refused with a 409 period_closed. A request that would be dated in a month that has no period is refused the same way.
    • A reversal dated in the locked month is refused the same way. The correction of a locked month is a reversal dated in an open one.
    • A late document of the locked month, such as an invoice that arrives after the lock, is posted with the date of an open month, with its own date kept in the facts.

    The refusal

    {
      "code": "period_closed",
      "message": "The period of the date is locked, or there is no period for it. Nothing is posted into it.",
      "requestId": "29c05286-9358-40ef-ace1-708027844f4c"
    }

    Events

    Two events follow the life of a period: period.closing and period.locked. Use them to start the reports of the month when it is locked and not before. See the Event catalogue.

    period.closing

    {
      "specversion": "1.0",
      "id": "9be2fb41-d4bc-4dbd-8c6e-49348f676e96",
      "type": "com.rdcopilot.accounting.period.closing.v1",
      "source": "urn:rdcopilot:service:accounting",
      "time": "2026-11-02T08:00:00Z",
      "datacontenttype": "application/json",
      "customerOrgId": "bdbc5b26-3f8a-4c1a-8c21-6c396293da32",
      "legalCompanyId": "8373a2b0-3239-4aee-b6c8-56d7829a746d",
      "aggregateType": "period",
      "aggregateId": "93ee6a06-9e1b-4f32-b0ca-b876c8e48b06",
      "aggregateRevision": 1,
      "correlationId": "80aa986d-889e-4472-918c-1d7fb5883d99",
      "causationId": null,
      "actor": {
        "serviceId": "accounting"
      },
      "data": {
        "period": "2026-10",
        "status": "closing"
      }
    }

    period.locked

    {
      "specversion": "1.0",
      "id": "5437638c-fff9-4535-8c7a-3f44261e6e86",
      "type": "com.rdcopilot.accounting.period.locked.v1",
      "source": "urn:rdcopilot:service:accounting",
      "time": "2026-11-23T07:12:00Z",
      "datacontenttype": "application/json",
      "customerOrgId": "bdbc5b26-3f8a-4c1a-8c21-6c396293da32",
      "legalCompanyId": "8373a2b0-3239-4aee-b6c8-56d7829a746d",
      "aggregateType": "period",
      "aggregateId": "93ee6a06-9e1b-4f32-b0ca-b876c8e48b06",
      "aggregateRevision": 2,
      "correlationId": "80aa986d-889e-4472-918c-1d7fb5883d99",
      "causationId": null,
      "actor": {
        "serviceId": "accounting"
      },
      "data": {
        "period": "2026-10",
        "status": "locked"
      }
    }