Transactions API (1.0.0)

Download OpenAPI specification:

Check database readiness

Pings the service database with a one-second deadline. Returns 503 when the database is unavailable or the check times out. Does not expose connection error details. Responses use Cache-Control: no-store.

Responses

Response samples

Content type
application/json
{
  • "Status": "ok"
}

Replace and reconcile monthly accounting controls

Submit the authenticated provider's complete accounting totals for a month. Each accepted request atomically replaces all previously submitted controls for that provider and month, including removal of omitted cost centers. Send cumulative month-to-date totals when updating daily; values are never added to previous submissions. An empty controls array clears the submission. Controls must be fully received and validated before 06:00:00 UTC on the first calendar day of the following month. For example, August 2026 controls must arrive before 2026-09-01T06:00:00Z. Requests at or after the deadline are rejected without changing stored controls. Reconciliation uses transactions visible to the database statement, selected by booking_date for initial records and cancellation_date for cancellations in the UTC month (inclusive start, exclusive next month). Initial records add their amounts and one ticket; cancellation records subtract their amounts and one ticket in the cancellation month, even if booked in an earlier month. Amounts are compared as exact decimals without rounding or tolerance. Each cost center uses one currency. Differences do not reject a submission; the response includes all submitted cost centers and all cost centers with transactions, including those omitted from the submission. Later transactions may change reconciliation results on a subsequent submission.

Authorizations:
bearerAuth
Request Body schema: application/json
required
month
required
string (ControlMonth) ^[0-9]{4}-(0[1-9]|1[0-2])$

Accounting month in YYYY-MM format, with year 0001 through 9999.

required
Array of objects (MonthlyControl)

Complete replacement, with at most one control per cost_center.

Responses

Request samples

Content type
application/json
{
  • "month": "2026-08",
  • "controls": [
    ]
}

Response samples

Content type
application/json
{
  • "month": "2026-08",
  • "matches": true,
  • "results": [
    ]
}

List registered product codes

List all product codes registered by the authenticated provider, identified by its API key.

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
[
  • "PARKING_DAILY",
  • "PARKING_HOURLY"
]

Register product codes

Register product codes that the authenticated provider intends to use in transactions. The provider is identified by its API key. Registration is additive and safe to retry. Already registered codes are ignored, new codes are registered, and omitted codes remain registered.

Authorizations:
bearerAuth
Request Body schema: application/json
required

Product codes to register for the authenticated provider. The entire JSON body must be at most 2 MiB (2,097,152 bytes), including whitespace and UTF-8 encoding. Split larger submissions into smaller requests; the limit is in bytes, not the number of product codes.

Array (non-empty)
string [ 1 .. 32 ] characters

Provider product code intended for use in the product_code field of a transaction.

Responses

Request samples

Content type
application/json
[
  • "PARKING_HOURLY",
  • "PARKING_DAILY"
]

Create transactions

Each cost_center must exactly match a code in the shared approved cost center registry. Each product_code must already be registered by the authenticated provider. Within a provider, each transaction ID may appear once for an initial transaction (cancellation_date absent or null) and once for its cancellation (cancellation_date non-null). Repeating either kind, within a batch or across requests, rejects the entire batch with 400. Transactions must be fully received and validated before 06:00:00 UTC on the first calendar day following their applicable UTC month (booking_date for initial records; cancellation_date for cancellations). At or after that deadline, the entire batch is rejected with 422, including otherwise valid records. For example, initial August 2026 bookings cannot be submitted at or after 2026-09-01T06:00:00Z; earlier booking months are already closed. Cancellations use cancellation_date for this cutoff and may retain a booking_date in a closed month. For example, an August 31 booking cancelled on September 2 can be submitted before October 1 at 06:00:00 UTC. An August cancellation cannot be submitted at or after September 1 at 06:00:00 UTC, even if its booking_date is in an open month. The cutoff is checked once for the entire validated batch, before cost-center, product-code and duplicate checks. Invalid cost centers take precedence over unregistered product codes.

Authorizations:
bearerAuth
Request Body schema: application/json
required

The entire JSON body must be at most 2 MiB (2,097,152 bytes), including whitespace and UTF-8 encoding. Split larger submissions into smaller requests; the limit is in bytes, not the number of transactions. Each request is atomic independently.

Array (non-empty)
id
required
string [ 1 .. 128 ] characters

Provider-supplied transaction identifier, stored verbatim as external_id and shared by the initial transaction and its optional cancellation. At most 128 Unicode code points.

amount
required
number <double>

Gross transaction amount including tax, expressed in the currency specified by currency_code. Subtract tax_amount to calculate the net amount.

tax_amount
required
number <double>

Tax included in the gross transaction amount, expressed in the currency specified by currency_code. The net amount is amount minus tax_amount.

currency_code
required
string^[A-Z]{3}$

ISO 4217 three-letter uppercase currency code for the transaction amounts.

product_code
required
string <= 32 characters

Code identifying the product associated with the transaction. At most 32 Unicode code points. Must already be registered by the authenticated provider through POST /api/v1/product-codes.

booking_date
required
string <date-time>

Date and time the transaction was booked, formatted according to RFC 3339 with a timezone offset or Z for UTC. Its month is determined after conversion to UTC. An initial record must be fully received and validated before 06:00:00 UTC on the first day of the following month. For cancellations, this date may remain in a closed month; cancellation_date determines the submission deadline.

payment_date
required
string <date-time>

Date and time of the payment, formatted according to RFC 3339 with a timezone offset or Z for UTC.

cost_center
required
string

Code from the shared approved cost center registry; exact, case-sensitive matching is required.

source_identifier
string or null

Optional provider-supplied source label, such as a parking machine name. Stored verbatim, including empty strings. Omit or set to null when no source is supplied. Multiple transactions may share a source; no source registration is required.

cancellation_date
string or null <date-time>

Date and time of cancellation, formatted according to RFC 3339 with a timezone offset or Z for UTC. A non-null timestamp identifies a cancellation. Omit or set to null for the initial transaction. Submit a separate record with the same ID and a non-null timestamp for its cancellation. The cancellation must be fully received and validated before 06:00:00 UTC on the first calendar day after its UTC cancellation month; at or after that instant it is rejected regardless of booking_date.

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Response samples

Content type
application/json
{
  • "created_count": 3
}