Overview
What the Channel API is
Section titled “What the Channel API is”GoCamping is a booking system for campsites and marinas in the Nordics. Each campsite or marina (a property) runs its reservations, prices and payments in GoCamping.
The Channel API is one shared door for booking channels: online travel agencies, marketplaces and map-based booking sites. Through it a channel can:
- Read the property: unit types, individual units (pitches, cabins, berths), images, texts in several languages, facilities, house rules and cancellation terms. Optionally the site map with every unit on it.
- Read availability: per unit type per day, and optionally per unit.
- Get an exact price for a specific stay, calculated by the property’s own price engine.
- Create, change and cancel bookings directly in the property’s booking system.
- Stay up to date through webhooks, through a change feed, or both.
Every channel uses the same API with the same rules. GoCamping’s own marketplace is planned to use it too.
Principles
Section titled “Principles”- The property decides. A channel only sees properties that have switched the channel on themselves, and only the unit types they have chosen. When a property switches a channel off, access stops at once. Bookings already made remain valid.
- One price. The binding price always comes from the property’s own price engine, the same one that prices the property’s own website. Prices in the rates endpoint are indicative (“from”) prices for search and maps. A booking is only created at the price returned by a quote.
- Two steps. First ask what something costs (a quote, a modification preview, a cancellation preview), then do it. Nothing changes until the second step.
- Safe to retry. Every write requires an
Idempotency-Key. Sending the same request twice never creates two bookings. - The channel sees only its own bookings. Never bookings from the property’s website, from other channels or from staff.
- No card data. Card numbers, expiry dates and security codes are never sent through the API, in any field.
- Minimal personal data. The channel sends only what the stay needs: name, email, phone, country, language, guest counts and ages, vehicle or boat size, and the guest’s comment.
Words used
Section titled “Words used”| Word | Meaning |
|---|---|
| Channel | A booking channel connected to the API, identified by its partner account |
| Property | One campsite or marina. Has a kind: camping or marina |
| Unit type | A kind of unit the property sells, for example “Pitch with electricity” or “Cabin, 4 persons” |
| Unit | One bookable unit with a number or name, for example pitch 42 or berth B-12 |
| Guest type | An age group the property prices by, for example adult, child 3–11, infant 0–2 |
| Add-on | Something extra the guest can buy, for example dog, electricity, cleaning or bed linen |
| Quote | The exact price for one stay, valid for a short time, optionally holding a unit |
| Booking | A confirmed reservation in the property’s booking system |
| Connection | The link between one channel and one property, created when the property switches the channel on |
Data model
Section titled “Data model”Channel (partner account) └── Connection ── Property (campsite or marina) ├── Unit types ── Units ── position on the site map ├── Guest types ├── Add-ons ├── Availability (per unit type per day, optionally per unit) ├── Rates (indicative) └── Bookings made by this channelA booking, end to end
Section titled “A booking, end to end”Channel GoCamping │ GET /properties │ connected properties │ GET /properties/{id} (+ unit-types) │ content │ GET /properties/{id}/availability │ free per day │ POST /quotes │ exact price, unit held for 15 min │ POST /bookings (quote_id, guest) │ booking confirmed in the property's system │◀──── webhook booking.modified ─────────│ the property moved the booking │ GET /bookings/{id} │ fresh copy │ POST /bookings/{id}/cancel │ cancelled under the property's termsConventions
Section titled “Conventions”| Topic | Rule |
|---|---|
| Transport | HTTPS only, TLS 1.2 or newer. JSON in UTF-8. Content-Type: application/json |
| Base URL | Production https://api.gocamping.dk/channel/v1 · Test https://api-test.gocamping.dk/channel/v1 (proposed host names) |
| Ids | Opaque strings with a prefix, for example prop_8f2k1q, ut_3m9x, unit_42ab, bk_7q4k2m9x. Store them as strings, never parse them |
| Dates | Calendar dates YYYY-MM-DD in the property’s time zone. In a stay, arrival is the first night and departure is the day the guest leaves (not a night). In a range of nights (start, end), both dates are nights and both are included |
| Times | ISO 8601 with offset, for example 2026-12-03T14:32:00Z |
| Amounts | An object { "amount": "2340.00", "currency": "DKK" }. amount is a decimal string with exactly two decimals and a point. Never a floating-point number. Always including VAT. Inside lines and per_guest_type, amounts are plain strings in the property’s currency |
| Currency | ISO 4217 (DKK, NOK, SEK, EUR). A property prices in one currency |
| Languages | ISO 639-1 (da, en, de, no, sv). Texts come as an object per language. Ask with Accept-Language; all available languages are returned when you send ?lang=all |
| Countries | ISO 3166-1 alpha-2 (DK, NO) |
| Lists | Cursor pagination: ?limit= (max 100, change feed 500) and ?cursor= (change feed: ?since=). The response has next_cursor, which is null on the last page |
| Unknown fields | Ignore fields and enum values you do not know. New ones may appear in v1 (see Versioning) |
| Tracing | Every response has X-Request-Id. Send your own X-Correlation-Id if you like; it is logged and echoed |
Relation to the GoCamping door
Section titled “Relation to the GoCamping door”GoCamping also has a door for other booking systems that want to sell on the GoCamping marketplace (OpenTravel
messages). The Channel API uses the same concepts (quote, booking, receipt), the same error code list (GC200 not
available and so on, see Errors), the same amount format and the same webhook signature. Fixed codes for kinds, facilities and cancellation templates are English
words in the Channel API (marina, ELECTRICITY, flexible). A table that maps them to the door’s codes comes in
draft 0.2.
What is not in v1
Section titled “What is not in v1”- Bookings by the hour (marina crane slots, boat ramps). v1 knows nights only.
- Long-term contracts (seasonal pitches and berths).
- Payment of the guest through the API. Payment happens with the property or with the channel, see Payments in the endpoints.
- Reviews and messages between guest and property.