Booking Endpoints
GG365 Golf API
Documentation for the Golf Globe 365 API - Travel Agency Integration
Booking Endpoints
These endpoints allow you to create, manage, and retrieve golf course bookings.
Create a Booking
Code
Creates a new golf course booking.
Request Body
Code
Required Fields
| Field | Type | Description |
|---|---|---|
courseId | string | ID of the course to book |
date | string | Booking date (YYYY-MM-DD) |
teeTime | string | Requested tee time (HH |
players | integer | Number of players (1-4) |
agencyBookingReference | string | Your internal booking reference |
playerDetails | array | Array of player information objects |
Response
Code
For online courses, the booking will be confirmed immediately. For offline courses, the booking will be in a pending state until confirmed by the golf course.
Get Booking Details
Code
Retrieves details of a specific booking.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
bookingId | string | ID of the booking to retrieve |
Response
Returns the booking object with the same structure as the create booking response.
List Agency Bookings
Code
Retrieves a list of all bookings made by your agency.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number for pagination (default: 1) |
limit | integer | Number of results per page (default: 20, max: 100) |
status | string | Filter by booking status (confirmed, pending, cancelled) |
startDate | string | Filter for bookings on or after this date (YYYY-MM-DD) |
endDate | string | Filter for bookings on or before this date (YYYY-MM-DD) |
agencyBookingReference | string | Filter by your internal booking reference |
Response
Code
Update a Booking
Code
Updates an existing booking. Only certain fields can be modified after booking creation.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
bookingId | string | ID of the booking to update |
Request Body
Code
Modifiable Fields
| Field | Description |
|---|---|
players | Number of players (can only be reduced, not increased) |
playerDetails | Player information |
specialRequests | Special requests or notes |
agencyBookingReference | Your internal booking reference |
Response
Returns the updated booking object.
Cancel a Booking
Code
Cancels an existing booking.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
bookingId | string | ID of the booking to cancel |
Query Parameters
| Parameter | Type | Description |
|---|---|---|
cancellationReason | string | Optional reason for cancellation |
Response
Code
Cancellation policies vary by golf course. Some courses may charge a cancellation fee depending on how far in advance the booking is cancelled.
Booking Webhook Notifications
When the status of a booking changes, a webhook notification will be sent to your configured endpoint if you have set up webhooks. See the Webhooks section for more details on configuring and handling webhook notifications.