APIv1.4.0

API-referentie

Elk endpoint van API v1, gegenereerd uit dezelfde OpenAPI-specificatie die de API serveert. De beschrijvingen komen uit de spec en zijn Engelstalig.

Basis-URL
https://www.callyndar.com/api/v1
Authenticatie
Stuur de publishable key in de header Authorization: Bearer cal_pk_live_… — nooit in de URL.
Versie
1.4.0 · openapi.json · Changelog

Zaak

The venue, its services and its staff: everything to draw the first screen.

Venue info and booking settings

GET/api/v1/venue

Name, contact details, timezone, opening hours, booking rules, privacy/terms links and the Turnstile site key.

Antwoord 200

Velden van het antwoord (39 velden)
  • venueobjectverplicht
  • venue.namestringverplicht
  • venue.descriptionstring | nullverplicht
  • venue.business_type"restaurant" | "generic" | "salon" | "barber" | "clinic" | "carwash"verplicht
  • venue.booking_mode"party_size" | "services"verplicht

    "services": pick services → staff or wash bay → time (salon, barber, clinic, carwash). "party_size": pick guests → time (restaurant).

  • venue.addressstring | nullverplicht
  • venue.citystring | nullverplicht
  • venue.countrystring | nullverplicht
  • venue.phonestring | nullverplicht
  • venue.emailstring | nullverplicht
  • venue.websitestring | nullverplicht
  • venue.logo_urlstring | nullverplicht

    Absolute URL of the logo (or null).

  • venue.timezonestringverplicht

    IANA zone. All dates/times of the API are venue-local.

  • venue.currencystringverplicht
  • venue.default_locale"nl" | "en" | "fr"verplicht

    Language of the guest e-mails and the manage page.

  • venue.opening_hoursobject[]verplicht
  • venue.opening_hours[].weekdayintegerverplicht

    0 = Monday … 6 = Sunday.

  • venue.opening_hours[].openbooleanverplicht
  • venue.opening_hours[].periodsobject[]verplicht
  • venue.opening_hours[].periods[].fromstringverplicht

    Venue-local time, HH:MM (24h).

  • venue.opening_hours[].periods[].untilstringverplicht

    Venue-local time, HH:MM (24h).

  • venue.bookingobjectverplicht
  • venue.booking.min_party_sizeintegerverplicht
  • venue.booking.max_party_sizeintegerverplicht
  • venue.booking.max_advance_daysintegerverplicht
  • venue.booking.holds_enabledbooleanverplicht

    true: POST /holds really reserves the time (capacity_reserved). false: it returns a signed confirmation only.

  • venue.booking.hold_secondsintegerverplicht
  • venue.booking.auto_confirmbooleanverplicht
  • venue.booking.auto_confirm_max_party_sizeinteger | nullverplicht
  • venue.booking.cancellation_cutoff_hoursinteger | nullverplicht
  • venue.booking.allow_service_combosbooleanverplicht
  • venue.booking.service_picker_mode"list" | "guided"verplicht
  • venue.booking.phone_required"never" | "always" | "conditional"verplicht
  • venue.booking.phone_required_min_party_sizeintegerverplicht
  • venue.booking.deposits_enabledbooleanverplicht

    The venue can take online deposits (Stripe connected).

  • venue.privacy_urlstringverplicht

    Show this link next to the booking button (GDPR notice, mandatory).

  • venue.terms_urlstringverplicht

    Show this link next to the booking button (mandatory).

  • venue.turnstile_site_keystring | nullverplicht

    Callyndar Turnstile site key to render on your page when turnstile_required is true.

  • venue.turnstile_requiredbooleanverplicht

    The key asks for the optional Callyndar Turnstile token on bookings and deposits (off by default).

Fouten

Wat je site bij elke code doet staat in Fouten en limieten.

Request
bash
curl 'https://www.callyndar.com/api/v1/venue' \
  -H 'Authorization: Bearer cal_pk_live_JOUW_SLEUTEL'
js
const res = await fetch('https://www.callyndar.com/api/v1/venue', {
  headers: {
    Authorization: 'Bearer cal_pk_live_JOUW_SLEUTEL',
  },
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);
php
<?php
$ch = curl_init('https://www.callyndar.com/api/v1/venue');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer cal_pk_live_JOUW_SLEUTEL',
    ],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
if ($status >= 400) {
    throw new RuntimeException($data['error']['code'] . ': ' . $data['error']['message']);
}
python
import requests

headers = {
    "Authorization": "Bearer cal_pk_live_JOUW_SLEUTEL",
}
res = requests.get("https://www.callyndar.com/api/v1/venue", headers=headers)
data = res.json()
if not res.ok:
    raise RuntimeError(f"{data['error']['code']}: {data['error']['message']}")
Antwoord
json
{
  "venue": {
    "name": "Studio Voorbeeld",
    "description": "Hair salon in the centre of Antwerp.",
    "business_type": "salon",
    "booking_mode": "services",
    "address": "Meir 1",
    "city": "Antwerpen",
    "country": "BE",
    "phone": "+32 3 123 45 67",
    "email": "hallo@studio-voorbeeld.be",
    "website": "https://www.studio-voorbeeld.be",
    "logo_url": "https://callyndar.com/media/logos/studio-voorbeeld.png",
    "timezone": "Europe/Brussels",
    "currency": "EUR",
    "default_locale": "nl",
    "opening_hours": [
      {
        "weekday": 0,
        "open": false,
        "periods": []
      },
      {
        "weekday": 1,
        "open": true,
        "periods": [
          {
            "from": "09:00",
            "until": "18:00"
          }
        ]
      },
      {
        "weekday": 2,
        "open": true,
        "periods": [
          {
            "from": "09:00",
            "until": "12:30"
          },
          {
            "from": "13:30",
            "until": "20:00"
          }
        ]
      },
      {
        "weekday": 3,
        "open": true,
        "periods": [
          {
            "from": "09:00",
            "until": "18:00"
          }
        ]
      },
      {
        "weekday": 4,
        "open": true,
        "periods": [
          {
            "from": "09:00",
            "until": "18:00"
          }
        ]
      },
      {
        "weekday": 5,
        "open": true,
        "periods": [
          {
            "from": "09:00",
            "until": "16:00"
          }
        ]
      },
      {
        "weekday": 6,
        "open": false,
        "periods": []
      }
    ],
    "booking": {
      "min_party_size": 1,
      "max_party_size": 1,
      "max_advance_days": 60,
      "holds_enabled": true,
      "hold_seconds": 600,
      "auto_confirm": true,
      "auto_confirm_max_party_size": null,
      "cancellation_cutoff_hours": 24,
      "allow_service_combos": true,
      "service_picker_mode": "list",
      "phone_required": "always",
      "phone_required_min_party_size": 1,
      "deposits_enabled": false
    },
    "privacy_url": "https://callyndar.com/sites/studio-voorbeeld/privacy",
    "terms_url": "https://callyndar.com/sites/studio-voorbeeld/terms",
    "turnstile_site_key": null,
    "turnstile_required": false
  }
}

Services, categories and variants

GET/api/v1/services

Everything the guest can pick, with duration, price and deposit as the venue set them.

Antwoord 200

Velden van het antwoord (31 velden)
  • currencystringverplicht
  • service_picker_mode"list" | "guided"verplicht
  • allow_service_combosbooleanverplicht
  • categoriesobject[]verplicht
  • categories[].idstringverplicht
  • categories[].parent_idstring | nullverplicht
  • categories[].namestringverplicht
  • categories[].sort_orderintegerverplicht
  • categories[].image_urlstring | nullverplicht
  • servicesobject[]verplicht
  • services[].idstringverplicht
  • services[].namestringverplicht
  • services[].descriptionstring | nullverplicht
  • services[].category_idstring | nullverplicht
  • services[].duration_minutesinteger | nullverplicht

    Base duration of the service. For a service with variants, show duration_min_minutes–duration_max_minutes instead.

  • services[].price_centsinteger | nullverplicht

    null when the venue hides the price. Base price; for a service with variants, show price_from_cents instead.

  • services[].duration_min_minutesinteger | nullverplicht

    Shortest variant duration, or duration_minutes for a service without variants. Show "min–max min", or one value when both are equal.

  • services[].duration_max_minutesinteger | nullverplicht

    Longest variant duration, or duration_minutes for a service without variants.

  • services[].price_from_centsinteger | nullverplicht

    Lowest variant price ("from …"), or price_cents for a service without variants. null when the venue hides the price.

  • services[].price_notestring | nullverplicht
  • services[].deposit_centsinteger | nullverplicht

    Deposit of this service (null without online payments).

  • services[].variant_mode"customer" | "staff" | nullverplicht

    "customer": the guest picks a variant. "staff": the venue decides later (send the service id in pending_ids).

  • services[].variant_questionstring | nullverplicht
  • services[].required_providersintegerverplicht

    Staff members this service needs at once (1 for most services). A service with 2 or more is a multi-staff treatment: it is booked on its own (never in a combination) and the venue assigns the extra staff.

  • services[].variantsobject[]verplicht
  • services[].variants[].idstringverplicht
  • services[].variants[].namestringverplicht
  • services[].variants[].help_textstring | nullverplicht
  • services[].variants[].duration_minutesinteger | nullverplicht
  • services[].variants[].price_centsinteger | nullverplicht
  • services[].variants[].deposit_centsinteger | nullverplicht

Fouten

Wat je site bij elke code doet staat in Fouten en limieten.

Request
bash
curl 'https://www.callyndar.com/api/v1/services' \
  -H 'Authorization: Bearer cal_pk_live_JOUW_SLEUTEL'
js
const res = await fetch('https://www.callyndar.com/api/v1/services', {
  headers: {
    Authorization: 'Bearer cal_pk_live_JOUW_SLEUTEL',
  },
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);
php
<?php
$ch = curl_init('https://www.callyndar.com/api/v1/services');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer cal_pk_live_JOUW_SLEUTEL',
    ],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
if ($status >= 400) {
    throw new RuntimeException($data['error']['code'] . ': ' . $data['error']['message']);
}
python
import requests

headers = {
    "Authorization": "Bearer cal_pk_live_JOUW_SLEUTEL",
}
res = requests.get("https://www.callyndar.com/api/v1/services", headers=headers)
data = res.json()
if not res.ok:
    raise RuntimeError(f"{data['error']['code']}: {data['error']['message']}")
Antwoord
json
{
  "currency": "EUR",
  "service_picker_mode": "list",
  "allow_service_combos": true,
  "categories": [
    {
      "id": "2d7e9f1a-3c5b-4d8e-b6a1-0c2d3e4f5a6b",
      "parent_id": null,
      "name": "Haar",
      "sort_order": 0,
      "image_url": null
    }
  ],
  "services": [
    {
      "id": "5b6f0c3e-2a4d-4f1b-9c7e-1d2a3b4c5d6e",
      "name": "Knippen",
      "description": "Wassen, knippen en drogen.",
      "category_id": "2d7e9f1a-3c5b-4d8e-b6a1-0c2d3e4f5a6b",
      "duration_minutes": 45,
      "price_cents": 4500,
      "duration_min_minutes": 45,
      "duration_max_minutes": 45,
      "price_from_cents": 4500,
      "price_note": null,
      "deposit_cents": null,
      "variant_mode": null,
      "variant_question": null,
      "required_providers": 1,
      "variants": []
    },
    {
      "id": "8e1d4a72-6c3b-4e9f-a2d5-7f0b1c2d3e4f",
      "name": "Kleuren",
      "description": null,
      "category_id": "2d7e9f1a-3c5b-4d8e-b6a1-0c2d3e4f5a6b",
      "duration_minutes": 90,
      "price_cents": 7500,
      "duration_min_minutes": 60,
      "duration_max_minutes": 120,
      "price_from_cents": 6500,
      "price_note": "vanaf",
      "deposit_cents": null,
      "variant_mode": "customer",
      "variant_question": "Hoe lang is je haar?",
      "required_providers": 1,
      "variants": [
        {
          "id": "b3f8d6c1-0a2e-4f5b-9d4c-8e9f0a1b2c3d",
          "name": "Kort haar",
          "help_text": null,
          "duration_minutes": 60,
          "price_cents": 6500,
          "deposit_cents": null
        },
        {
          "id": "c4a9e7d2-1b3f-4a6c-8e5d-9f0a1b2c3d4e",
          "name": "Lang haar",
          "help_text": "Voorbij de schouders",
          "duration_minutes": 120,
          "price_cents": 9500,
          "deposit_cents": null
        }
      ]
    }
  ]
}

Staff for a selection

GET/api/v1/providers

Active staff members (salon, barber, clinic) or wash bays (carwash) that can do all given services. Empty for restaurants.

Queryparameters

  • service_idsstring

    Comma-separated service ids; only staff who can do ALL of them are returned.

Antwoord 200

Velden van het antwoord (6 velden)
  • providersobject[]verplicht
  • providers[].idstringverplicht
  • providers[].namestringverplicht
  • providers[].specialtystring | nullverplicht
  • providers[].biostring | nullverplicht
  • providers[].avatar_urlstring | nullverplicht

Fouten

Wat je site bij elke code doet staat in Fouten en limieten.

Request
bash
curl 'https://www.callyndar.com/api/v1/providers?service_ids=5b6f0c3e-2a4d-4f1b-9c7e-1d2a3b4c5d6e' \
  -H 'Authorization: Bearer cal_pk_live_JOUW_SLEUTEL'
js
const res = await fetch('https://www.callyndar.com/api/v1/providers?service_ids=5b6f0c3e-2a4d-4f1b-9c7e-1d2a3b4c5d6e', {
  headers: {
    Authorization: 'Bearer cal_pk_live_JOUW_SLEUTEL',
  },
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);
php
<?php
$ch = curl_init('https://www.callyndar.com/api/v1/providers?service_ids=5b6f0c3e-2a4d-4f1b-9c7e-1d2a3b4c5d6e');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer cal_pk_live_JOUW_SLEUTEL',
    ],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
if ($status >= 400) {
    throw new RuntimeException($data['error']['code'] . ': ' . $data['error']['message']);
}
python
import requests

headers = {
    "Authorization": "Bearer cal_pk_live_JOUW_SLEUTEL",
}
res = requests.get("https://www.callyndar.com/api/v1/providers?service_ids=5b6f0c3e-2a4d-4f1b-9c7e-1d2a3b4c5d6e", headers=headers)
data = res.json()
if not res.ok:
    raise RuntimeError(f"{data['error']['code']}: {data['error']['message']}")
Antwoord
json
{
  "providers": [
    {
      "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
      "name": "Lisa",
      "specialty": "Kleurspecialist",
      "bio": null,
      "avatar_url": null
    },
    {
      "id": "1f2e3d4c-5b6a-4978-8a6b-5c4d3e2f1a09",
      "name": "Tom",
      "specialty": null,
      "bio": null,
      "avatar_url": null
    }
  ]
}

Beschikbaarheid

Open days, free times and whether a deposit is due.

Open and closed days

GET/api/v1/calendar

Per day open/closed with the reason (weekly closed, holiday, owner day block with message, beyond the booking window) and full days off of staff. Max. 92 days per request.

Queryparameters

  • fromstring

    First day (default: today in the venue timezone).

  • tostring

    Last day, inclusive (default: from + 30 days, max. 92 days span).

  • provider_idstring

    Salon: also report full days off of this staff member as closed.

Antwoord 200

Velden van het antwoord (12 velden)
  • fromstringverplicht

    Venue-local date, YYYY-MM-DD.

  • tostringverplicht

    Venue-local date, YYYY-MM-DD.

  • timezonestringverplicht
  • daysobject[]verplicht
  • days[].datestringverplicht

    Venue-local date, YYYY-MM-DD.

  • days[].openbooleanverplicht
  • days[].reason"past" | "weekly_closed" | "online_day_disabled" | "holiday" | "day_block" | "beyond_max_advance" | "provider_leave" | "provider_not_working" | nullverplicht
  • days[].messagestring | nullverplicht

    Message of the owner for a blocked day (or a holiday label).

  • provider_leaveobject[]verplicht
  • provider_leave[].provider_idstringverplicht
  • provider_leave[].fromstringverplicht

    Venue-local date, YYYY-MM-DD.

  • provider_leave[].tostringverplicht

    Venue-local date, YYYY-MM-DD.

Fouten

Wat je site bij elke code doet staat in Fouten en limieten.

Request
bash
curl 'https://www.callyndar.com/api/v1/calendar?from=2026-12-01&to=2026-12-07' \
  -H 'Authorization: Bearer cal_pk_live_JOUW_SLEUTEL'
js
const res = await fetch('https://www.callyndar.com/api/v1/calendar?from=2026-12-01&to=2026-12-07', {
  headers: {
    Authorization: 'Bearer cal_pk_live_JOUW_SLEUTEL',
  },
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);
php
<?php
$ch = curl_init('https://www.callyndar.com/api/v1/calendar?from=2026-12-01&to=2026-12-07');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer cal_pk_live_JOUW_SLEUTEL',
    ],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
if ($status >= 400) {
    throw new RuntimeException($data['error']['code'] . ': ' . $data['error']['message']);
}
python
import requests

headers = {
    "Authorization": "Bearer cal_pk_live_JOUW_SLEUTEL",
}
res = requests.get("https://www.callyndar.com/api/v1/calendar?from=2026-12-01&to=2026-12-07", headers=headers)
data = res.json()
if not res.ok:
    raise RuntimeError(f"{data['error']['code']}: {data['error']['message']}")
Antwoord
json
{
  "from": "2026-12-01",
  "to": "2026-12-07",
  "timezone": "Europe/Brussels",
  "days": [
    {
      "date": "2026-12-01",
      "open": true,
      "reason": null,
      "message": null
    },
    {
      "date": "2026-12-02",
      "open": true,
      "reason": null,
      "message": null
    },
    {
      "date": "2026-12-03",
      "open": false,
      "reason": "day_block",
      "message": "Opleiding — we zijn gesloten."
    },
    {
      "date": "2026-12-04",
      "open": true,
      "reason": null,
      "message": null
    },
    {
      "date": "2026-12-05",
      "open": true,
      "reason": null,
      "message": null
    },
    {
      "date": "2026-12-06",
      "open": false,
      "reason": "weekly_closed",
      "message": null
    },
    {
      "date": "2026-12-07",
      "open": false,
      "reason": "weekly_closed",
      "message": null
    }
  ],
  "provider_leave": [
    {
      "provider_id": "1f2e3d4c-5b6a-4978-8a6b-5c4d3e2f1a09",
      "from": "2026-12-04",
      "to": "2026-12-05"
    }
  ]
}

Free times on one day

GET/api/v1/availability

The same slots as the Callyndar booking widget, for this party size / selection / staff member.

Queryparameters

  • datestringverplicht

    Venue-local date, YYYY-MM-DD.

  • party_sizeintegerstandaard: 1

    Number of guests (restaurants) — 1 for an appointment.

  • service_idsstring

    Comma-separated service ids (provider sectors: required to size the appointment).

  • variant_idsstring

    Comma-separated variant ids aligned with service_ids; leave an entry empty ("a,,b") for a service without a variant.

  • pending_idsstring

    Comma-separated service ids whose variant the venue decides (variant_mode "staff").

  • provider_idstring

    A specific staff member; omit for "no preference".

Antwoord 200

Velden van het antwoord (11 velden)
  • datestringverplicht

    Venue-local date, YYYY-MM-DD.

  • duration_minutesinteger | nullverplicht

    Length of the appointment the slots are measured with.

  • required_providersintegerverplicht

    Staff members the chosen treatment needs at once (1 unless it is a multi-staff treatment).

  • slotsobject[]verplicht
  • slots[].timestringverplicht

    Venue-local time, HH:MM (24h).

  • slots[].end_timestringverplicht

    Venue-local time, HH:MM (24h).

  • slots[].next_daybooleanverplicht

    true for an after-midnight slot of a late opening window.

  • slots[].availableintegerverplicht

    Free places (restaurant) or free staff members (salon) at this time; for a multi-staff treatment, how many such appointments still fit. Always 1 when the venue hides the remaining-seats count.

  • slots[].provider_idsstring[]verplicht

    Salon: staff free at this time (empty for restaurants, and empty when the venue hides the remaining-seats count).

  • reason"past_date" | "same_day_disabled" | "same_day_closed" | "party_size" | "online_booking_closed_day" | "online_booking_hours" | "closed_day" | "blocked_date" | "day_block" | "holiday" | "beyond_max_advance" | "not_enough_staff" | nullverplicht

    Why the day has no slots (null when it has some, or simply is full).

  • reason_paramsobject (map) | nullverplicht

Fouten

Wat je site bij elke code doet staat in Fouten en limieten.

Request
bash
curl 'https://www.callyndar.com/api/v1/availability?date=2026-12-04&service_ids=5b6f0c3e-2a4d-4f1b-9c7e-1d2a3b4c5d6e&provider_id=9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d' \
  -H 'Authorization: Bearer cal_pk_live_JOUW_SLEUTEL'
js
const res = await fetch('https://www.callyndar.com/api/v1/availability?date=2026-12-04&service_ids=5b6f0c3e-2a4d-4f1b-9c7e-1d2a3b4c5d6e&provider_id=9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d', {
  headers: {
    Authorization: 'Bearer cal_pk_live_JOUW_SLEUTEL',
  },
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);
php
<?php
$ch = curl_init('https://www.callyndar.com/api/v1/availability?date=2026-12-04&service_ids=5b6f0c3e-2a4d-4f1b-9c7e-1d2a3b4c5d6e&provider_id=9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer cal_pk_live_JOUW_SLEUTEL',
    ],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
if ($status >= 400) {
    throw new RuntimeException($data['error']['code'] . ': ' . $data['error']['message']);
}
python
import requests

headers = {
    "Authorization": "Bearer cal_pk_live_JOUW_SLEUTEL",
}
res = requests.get("https://www.callyndar.com/api/v1/availability?date=2026-12-04&service_ids=5b6f0c3e-2a4d-4f1b-9c7e-1d2a3b4c5d6e&provider_id=9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d", headers=headers)
data = res.json()
if not res.ok:
    raise RuntimeError(f"{data['error']['code']}: {data['error']['message']}")
Antwoord
json
{
  "date": "2026-12-04",
  "duration_minutes": 45,
  "required_providers": 1,
  "slots": [
    {
      "time": "09:00",
      "end_time": "09:45",
      "next_day": false,
      "available": 1,
      "provider_ids": [
        "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"
      ]
    },
    {
      "time": "09:15",
      "end_time": "10:00",
      "next_day": false,
      "available": 1,
      "provider_ids": [
        "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"
      ]
    },
    {
      "time": "14:30",
      "end_time": "15:15",
      "next_day": false,
      "available": 1,
      "provider_ids": [
        "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"
      ]
    }
  ],
  "reason": null,
  "reason_params": null
}

Is a deposit due?

GET/api/v1/deposit-policy

Whether this selection needs an online deposit and how much.

Queryparameters

  • party_sizeintegerstandaard: 1

    Number of guests (restaurants) — 1 for an appointment.

  • service_idsstring

    Comma-separated service ids.

  • variant_idsstring

    Comma-separated variant ids aligned with service_ids.

  • pending_idsstring

    Comma-separated pending service ids.

Antwoord 200

Velden van het antwoord (4 velden)
  • requiredbooleanverplicht
  • amount_centsintegerverplicht
  • currencystringverplicht
  • refund_window_hoursintegerverplicht

Fouten

Wat je site bij elke code doet staat in Fouten en limieten.

Request
bash
curl 'https://www.callyndar.com/api/v1/deposit-policy?service_ids=5b6f0c3e-2a4d-4f1b-9c7e-1d2a3b4c5d6e' \
  -H 'Authorization: Bearer cal_pk_live_JOUW_SLEUTEL'
js
const res = await fetch('https://www.callyndar.com/api/v1/deposit-policy?service_ids=5b6f0c3e-2a4d-4f1b-9c7e-1d2a3b4c5d6e', {
  headers: {
    Authorization: 'Bearer cal_pk_live_JOUW_SLEUTEL',
  },
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);
php
<?php
$ch = curl_init('https://www.callyndar.com/api/v1/deposit-policy?service_ids=5b6f0c3e-2a4d-4f1b-9c7e-1d2a3b4c5d6e');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer cal_pk_live_JOUW_SLEUTEL',
    ],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
if ($status >= 400) {
    throw new RuntimeException($data['error']['code'] . ': ' . $data['error']['message']);
}
python
import requests

headers = {
    "Authorization": "Bearer cal_pk_live_JOUW_SLEUTEL",
}
res = requests.get("https://www.callyndar.com/api/v1/deposit-policy?service_ids=5b6f0c3e-2a4d-4f1b-9c7e-1d2a3b4c5d6e", headers=headers)
data = res.json()
if not res.ok:
    raise RuntimeError(f"{data['error']['code']}: {data['error']['message']}")
Antwoord
json
{
  "required": true,
  "amount_cents": 1500,
  "currency": "EUR",
  "refund_window_hours": 24
}

Holds

Hold a time while the guest fills in the form, release it, start a deposit payment.

Hold a time

POST/api/v1/holds

Re-checks the time with every rule and holds it (capacity_reserved: true) or returns a signed confirmation (false) for venues without holds.

Body (JSON)

  • datestringverplicht

    Venue-local date, YYYY-MM-DD.

  • timestringverplicht

    Venue-local time, HH:MM (24h).

  • party_sizeintegerstandaard: 1

    Number of guests (restaurants) — 1 for an appointment.

  • service_idsstring[]

    Chosen services, in the order the guest picked them.

  • variant_ids(string | null)[]

    Chosen variant per service_ids entry (same index), null when that service has no variant choice.

  • pending_idsstring[]

    Services with variant_mode "staff" whose variant the venue decides later.

  • provider_idstring | null

    A specific staff member; omit or null for "no preference".

  • session_idstringverplicht

    One random id per visitor/browser tab (e.g. crypto.randomUUID()). A new hold of the same session replaces the previous one.

Antwoord 201

Velden van het antwoord (14 velden)
  • hold_idstringverplicht

    Pass to POST /bookings. A UUID (real hold) or "nh_…" (signed confirmation).

  • expires_atstringverplicht

    ISO timestamp; show a countdown and ask a new hold after it.

  • capacity_reservedbooleanverplicht

    true: the time is really held for you until expires_at. false: it was free when checked but is not held.

  • datestringverplicht

    Venue-local date, YYYY-MM-DD.

  • timestringverplicht

    Venue-local time, HH:MM (24h).

  • end_timestringverplicht

    Venue-local time, HH:MM (24h).

  • duration_minutesintegerverplicht
  • party_sizeintegerverplicht
  • provider_idstring | nullverplicht
  • extra_provider_idsstring[]verplicht

    Additional staff a multi-staff treatment reserved (empty otherwise).

  • depositobjectverplicht
  • deposit.requiredbooleanverplicht
  • deposit.amount_centsintegerverplicht
  • deposit.currencystringverplicht

Fouten

Wat je site bij elke code doet staat in Fouten en limieten.

Request
bash
curl -X POST 'https://www.callyndar.com/api/v1/holds' \
  -H 'Authorization: Bearer cal_pk_live_JOUW_SLEUTEL' \
  -H 'Content-Type: application/json' \
  -d '{
  "date": "2026-12-04",
  "time": "14:30",
  "party_size": 1,
  "service_ids": [
    "5b6f0c3e-2a4d-4f1b-9c7e-1d2a3b4c5d6e"
  ],
  "provider_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
  "session_id": "c1d7c0f0-4f7e-4c55-8f0a-6f8c2b7d9e01"
}'
js
const res = await fetch('https://www.callyndar.com/api/v1/holds', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer cal_pk_live_JOUW_SLEUTEL',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "date": "2026-12-04",
    "time": "14:30",
    "party_size": 1,
    "service_ids": [
      "5b6f0c3e-2a4d-4f1b-9c7e-1d2a3b4c5d6e"
    ],
    "provider_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
    "session_id": "c1d7c0f0-4f7e-4c55-8f0a-6f8c2b7d9e01"
  }),
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);
php
<?php
$ch = curl_init('https://www.callyndar.com/api/v1/holds');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer cal_pk_live_JOUW_SLEUTEL',
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => json_encode([
            'date' => '2026-12-04',
            'time' => '14:30',
            'party_size' => 1,
            'service_ids' => [
                '5b6f0c3e-2a4d-4f1b-9c7e-1d2a3b4c5d6e',
            ],
            'provider_id' => '9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d',
            'session_id' => 'c1d7c0f0-4f7e-4c55-8f0a-6f8c2b7d9e01',
        ]),
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
if ($status >= 400) {
    throw new RuntimeException($data['error']['code'] . ': ' . $data['error']['message']);
}
python
import requests

headers = {
    "Authorization": "Bearer cal_pk_live_JOUW_SLEUTEL",
    "Content-Type": "application/json",
}
payload = {
    "date": "2026-12-04",
    "time": "14:30",
    "party_size": 1,
    "service_ids": [
        "5b6f0c3e-2a4d-4f1b-9c7e-1d2a3b4c5d6e",
    ],
    "provider_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
    "session_id": "c1d7c0f0-4f7e-4c55-8f0a-6f8c2b7d9e01",
}
res = requests.post("https://www.callyndar.com/api/v1/holds", headers=headers, json=payload)
data = res.json()
if not res.ok:
    raise RuntimeError(f"{data['error']['code']}: {data['error']['message']}")
Antwoord
json
{
  "hold_id": "3f0c2a5e-8b1d-4c7e-9a40-2d6f1e9b7c11",
  "expires_at": "2026-12-01T13:40:00.000Z",
  "capacity_reserved": true,
  "date": "2026-12-04",
  "time": "14:30",
  "end_time": "15:15",
  "duration_minutes": 45,
  "party_size": 1,
  "provider_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
  "extra_provider_ids": [],
  "deposit": {
    "required": false,
    "amount_cents": 0,
    "currency": "EUR"
  }
}

Release a hold

DELETE/api/v1/holds/{id}

Gives the time back (guest goes back or closes the flow). Idempotent.

Padparameters

  • idstringverplicht

    hold_id from POST /holds

Antwoord 200

Velden van het antwoord (1 velden)
  • releasedbooleanverplicht

Fouten

Wat je site bij elke code doet staat in Fouten en limieten.

Request
bash
curl -X DELETE 'https://www.callyndar.com/api/v1/holds/3f0c2a5e-8b1d-4c7e-9a40-2d6f1e9b7c11' \
  -H 'Authorization: Bearer cal_pk_live_JOUW_SLEUTEL'
js
const res = await fetch('https://www.callyndar.com/api/v1/holds/3f0c2a5e-8b1d-4c7e-9a40-2d6f1e9b7c11', {
  method: 'DELETE',
  headers: {
    Authorization: 'Bearer cal_pk_live_JOUW_SLEUTEL',
  },
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);
php
<?php
$ch = curl_init('https://www.callyndar.com/api/v1/holds/3f0c2a5e-8b1d-4c7e-9a40-2d6f1e9b7c11');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'DELETE',
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer cal_pk_live_JOUW_SLEUTEL',
    ],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
if ($status >= 400) {
    throw new RuntimeException($data['error']['code'] . ': ' . $data['error']['message']);
}
python
import requests

headers = {
    "Authorization": "Bearer cal_pk_live_JOUW_SLEUTEL",
}
res = requests.delete("https://www.callyndar.com/api/v1/holds/3f0c2a5e-8b1d-4c7e-9a40-2d6f1e9b7c11", headers=headers)
data = res.json()
if not res.ok:
    raise RuntimeError(f"{data['error']['code']}: {data['error']['message']}")
Antwoord
json
{
  "released": true
}

Start the deposit payment

POST/api/v1/holds/{id}/deposit

Creates the Stripe PaymentIntent on the venue's account for this hold. Mount the Payment Element with client_secret and stripe_account.

Stuur turnstile_token alleen mee als de sleutel de optionele Turnstile van Callyndar aan heeft (GET /venue → turnstile_required, standaard uit).

Padparameters

  • idstringverplicht

    hold_id from POST /holds

Body (JSON)

  • guestobjectverplicht
  • guest.first_namestringverplicht
  • guest.last_namestringverplicht
  • guest.emailstring (email)verplicht
  • guest.phonestring

    Required when the venue asks for it (GET /venue → booking.phone_required).

  • companyobject

    Optional: the guest books for a company. Leave out for a private booking.

  • company.namestringverplicht

    Company name the invoice should be made out to.

  • company.vat_numberstring

    EU VAT number with country prefix (spaces and dots allowed). Checked against VIES after the booking; an unreachable VIES never refuses the booking.

  • company.referencestring

    Purchase order or reference for the invoice.

  • notesstring
  • locale"nl" | "en" | "fr"

    Language of the guest e-mails and the manage page.

  • turnstile_tokenstring

    Cloudflare Turnstile token — only when the key has the optional Callyndar Turnstile switched on (GET /venue → turnstile_required; off by default). Protecting your form against bots is your own job (your own captcha or Turnstile).

Antwoord 201

Velden van het antwoord (6 velden)
  • payment_intent_idstringverplicht
  • client_secretstringverplicht

    For stripe.elements({ clientSecret }) — never store it.

  • amount_centsintegerverplicht
  • currencystringverplicht
  • stripe_publishable_keystringverplicht
  • stripe_accountstringverplicht

    Connected account: Stripe(stripe_publishable_key, { stripeAccount }).

Fouten

Wat je site bij elke code doet staat in Fouten en limieten.

Request
bash
curl -X POST 'https://www.callyndar.com/api/v1/holds/3f0c2a5e-8b1d-4c7e-9a40-2d6f1e9b7c11/deposit' \
  -H 'Authorization: Bearer cal_pk_live_JOUW_SLEUTEL' \
  -H 'Content-Type: application/json' \
  -d '{
  "guest": {
    "first_name": "Test",
    "last_name": "Gast",
    "email": "test.gast@example.com",
    "phone": "+32 470 12 34 56"
  },
  "locale": "nl"
}'
js
const res = await fetch('https://www.callyndar.com/api/v1/holds/3f0c2a5e-8b1d-4c7e-9a40-2d6f1e9b7c11/deposit', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer cal_pk_live_JOUW_SLEUTEL',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "guest": {
      "first_name": "Test",
      "last_name": "Gast",
      "email": "test.gast@example.com",
      "phone": "+32 470 12 34 56"
    },
    "locale": "nl"
  }),
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);
php
<?php
$ch = curl_init('https://www.callyndar.com/api/v1/holds/3f0c2a5e-8b1d-4c7e-9a40-2d6f1e9b7c11/deposit');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer cal_pk_live_JOUW_SLEUTEL',
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => json_encode([
            'guest' => [
                'first_name' => 'Test',
                'last_name' => 'Gast',
                'email' => 'test.gast@example.com',
                'phone' => '+32 470 12 34 56',
            ],
            'locale' => 'nl',
        ]),
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
if ($status >= 400) {
    throw new RuntimeException($data['error']['code'] . ': ' . $data['error']['message']);
}
python
import requests

headers = {
    "Authorization": "Bearer cal_pk_live_JOUW_SLEUTEL",
    "Content-Type": "application/json",
}
payload = {
    "guest": {
        "first_name": "Test",
        "last_name": "Gast",
        "email": "test.gast@example.com",
        "phone": "+32 470 12 34 56",
    },
    "locale": "nl",
}
res = requests.post("https://www.callyndar.com/api/v1/holds/3f0c2a5e-8b1d-4c7e-9a40-2d6f1e9b7c11/deposit", headers=headers, json=payload)
data = res.json()
if not res.ok:
    raise RuntimeError(f"{data['error']['code']}: {data['error']['message']}")
Antwoord
json
{
  "payment_intent_id": "pi_3QxTESTa1b2c3d4e5f6g7h8",
  "client_secret": "pi_3QxTESTa1b2c3d4e5f6g7h8_secret_TESTabc123",
  "amount_cents": 1500,
  "currency": "EUR",
  "stripe_publishable_key": "pk_live_TESTexamplekey",
  "stripe_account": "acct_1TESTexample"
}

Boekingen

Turn a hold into a booking, also after a payment redirect.

Book

POST/api/v1/bookings

Turns the hold into a booking with the guest details. Requires an Idempotency-Key per booking attempt.

Stuur turnstile_token alleen mee als de sleutel de optionele Turnstile van Callyndar aan heeft (GET /venue → turnstile_required, standaard uit).

Gebruik per boekpoging een nieuwe Idempotency-Key; dezelfde key + body geeft het eerste antwoord opnieuw.

Headers

  • Idempotency-Keystringverplicht

    A new random value per booking attempt (8–128 chars). Retrying with the same key and body returns the first answer.

Body (JSON)

  • hold_idstringverplicht

    hold_id from POST /holds (a UUID, or an "nh_…" slot confirmation).

  • guestobjectverplicht
  • guest.first_namestringverplicht
  • guest.last_namestringverplicht
  • guest.emailstring (email)verplicht
  • guest.phonestring

    Required when the venue asks for it (GET /venue → booking.phone_required).

  • companyobject

    Optional: the guest books for a company. Leave out for a private booking.

  • company.namestringverplicht

    Company name the invoice should be made out to.

  • company.vat_numberstring

    EU VAT number with country prefix (spaces and dots allowed). Checked against VIES after the booking; an unreachable VIES never refuses the booking.

  • company.referencestring

    Purchase order or reference for the invoice.

  • notesstring

    Remarks of the guest (allergies, wishes).

  • locale"nl" | "en" | "fr"

    Language of the guest e-mails and the manage page.

  • payment_intent_idstring

    The PaymentIntent of a paid deposit (POST /holds/{id}/deposit).

  • turnstile_tokenstring

    Cloudflare Turnstile token — only when the key has the optional Callyndar Turnstile switched on (GET /venue → turnstile_required; off by default). Protecting your form against bots is your own job (your own captcha or Turnstile).

Antwoord 201

Velden van het antwoord (22 velden)
  • bookingobjectverplicht
  • booking.idstringverplicht
  • booking.status"confirmed" | "pending" | "waitlisted"verplicht

    confirmed = booked; pending = the venue confirms it; waitlisted = full, on the waiting list.

  • booking.datestringverplicht

    Venue-local date, YYYY-MM-DD.

  • booking.timestringverplicht

    Venue-local time, HH:MM (24h).

  • booking.end_timestringverplicht

    Venue-local time, HH:MM (24h).

  • booking.party_sizeintegerverplicht
  • booking.provider_idstring | nullverplicht
  • booking.extra_provider_idsstring[]verplicht
  • booking.servicesobject[]verplicht
  • booking.services[].idstringverplicht
  • booking.services[].namestringverplicht
  • booking.services[].variant_idstring | nullverplicht
  • booking.services[].variant_namestring | nullverplicht
  • booking.services[].duration_minutesinteger | nullverplicht
  • booking.services[].price_centsinteger | nullverplicht
  • booking.deposit_paidbooleanverplicht
  • booking.companyobject | nullverplicht

    The company block sent with the booking, or null.

  • booking.company.namestringverplicht
  • booking.company.vat_numberstring | nullverplicht

    Normalised (BE0123456749).

  • booking.company.referencestring | nullverplicht
  • booking.manage_urlstringverplicht

    Page where the guest cancels or reschedules (also in the confirmation e-mail).

Fouten

Wat je site bij elke code doet staat in Fouten en limieten.

Request
bash
curl -X POST 'https://www.callyndar.com/api/v1/bookings' \
  -H 'Authorization: Bearer cal_pk_live_JOUW_SLEUTEL' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: 6f1c9a52-0d3e-4b8a-9c71-2e5d4f3a1b90' \
  -d '{
  "hold_id": "3f0c2a5e-8b1d-4c7e-9a40-2d6f1e9b7c11",
  "guest": {
    "first_name": "Test",
    "last_name": "Gast",
    "email": "test.gast@example.com",
    "phone": "+32 470 12 34 56"
  },
  "notes": "Graag een stille plek.",
  "locale": "nl",
  "company": {
    "name": "TEST Studio BV",
    "vat_number": "BE 0123.456.749",
    "reference": "PO-2026-118"
  }
}'
js
const res = await fetch('https://www.callyndar.com/api/v1/bookings', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer cal_pk_live_JOUW_SLEUTEL',
    'Content-Type': 'application/json',
    'Idempotency-Key': crypto.randomUUID(),
  },
  body: JSON.stringify({
    "hold_id": "3f0c2a5e-8b1d-4c7e-9a40-2d6f1e9b7c11",
    "guest": {
      "first_name": "Test",
      "last_name": "Gast",
      "email": "test.gast@example.com",
      "phone": "+32 470 12 34 56"
    },
    "notes": "Graag een stille plek.",
    "locale": "nl",
    "company": {
      "name": "TEST Studio BV",
      "vat_number": "BE 0123.456.749",
      "reference": "PO-2026-118"
    }
  }),
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);
php
<?php
$ch = curl_init('https://www.callyndar.com/api/v1/bookings');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer cal_pk_live_JOUW_SLEUTEL',
        'Content-Type: application/json',
        'Idempotency-Key: 6f1c9a52-0d3e-4b8a-9c71-2e5d4f3a1b90',
    ],
    CURLOPT_POSTFIELDS => json_encode([
            'hold_id' => '3f0c2a5e-8b1d-4c7e-9a40-2d6f1e9b7c11',
            'guest' => [
                'first_name' => 'Test',
                'last_name' => 'Gast',
                'email' => 'test.gast@example.com',
                'phone' => '+32 470 12 34 56',
            ],
            'notes' => 'Graag een stille plek.',
            'locale' => 'nl',
            'company' => [
                'name' => 'TEST Studio BV',
                'vat_number' => 'BE 0123.456.749',
                'reference' => 'PO-2026-118',
            ],
        ]),
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
if ($status >= 400) {
    throw new RuntimeException($data['error']['code'] . ': ' . $data['error']['message']);
}
python
import uuid
import requests

headers = {
    "Authorization": "Bearer cal_pk_live_JOUW_SLEUTEL",
    "Content-Type": "application/json",
    "Idempotency-Key": str(uuid.uuid4()),
}
payload = {
    "hold_id": "3f0c2a5e-8b1d-4c7e-9a40-2d6f1e9b7c11",
    "guest": {
        "first_name": "Test",
        "last_name": "Gast",
        "email": "test.gast@example.com",
        "phone": "+32 470 12 34 56",
    },
    "notes": "Graag een stille plek.",
    "locale": "nl",
    "company": {
        "name": "TEST Studio BV",
        "vat_number": "BE 0123.456.749",
        "reference": "PO-2026-118",
    },
}
res = requests.post("https://www.callyndar.com/api/v1/bookings", headers=headers, json=payload)
data = res.json()
if not res.ok:
    raise RuntimeError(f"{data['error']['code']}: {data['error']['message']}")
Antwoord
json
{
  "booking": {
    "id": "7c1e5a9d-3b2f-4e8a-9d6c-0b1a2c3d4e5f",
    "status": "confirmed",
    "date": "2026-12-04",
    "time": "14:30",
    "end_time": "15:15",
    "party_size": 1,
    "provider_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
    "extra_provider_ids": [],
    "services": [
      {
        "id": "5b6f0c3e-2a4d-4f1b-9c7e-1d2a3b4c5d6e",
        "name": "Knippen",
        "variant_id": null,
        "variant_name": null,
        "duration_minutes": 45,
        "price_cents": 4500
      }
    ],
    "deposit_paid": false,
    "company": {
      "name": "TEST Studio BV",
      "vat_number": "BE0123456749",
      "reference": "PO-2026-118"
    },
    "manage_url": "https://callyndar.com/r/7c1e5a9d-3b2f-4e8a-9d6c-0b1a2c3d4e5f"
  }
}

Finish a booking after a payment redirect

POST/api/v1/bookings/recover

After iDEAL/Bancontact the guest comes back to your return_url. Call this with the payment_intent from the URL to finish (or fetch) the booking. Only works for payments started with this key.

Body (JSON)

  • payment_intent_idstringverplicht

Antwoord 200

Velden van het antwoord (22 velden)
  • bookingobjectverplicht
  • booking.idstringverplicht
  • booking.status"confirmed" | "pending" | "waitlisted"verplicht

    confirmed = booked; pending = the venue confirms it; waitlisted = full, on the waiting list.

  • booking.datestringverplicht

    Venue-local date, YYYY-MM-DD.

  • booking.timestringverplicht

    Venue-local time, HH:MM (24h).

  • booking.end_timestringverplicht

    Venue-local time, HH:MM (24h).

  • booking.party_sizeintegerverplicht
  • booking.provider_idstring | nullverplicht
  • booking.extra_provider_idsstring[]verplicht
  • booking.servicesobject[]verplicht
  • booking.services[].idstringverplicht
  • booking.services[].namestringverplicht
  • booking.services[].variant_idstring | nullverplicht
  • booking.services[].variant_namestring | nullverplicht
  • booking.services[].duration_minutesinteger | nullverplicht
  • booking.services[].price_centsinteger | nullverplicht
  • booking.deposit_paidbooleanverplicht
  • booking.companyobject | nullverplicht

    The company block sent with the booking, or null.

  • booking.company.namestringverplicht
  • booking.company.vat_numberstring | nullverplicht

    Normalised (BE0123456749).

  • booking.company.referencestring | nullverplicht
  • booking.manage_urlstringverplicht

    Page where the guest cancels or reschedules (also in the confirmation e-mail).

Fouten

Wat je site bij elke code doet staat in Fouten en limieten.

Request
bash
curl -X POST 'https://www.callyndar.com/api/v1/bookings/recover' \
  -H 'Authorization: Bearer cal_pk_live_JOUW_SLEUTEL' \
  -H 'Content-Type: application/json' \
  -d '{
  "payment_intent_id": "pi_3QxTESTa1b2c3d4e5f6g7h8"
}'
js
const res = await fetch('https://www.callyndar.com/api/v1/bookings/recover', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer cal_pk_live_JOUW_SLEUTEL',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "payment_intent_id": "pi_3QxTESTa1b2c3d4e5f6g7h8"
  }),
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);
php
<?php
$ch = curl_init('https://www.callyndar.com/api/v1/bookings/recover');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer cal_pk_live_JOUW_SLEUTEL',
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => json_encode([
            'payment_intent_id' => 'pi_3QxTESTa1b2c3d4e5f6g7h8',
        ]),
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
if ($status >= 400) {
    throw new RuntimeException($data['error']['code'] . ': ' . $data['error']['message']);
}
python
import requests

headers = {
    "Authorization": "Bearer cal_pk_live_JOUW_SLEUTEL",
    "Content-Type": "application/json",
}
payload = {
    "payment_intent_id": "pi_3QxTESTa1b2c3d4e5f6g7h8",
}
res = requests.post("https://www.callyndar.com/api/v1/bookings/recover", headers=headers, json=payload)
data = res.json()
if not res.ok:
    raise RuntimeError(f"{data['error']['code']}: {data['error']['message']}")
Antwoord
json
{
  "booking": {
    "id": "7c1e5a9d-3b2f-4e8a-9d6c-0b1a2c3d4e5f",
    "status": "confirmed",
    "date": "2026-12-04",
    "time": "14:30",
    "end_time": "15:15",
    "party_size": 1,
    "provider_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
    "extra_provider_ids": [],
    "services": [
      {
        "id": "5b6f0c3e-2a4d-4f1b-9c7e-1d2a3b4c5d6e",
        "name": "Knippen",
        "variant_id": null,
        "variant_name": null,
        "duration_minutes": 45,
        "price_cents": 4500
      }
    ],
    "deposit_paid": false,
    "company": {
      "name": "TEST Studio BV",
      "vat_number": "BE0123456749",
      "reference": "PO-2026-118"
    },
    "manage_url": "https://callyndar.com/r/7c1e5a9d-3b2f-4e8a-9d6c-0b1a2c3d4e5f"
  }
}

Specificatie

The machine-readable OpenAPI document.

This specification (OpenAPI 3.1)

GET/api/v1/openapi.json

No key needed.

Geen sleutel nodig.

Request
bash
curl 'https://www.callyndar.com/api/v1/openapi.json'
js
const res = await fetch('https://www.callyndar.com/api/v1/openapi.json', {
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);
php
<?php
$ch = curl_init('https://www.callyndar.com/api/v1/openapi.json');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
if ($status >= 400) {
    throw new RuntimeException($data['error']['code'] . ': ' . $data['error']['message']);
}
python
import requests

res = requests.get("https://www.callyndar.com/api/v1/openapi.json")
data = res.json()
if not res.ok:
    raise RuntimeError(f"{data['error']['code']}: {data['error']['message']}")
Antwoord
json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Callyndar Booking API"
  },
  "paths": {}
}

Deze pagina als Markdown: /developers/referentie.mdAlles in één bestand: /developers/llms-full.txt