4. API Endpoints and Usage
4.1: Endpoint Overview
Below is an overview of the Golfdigg OTA API endpoints along with their associated HTTP methods and purposes. These endpoints will allow you to interact with our system to access golf course information, tee times, and manage reservations.
| Endpoints | Method | Purpose |
|---|---|---|
/api/v1/ext/course | GET | Retrieve a list of Courses |
/api/v1/ext/course/{COURSE_ID} | GET | Retrieve a Course by Id |
/api/v1/ext/tee-time?courseId={COURSE_ID}&date={DATE} | GET | Retrieve a list of Tee Times |
/api/v1/ext/tee-time/{TEE_TIME_ID} | GET | Retrieve a Tee Time by Id |
/api/v1/ext/order/reserve | POST | Create a reservation |
/api/v1/ext/order/{id}/confirm | POST | Confirm a reservation |
/api/v1/ext/order/{id}/cancel | DELETE | Release a reservation |
/api/v1/ext/order/{id}/refund | POST | Refund a reservation |
/api/v1/ext/order/{id} | GET | Retrieve a reservation by ID |
/api/v1/ext/balance | GET | Retrieve current credit balance |
These endpoints serve various functions, allowing you to access golf course information, tee times, create, confirm, cancel, and refund reservations, and check your current credit balance.