Skip to main content
PUT
Set Reserves

Authorizations

Authorization
string
header
required

API key authentication. Send your raw API key as the Authorization header value with NO scheme prefix — Authorization: YOUR-API-KEY. Do NOT prefix it with Bearer or ApiKey, and do not use an X-API-Key header; those are not accepted.

Path Parameters

companyId
string<uuid>
required

Company identifier

eventId
string<uuid>
required

Event identifier — an unknown event is 404

categoryId
string<uuid>
required

A configured RESERVED transaction category — discover ids with GET /api/v1/companies/{companyId}/financials/config/categories

Body

application/json
actionId
string<uuid>
required

Client-minted idempotency key — becomes the action's journal id. An identical retry replays the original outcome; reuse with a different payload is 409 ACTION_ID_REUSED

expectedTotalCents
integer
required

The scope's new ABSOLUTE expected total, in user display cents (never a delta). Unconstrained — a value below the scope's paid-to-date is legal and leaves the remaining reserve negative

reserveDate
string<date>
required

The reserve date (ISO YYYY-MM-DD); must not be in the future

author
string

Optional display label for the source system's author (e.g. the integrator-side user). Stamped as the journal record's display attribution; the acting principal stays the External API service user, so a label can never impersonate an in-app user. Ignored on idempotent replays

Required string length: 1 - 255
memo
string

Free-text memo

Response

The scope's refreshed expected total

The response of a reserve write: the emitted journal id(s) plus the scope's NEW expected total — the number a reserves.set to the same value would be a no-op against.

journalIds
string<uuid>[]
required

Every journal id the action emitted — the actionId you supplied first, then any companion batch it composed

Minimum array length: 1
eventId
string<uuid>
required

The scope's event, echoed

categoryId
string<uuid>
required

The scope's reserved category, echoed

expectedTotalCents
integer
required

The scope's expected total AFTER the write, in user display cents (the magnitude a user would type; the category's expectedDirection orients it)