Skip to content

Timestamps

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 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 datetime attribute value, and a counter’s at / 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 the T (2026-08-18 19:22:00+00), because neither omission leaves anything to interpret. 2026-08-18T19:22:00 and the bare 2026-08-18 are both REFUSED (invalid_value, naming the missing offset). That makes datetime symmetric with date, which has always refused an instant, and it is why CounterOp.at and CounterEntry.last_at publish format: date-time with 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 literal T, followed by Z or ±HH:MM — 2026-08-18T19:22Z and 2026-08-18T19:22:00+02:00 are accepted. Anything else, 2026-08-18 19:22:00+00 and 2026-08-18T19:22:00+00 included, is refused as schema_invalid on that member.
  • The from / to filters of GET /bookings and GET /customers/{customerRef}/bookings take that same instant form or a bare YYYY-MM-DD, and refuse anything else as invalid_value on that parameter. A bare day is a whole day: from starts at its first instant and to ends at its last (23:59:59.999999Z), both in UTC. A from after to is 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.

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).