API Documentation

Introduction

Welcome to the Golfmanager API. Enter your Tenant and API Key in the top right corner to test endpoints directly.

Authentication

Include an HTTP header named key with your API Key to authenticate requests. You also need to specify a tenant header.

curl -H "key: [apiKey]" -H "tenant: [tenant]" "https://eu.golfmanager.com/api/model/customer"

Dates

All dates are expressed in the tenant's local time. UTC timestamps will be automatically converted to the tenant's local time. The API supports ISO and Unix timestamp formats.

FormatExample
Local2024-01-20T20:00
UTC2024-01-20T18:00Z
Unix1705777200

Pagination

Responses are paginated with a default page size of 20. If more results are available, the response will include "hasMore": true. To retrieve the next page, use the lastId parameter. To adjust the number of results per page, use the limit parameter (range: 1-100).

By default responses don't include null fields. Add includeNulls=true to include them.

Filtering

Filter results using the format ["field", "operator", "value"] in the search parameter.

?search=["name","like","john"]
?search=["created",">","2024-01-01"]
?search=["OR", ["status","=",1], ["price","=",0]]

Sorting

Sort results using the sort parameter: ?sort=name or ?sort=created desc

Error Handling

Errors return an appropriate HTTP status code with a JSON body containing an error field:

{ "error": "Invalid email format" }

Terms of Service

The API is provided as-is without any warranty. Golfmanager is not liable for any damage due to unavailable or incorrect APIs. Abuse or excessively frequent requests may result in suspension of access.