Errors and status codes

How the External API reports success and failure: the HTTP status codes, the shape of an error body, idempotent retries and the trace id to quote when reporting a problem.

Reference · Updated December 2, 2026

Status codes

StatusMeaning
200 OKThe request succeeded
201 CreatedA quote was created
400 Bad RequestThe request is invalid, or the operation cannot be carried out in the current state (for example a booking that can no longer be cancelled)
401 UnauthorizedMissing, unknown, expired or deactivated key, or a request from an address outside the key's allowlist
403 ForbiddenThe key lacks the scope, may not use this location, or is not a key for this API
404 Not FoundThe quote or booking does not exist, or it belongs to another reseller
409 ConflictThe request conflicts with the current state; see below
429 Too Many RequestsA rate limit was reached; honour Retry-After
500, 502, 503A fault on our side or in a dependency; retry later and quote the X-Trace-Id

A 404 for another reseller's quote or booking is deliberately identical to one for a reference that does not exist.

Error bodies

Most refusals carry a short message in error, and some also a stable code:

{
  "error": "This location is not accepting bookings.",
  "code": "LocationNotAcceptingBookings"
}

Branch on the status code and, where present, the code. Messages are written for people and may be reworded.

Request validation errors (a missing required field, a value out of range) are answered with 400 and a list of the fields at fault.

A confirm that cannot be completed answers 400 with success: false and the reason in failureReason.

Conflicts (409)

SituationWhat to do
The location no longer accepts bookings (LocationNotAcceptingBookings)Stop offering this location; this is distinct from a location that is merely full
The same Idempotency-Key was sent with a different request bodyUse a new key for a new request
A payment link was requested for a booking billed to the resellerNo link is issued for such bookings; nothing to do

Idempotent retries

The operations that create something (create quote, confirm quote, create payment link) accept an Idempotency-Key header:

  • Send a unique value per intent, for example a UUID you store with your order.
  • Same key and same body: the original successful answer is returned and nothing is created twice.
  • Same key and a different body: 409.
  • Only successful answers are stored. After a 4xx or 5xx you may retry with the same key.
  • Keys are scoped to your API key, so they never collide with another partner's.

The header is optional, but strongly recommended on confirm: it is the safe way to retry after a timeout.

Trace id

Every answer, successful or not, carries an X-Trace-Id header. Log it with your request. When you report a problem to the operator or to support@parktelligence.nl, include the trace id, the time and the operation.