Events
List the club's upcoming events, and buy tickets on behalf of a member in two steps: reserve an order, then check it out.
List upcoming events
GET /community-api/events
Returns the club's events that start now or later, earliest first. Supports pagination with page and limit.
curl "https://data.onboard.blue/community-api/events?limit=20" \
-H "x-api-key: YOUR_API_KEY"
{
"items": [
{
"id": "65fbca72-82a4-4eb0-b719-826ea2817b0f",
"title": "Beginner sailing course",
"description": "<p>Three evenings on the water.</p>",
"start": "2026-11-21T09:00:00+00:00",
"end": "2026-11-21T12:00:00+00:00",
"join_start": "2026-11-01T00:00:00+00:00",
"location": "Copenhagen Harbor",
"status": "published",
"tickets": [
{
"id": "a8d18bec-7cd2-484f-a239-710d36bf3017",
"name": "Adult",
"show": true,
"price": 25000,
"max_participants": 10,
"available": 7
}
],
"repetition_type": "never",
"image": "https://example.com/event-image.jpg",
"availableTicketsCount": 7,
"tags": [{ "id": "550e8400-e29b-41d4-a716-446655440000", "name": "Beginner" }],
"earliest_join_date": "2026-10-02T10:00:00+00:00",
"last_join_date": "2026-10-12T14:30:00+00:00"
}
],
"page": 1,
"limit": 20,
"total": 1,
"hasMore": false
}
| Field | Type | Description |
|---|---|---|
id | string | Event ID. Use it in eventId when you reserve an order. |
title | string | null | Title |
description | string | null | Description as HTML |
start, end | string | null | Start and end, ISO 8601 |
join_start | string | null | When registration opens, ISO 8601 |
location | string | null | Location text |
status | string | null | For example draft or published |
tickets | array | null | Ticket types, see below. Empty or null when the event has no ticket types. |
repetition_type | string | null | For example never, daily, weekly, monthly |
image | string | null | Cover image URL |
availableTicketsCount | number | Sum of max_participants over all ticket types minus tickets issued. 0 without ticket types. |
tags | array | null | { id, name } tags, or null |
earliest_join_date | string | null | When the first ticket for the event was created |
last_join_date | string | null | When the most recent ticket for the event was created |
Each item in tickets:
| Field | Type | Description |
|---|---|---|
id | string | Ticket type ID. Use it in selectedTicketTypesIds. |
name | string | null | Name of the ticket type |
show | boolean | Whether the ticket type is shown to members. Hidden types are included in the list. |
price | number | null | Price in the smallest currency unit (øre for DKK) |
max_participants | number | null | Capacity of this ticket type |
available | number | max_participants minus tickets issued for this type. Only meaningful when max_participants is set. |
status, so draft events can appear. Show only events with "status": "published" to the public.Buy tickets for a member
Ticket purchases happen in two calls. Both identify the member by the club's membership number (membership in the member list), which must match exactly one member of the club.
POST /community-api/events/orderreserves the tickets and returns an order in statereserved. The reservation holds the tickets for 15 minutes (reservation_expires_at).POST /community-api/events/checkoutcompletes the reserved order before the reservation expires.- Free order: the order becomes
completedand the member is registered for the event. - Paid order: the order becomes
pendingandcheckout_urlcontains a payment page. Send the member to that URL to pay.
- Free order: the order becomes
Reserve an order
POST /community-api/events/order
curl -X POST https://data.onboard.blue/community-api/events/order \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"eventId": "65fbca72-82a4-4eb0-b719-826ea2817b0f",
"selectedTicketTypesIds": ["a8d18bec-7cd2-484f-a239-710d36bf3017", "a8d18bec-7cd2-484f-a239-710d36bf3017"],
"membership": "12345"
}'
| Field | Type | Required | Description |
|---|---|---|---|
eventId | string | yes | Event ID |
selectedTicketTypesIds | string | yes | At least one ticket type ID. Repeat an ID to buy several tickets of the same type. |
membership | string | yes | Membership number of the member the tickets are for |
Response 201 Created — the reserved order:
{
"id": "2ba9bab8-8f0d-466a-87d0-8e9f65229f30",
"created_at": "2026-10-15T12:36:23.89952+00:00",
"community": "c2e828fa-17c5-416e-af4a-a915d7924d40",
"event": "65fbca72-82a4-4eb0-b719-826ea2817b0f",
"user": "6892cfb8-4818-4feb-883e-04d5530d650b",
"state": "reserved",
"reference_number": "1792067783871-reserved",
"reservation_expires_at": "2026-10-15T12:51:23.641+00:00",
"title": "Beginner sailing course",
"total_price": 50000,
"checkout_url": null,
"tickets": [],
"order_lines": []
}
Keep id; you need it for checkout. tickets lists the reserved tickets and order_lines the priced lines (amounts in the smallest currency unit). The OpenAPI reference at the base URL lists every field of both arrays.
Check out an order
POST /community-api/events/checkout
curl -X POST https://data.onboard.blue/community-api/events/checkout \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"orderId": "2ba9bab8-8f0d-466a-87d0-8e9f65229f30",
"membership": "12345",
"comment": "Needs a life jacket in size S"
}'
| Field | Type | Required | Description |
|---|---|---|---|
orderId | string | yes | id from the reserve call |
membership | string | yes | Membership number of the member |
comment | string | no | Comment from the member, stored on the order |
Response 201 Created — the updated order, with the same fields as the reserve response. Check these two:
| Field | Description |
|---|---|
state | completed for a free order, pending while a paid order awaits payment |
checkout_url | Payment page for a paid order. null for a free order. |
Errors
Errors from the order steps are passed through with their own status code and body, for example { "statusMessage": "Bad State", "message": "Order is not reserved" }.
| Status | message | Step | Cause |
|---|---|---|---|
| 400 | list of validation messages | both | Missing or invalid body fields |
| 404 | Member not found | both | No single member of the club has that membership number |
| 404 | Event not found | both | Unknown eventId |
| 400 | No ticket types defined on event | reserve | The event sells no tickets |
| 400 | Selected ticket type is not defined on event | reserve | A ticket type ID does not belong to the event |
| 400 | Ikke nok plads på begivenhed | reserve | The event is full (message is in Danish) |
| 400 | Ikke nok billetter tilbage | reserve | Not enough tickets left of a type (message is in Danish) |
| 404 | Order not found | checkout | Unknown orderId |
| 400 | Order is not reserved | checkout | The order is no longer reserved, for example already checked out or cancelled |
| 400 | Order has no tickets | checkout | The order is empty |