Skip to content
DRAFT 0.2 · 3 December 2026 · Nothing is built yet. Subject to change.

Errors

Every error has an HTTP status and the same JSON body:

{
"error": {
"code": "rule_violated",
"gc_code": "GC201",
"message": "Minimum stay is 2 nights for arrival on 2027-07-14.",
"details": { "rule": "min_nights", "value": 2, "date": "2027-07-14" },
"request_id": "req_01JEK5…"
}
}
  • Program against code (or gc_code). Both are fixed. message is English text for people and may change.
  • details depends on the code and may be missing.
  • Always log request_id. GoCamping support finds the call from it.
  • gc_code is the same code as in the GoCamping door for booking systems, so both APIs share one list. GC207 to GC210 are new with the Channel API and will be added to the door’s list. In the Channel API, GC100 and GC101 also cover quotes, bookings and units that do not exist, GC102 and GC104 also cover dates in the past and wrong formats, and GC105 means that GoCamping could not serve an image.

Warnings do not stop a request. They come in a warnings list in a successful response, in the same shape.

HTTP code gc_code Meaning What to do
400 invalid_request GC104 A field is missing or has the wrong format. details.field names it Fix the request
400 invalid_amount GC103 An amount or currency is not valid Use "0.00" strings and the property’s currency
400 date_out_of_range GC102 A date is in the past, more than 740 days ahead, or the range is too long Shorten the range
401 unauthorized — Key missing, wrong, revoked or from the other environment (a test key in production) Check the key and the environment
403 property_not_connected GC110 Your connection to the property is paused or switched off Do not sell this property now
403 forbidden — The key may not do this —
404 not_found GC100 / GC101 Property, unit type, unit, quote or booking does not exist for you —
405 method_not_allowed — Wrong HTTP method —
409 not_available GC200 Nothing free for this stay Offer other dates or units
409 price_changed GC205 The price is no longer the one in the quote Get a new quote and show the new price
409 quote_expired GC206 The quote or preview has expired and the unit is gone Get a new quote
409 quote_already_used GC300 The quote has already become a booking Get a new quote
409 request_in_progress — The first request with this Idempotency-Key is still running Wait Retry-After seconds and send it again
409 idempotency_conflict GC300 Same Idempotency-Key or channel_booking_ref with a different body Use a new key for a new operation
409 version_conflict GC301 The booking changed since your preview Fetch the booking and preview again
409 booking_not_changeable GC207 The booking can no longer be changed or cancelled through the API (for example after check-in) Ask the guest to contact the property
413 payload_too_large — Body over 1 MB —
415 unsupported_media_type — Not JSON Send Content-Type: application/json
422 rule_violated GC201 A stay rule is broken: minimum or maximum nights, closed to arrival or departure Show the rule from details
422 guest_count_invalid GC202 Too many or too few guests, or a child’s age is missing —
422 vehicle_too_large GC203 The caravan, motorhome or boat does not fit Offer a larger unit type
422 unit_selection_not_allowed GC208 A unit_id was sent, but this unit type does not allow choosing a unit Leave out unit_id
422 payment_not_allowed GC209 You reported a payment on a booking where the property collects, or on a cancelled booking Do not collect money for this booking
422 payment_invalid GC210 paid_to_channel is below the deposit or above the total, or a reported payment is above balance Check the amount against the quote or the booking
429 rate_limited — Too many calls Wait Retry-After seconds
500 internal_error GC900 Error at GoCamping Retry with the same Idempotency-Key
503 unavailable GC900 GoCamping or the property is temporarily unavailable Retry with back-off
504 timeout GC900 The price engine or booking core did not answer in time Retry with the same Idempotency-Key

Warnings:

code gc_code Meaning
promo_code_invalid GC204 The promo code does not apply. The price is without the discount
image_unavailable GC105 An image could not be served. The rest is fine
  • Retry on 429, 500, 503, 504 and network errors, with the same Idempotency-Key, and with a growing pause (for example 1, 2, 4, 8 seconds).
  • Do not retry on 400, 401, 403, 404, 409 (except request_in_progress), 413, 415 and 422 without changing the request.
  • After a time-out on POST /bookings, retry with the same key. You get the booking if it was created, and nothing is created twice.