Skip to main content

Versioning

The API is versioned in the URL path: https://api.spirii.com/v1/.... Breaking changes ship as a new major version. Additive changes are made in place.

Dates and times

All timestamps are returned in UTC as ISO 8601 strings: 2026-05-19T13:45:00Z. Convert to a local timezone for display.

Money

Monetary amounts are returned as objects with explicit currency and minor-unit integers:
{
  "amount": 1250,
  "currency": "DKK"
}
1250 DKK is 12.50 DKK — always minor units, never floats.

Naming

  • Fields use snake_case.
  • Enum values use SCREAMING_SNAKE_CASE.
  • URLs use plural nouns: /locations, /charge-points, /transactions.

HTTP methods

MethodUse
GETRead a resource or list. Idempotent.
POSTCreate a resource, or trigger an action.
PATCHPartial update.
DELETEDelete a resource. Idempotent.