Timestamps
The one format emitted
Section titled “The one format emitted”Every instant this API emits — created_at, updated_at, archived_at,
start_time, counter last_at, datetime attribute values, and the
created_at in a webhook delivery — is RFC 3339 in UTC with a fixed
six-digit fraction and a literal Z: 2026-08-21T00:37:35.280147Z. One
format, one width, so a fixed layout (2006-01-02T15:04:05.000000Z in Go,
%Y-%m-%dT%H:%M:%S.%fZ in Python) parses every timestamp in every response,
and a captured body still compares equal after a re-run.
What is accepted on input
Section titled “What is accepted on input”What is accepted on input depends on where the instant goes. Everywhere, the zone is not optional: the only way to store a wall-clock time is to guess a zone, and a POS in Oslo sending local time would have every instant land two hours early behind a 200.
- A
datetimeattribute value, and a counter’sat/last_at, take any RFC 3339 instant: a date, a time of day, and a zone. Seconds and the fraction are optional (2026-08-18T19:22Z), and a space may stand in for theT(2026-08-18 19:22:00+00), because neither omission leaves anything to interpret.2026-08-18T19:22:00and the bare2026-08-18are both REFUSED (invalid_value, naming the missing offset). That makesdatetimesymmetric withdate, which has always refused an instant, and it is whyCounterOp.atandCounterEntry.last_atpublishformat: date-timewith the offset required. - A booking’s
start_time/end_time(POST /bookings,PATCH /bookings/{bookingRef}) take one narrower form:YYYY-MM-DDTHH:MM[:SS[.fff]]with a literalT, followed byZor±HH:MM—2026-08-18T19:22Zand2026-08-18T19:22:00+02:00are accepted. Anything else,2026-08-18 19:22:00+00and2026-08-18T19:22:00+00included, is refused asschema_invalidon that member. - The
from/tofilters ofGET /bookingsandGET /customers/{customerRef}/bookingstake that same instant form or a bareYYYY-MM-DD, and refuse anything else asinvalid_valueon that parameter. A bare day is a whole day:fromstarts at its first instant andtoends at its last (23:59:59.999999Z), both in UTC. Afromaftertois not an error; it matches nothing.
Whatever you send is normalised to the emitted form above before it is stored,
so a value you write back is echoed in the canonical rendering rather than the
one you sent. The fraction is where the surfaces differ, which matters if you
are building the golden-file fixtures this section recommends: on a datetime
value or a counter instant, a fraction finer than six digits is rounded,
not truncated — …35.123456789Z stores as …35.123457Z — while a booking’s
start_time / end_time keeps milliseconds and drops the rest, so the same
input stores as …35.123000Z.
Dates are days, not instants
Section titled “Dates are days, not instants”A date attribute value is a calendar day, YYYY-MM-DD (2026-08-21), and
carries no time or zone in either direction. A value in any other format, or
one naming no real day, is refused as invalid_value, and so is an instant
sent to a date. Send a datetime as an instant with its offset instead
(2026-08-18T19:22:00Z).