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.

EndpointsMethodPurpose
/api/v1/ext/courseGETRetrieve a list of Courses
/api/v1/ext/course/{COURSE_ID}GETRetrieve a Course by Id
/api/v1/ext/tee-time?courseId={COURSE_ID}&date={DATE}GETRetrieve a list of Tee Times
/api/v1/ext/tee-time/{TEE_TIME_ID}GETRetrieve a Tee Time by Id
/api/v1/ext/order/reservePOSTCreate a reservation
/api/v1/ext/order/{id}/confirmPOSTConfirm a reservation
/api/v1/ext/order/{id}/cancelDELETERelease a reservation
/api/v1/ext/order/{id}/refundPOSTRefund a reservation
/api/v1/ext/order/{id}GETRetrieve a reservation by ID
/api/v1/ext/balanceGETRetrieve 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.