Status codes
| Status | Meaning |
|---|---|
200 OK | The request succeeded |
201 Created | A quote was created |
400 Bad Request | The 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 Unauthorized | Missing, unknown, expired or deactivated key, or a request from an address outside the key's allowlist |
403 Forbidden | The key lacks the scope, may not use this location, or is not a key for this API |
404 Not Found | The quote or booking does not exist, or it belongs to another reseller |
409 Conflict | The request conflicts with the current state; see below |
429 Too Many Requests | A rate limit was reached; honour Retry-After |
500, 502, 503 | A 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)
| Situation | What 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 body | Use a new key for a new request |
| A payment link was requested for a booking billed to the reseller | No 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
4xxor5xxyou 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.