nisebookings Payments API
The payments API from nisebookings — 1 operation(s) for payments.
The payments API from nisebookings — 1 operation(s) for payments.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/nisebookings-com:nisebookings-com-payments-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: nisebookings — public Payments API
version: '2026-10-13'
summary: Hosted appointment booking, packages, waiting lists and event tickets.
description: 'Public, unauthenticated API for one business account, identified by its **public key** in the
path (Instellingen → Insluiten in the admin). Used by the embeddable widgets and by custom
front-ends. Test against a 24-hour sandbox: `POST https://app.nisebookings.com/api/sandbox`.
## Rules that matter
- All instants are ISO 8601 UTC. `from`/`until` are business-local calendar dates (`YYYY-MM-DD`).
- The server never trusts client amounts, staff, extras or persons: every request is re-resolved
and re-checked against the live schedule, then written transactionally with per-staff locks.
- Two customers can never book the same seat: the loser of a race receives `409 slot_unavailable`
with the 0-based index of the failing item.
- Send back the exact `start` (and `staffId`) that a slot search returned. Times are never
constructed client-side.
- CORS: the request `Origin` is reflected when the account''s allowed-websites list (`allowedOrigins`) is empty or
contains that origin; otherwise `403 origin_not_allowed`. `OPTIONS` is answered with 204.
- Responses are `Cache-Control: no-store`, except `GET services` (`public, max-age=60`).
- Retries: send an `Idempotency-Key` header on `POST bookings` and `POST tickets`. A retry with the
same key and body returns the original response (`Idempotent-Replayed: true`) instead of creating
a second order. Keys are kept 24 hours.
## Versioning and rate limits
- Send `X-Api-Version: 2026-10-13` to pin a version; omit it for the latest, which every response
echoes — except the unknown-version `400` itself. An unknown value is `400 bad_request` and lists
the supported `versions`.
- Per minute and per client IP: 120 requests, or 20 for booking commits (`POST bookings`,
`POST bookings/{token}/reschedule`, `POST uploads` and `POST tickets`); `OPTIONS` preflights have
their own bucket of 120. Over that is `429 rate_limited`. Counted responses carry `X-RateLimit-Limit`,
`X-RateLimit-Remaining` and `X-RateLimit-Reset` (epoch seconds); a 429 adds `Retry-After`
(seconds). The unknown-version `400` and `OPTIONS` preflights carry no rate-limit state.
- A breaking change ships as a new dated version; the old one stays supported for at least six
months, announced with `Deprecation` and `Sunset` headers.
- This document is served on the app origin as `GET /openapi.json`; the management API spec as
`GET /api/v1/openapi.json`.
Limits: 60 items per order, 10 chain parts, 52 recurrence occurrences, 31 days per slots call,
2000-character notes, 40-character coupon codes, 1–50 tickets per type (max 20 types).
Errors use stable `error` codes: `not_found`, `origin_not_allowed`, `validation`,
`slot_unavailable`, `sold_out`, `sales_closed`, `payment_unavailable`, `bad_request`,
`idempotency_in_progress`, `idempotency_mismatch`, `rate_limited`, `server`.'
license:
name: Proprietary
servers:
- url: https://app.nisebookings.com
tags:
- name: Payments
paths:
/api/public/{key}/payments/{token}:
parameters:
- $ref: '#/components/parameters/Key'
- name: token
in: path
required: true
schema:
type: string
pattern: ^[0-9a-f]{48}$
- $ref: '#/components/parameters/ApiVersion'
get:
tags:
- Payments
summary: Payment status (poll after a Mollie redirect)
description: 'If the payment is still pending and of type mollie, this call asks Mollie directly, so it can
be polled instead of relying on the webhook. Poll every 2 s for up to ~30 s.'
operationId: getPayment
responses:
'200':
description: Payment status with the order's items
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentStatus'
'400':
$ref: '#/components/responses/BadRequest'
'403':
$ref: '#/components/responses/OriginNotAllowed'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/ServerError'
components:
responses:
NotFound:
description: Unknown key, service, event, package, payment or booking token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
OriginNotAllowed:
description: The request `Origin` is not in the account's allowed websites (`allowedOrigins`).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
BadRequest:
description: Unsupported `X-Api-Version` (`bad_request` with the supported `versions`), or a malformed `Idempotency-Key`.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
ServerError:
description: Unexpected server error (details are logged server-side only).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
TooManyRequests:
description: 'Rate limit exceeded (`rate_limited`): 120 requests per minute per client IP, or 20 for booking
commits.
'
headers:
Retry-After:
$ref: '#/components/headers/Retry-After'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
PaymentStatus:
type: object
required:
- status
- items
- attendees
properties:
status:
type: string
enum:
- pending
- completed
- rejected
- refunded
booking:
oneOf:
- type: 'null'
- type: object
properties:
serviceTitle:
type: string
staffName:
type: string
start:
type: string
items:
type: array
items:
type: object
required:
- id
- status
- start
- serviceTitle
- staffName
properties:
id:
type: string
status:
type: string
start:
type: string
serviceTitle:
type: string
staffName:
type: string
attendees:
type: array
description: Event tickets, only once approved (paid).
items:
type: object
required:
- code
properties:
code:
type: string
Error:
type: object
required:
- error
properties:
error:
type: string
enum:
- not_found
- origin_not_allowed
- validation
- slot_unavailable
- cannot_reschedule
- sold_out
- sales_closed
- payment_unavailable
- plan_limit
- too_large
- bad_request
- idempotency_in_progress
- idempotency_mismatch
- rate_limited
- server
message:
type: string
description: 'Present for `plan_limit`: a sentence for the customer, in the account language.'
limit:
type: integer
description: 'Present for a reached booking limit (`plan_limit`): bookings per month.'
used:
type: integer
description: 'Present for a reached booking limit (`plan_limit`): bookings this month.'
payment:
type: boolean
description: Present for `plan_limit` when the subscription is read-only after a missed payment.
fields:
type: object
description: 'Present for `validation`. For the request''s own fields: a code (`invalid`, `required`, `too_long`;
`coupon` carries the coupon''s status, e.g. `expired`). For an intake question (keyed by its field id)
and for uploads: a message in the account language, ready to show.
'
additionalProperties:
type: string
item:
type: integer
description: 0-based index of the failing item.
min:
type: integer
description: 'Present with `fields.persons`: the fewest persons that fit.'
max:
type: integer
description: 'Present with `fields.persons`: the most persons that fit.'
type:
type: string
description: Ticket type id for `sold_out`.
versions:
type: array
description: Present for `bad_request` when `X-Api-Version` is unknown; the supported versions.
items:
type: string
example: '2026-10-13'
retryAfter:
type: integer
description: Present for `rate_limited` (429), same value as the `Retry-After` header.
parameters:
ApiVersion:
name: X-Api-Version
in: header
required: false
description: Defaults to the latest version when omitted.
schema:
type: string
enum:
- '2026-10-13'
Key:
name: key
in: path
required: true
description: The account's public key, 1–64 chars of `[A-Za-z0-9_-]`.
schema:
type: string
pattern: ^[A-Za-z0-9_-]{1,64}$
headers:
Retry-After:
description: Seconds until the rate-limit window resets. Sent on 429 only.
schema:
type: integer
X-RateLimit-Reset:
description: Epoch seconds when the current window resets.
schema:
type: integer
X-RateLimit-Limit:
description: Requests allowed per minute for this identity (client IP).
schema:
type: integer
X-RateLimit-Remaining:
description: Requests left in the current minute.
schema:
type: integer