Building Integrations
GGNomad is designed to plug into the systems a travel business already runs — property management systems, channel managers, and ticketing platforms — and to let partners connect their own systems to GGNomad inventory and bookings through the API. This guide walks through the building blocks of an integration: querying inventory, writing bookings, keeping availability in sync, and reacting to domain events.
The Node and Python SDKs and the CLI have source implementations but are not yet published to npm or PyPI, and GGNomad does not yet deliver events to external subscribers. The GraphQL API is the available surface.
Integration building blocks
The pieces of an integration A typical GGNomad integration is built from:
- A workspace-scoped credential (OAuth client or API key)
- Read queries against inventory (listings, providers, availability)
- Write mutations for bookings and listings
- A reconciliation loop that reads booking and listing state back from the API
- Idempotent sync logic so re-runs are safe
What you can integrate GGNomad commonly connects with:
- Property and channel management systems (availability and rates)
- Ticketing and event platforms (events and ticket inventory)
- Payment and finance systems (settlement and reconciliation)
- Notification and CRM tools (traveler and host communications)
Getting set up
Create credentials Issue a workspace-scoped credential from the developer portal, then confirm connectivity with a read query:
query Ping {
ggnomadProperties(pagination: { limit: 1, offset: 0 }) { id name }
}
A successful response shows the token carries the ggnomad:read permission for the
workspace it was issued in. It does not prove cross-workspace isolation or the
other permissions your integration needs; verify those separately.
Reading inventory
Pull listings to mirror or display them in your own system. Request only the fields you need:
query Inventory {
ggnomadProperties(pagination: { limit: 50, offset: 0 }) {
id
name
pricePerNight
currency
provider { id name type }
}
}
The same pattern applies to tours, activities, events, and transport trips.
Writing bookings
Create a booking from your own checkout or back office. GGNomad generates a
reference code, validates that the listing belongs to the caller's workspace and
prices the booking from the listing. A new booking is CONFIRMED only when its
payment is verified, it passes the workspace's booking policy and the listing
allows instant booking; otherwise it stays PENDING. Read status and
paymentStatus from the response rather than assuming success means confirmed:
mutation Book($input: CreateGgnomadBookingInput!) {
createGgnomadBooking(input: $input) {
id
referenceCode
status
paymentStatus
}
}
Cancellation
The traveler who made a booking or the host of its listing can cancel it unless it
is already cancelled, completed, refunded or a no-show. Cancelling records the
transition in the booking's audit log (ggnomadAuditLog) and revokes unused
tickets; it does not issue a refund:
mutation Cancel($id: ID!) {
cancelGgnomadBooking(id: $id) { id status }
}
Reacting to changes
GGNomad does not currently deliver webhooks or other events to external
subscribers. The service publishes internal analytics events (for example
ggnomad.order.placed and ggnomad.booking.completed) to the Burdenoff event
stream for platform analytics; they are not a public integration contract.
To keep an external system in sync, read state back from the API on a schedule and reconcile it against your own records:
query PendingBookings {
ggnomadBookings(status: PENDING, pagination: { limit: 100, offset: 0 }) {
id
referenceCode
status
paymentStatus
updatedAt
}
}
Build the reconciliation to be idempotent — applying the same booking state
twice must be a no-op, keyed on the booking id and its status.
Keeping availability in sync
When inventory changes in an external system, push the change into GGNomad so discovery and checkout price against current availability. A robust sync:
- Reads the current GGNomad state for the affected listing
- Computes the delta against the source of truth
- Applies updates through the appropriate mutation
- Records the sync so re-runs are safe
Error handling
Handle the typed GraphQL error codes rather than parsing messages:
UNAUTHENTICATED/FORBIDDEN— token or permission issueWORKSPACE_REQUIRED— missing workspace contextNOT_FOUND— the target does not exist in this workspaceVALIDATION_ERROR— input failed validation
const { data, errors } = await client.request(CREATE_BOOKING, variables);
if (errors?.length) {
const code = errors[0].extensions?.code;
if (code === 'VALIDATION_ERROR') {
// surface field-level details to the caller
}
throw new IntegrationError(code, errors[0].message);
}
Best practices
- Send every call to the public API endpoint with a valid credential
- Let roles scope every action — request the minimum permissions
- Make writes and reconciliation idempotent
- Paginate list queries that accept
pagination, and request only needed fields - Treat the published GraphQL schema as the contract — watch for deprecations
Getting started
Begin building an integration:
- Issue a credential and confirm a read query works
- Wire booking create/cancel into your flow
- Reconcile booking state into your external system by reading it back from the API
- Verify cross-workspace isolation and RBAC behavior
For integration support, see the API Reference or contact the GGNomad developer team.