Introduction
Some examples:
Search available times
curl -H “key: [apiKey]” -H “tenant: [tenant]” “https://eu.golfmanager.com/api/bookings/searchAvailability”
Response:
[
{
“area”: 1,
“areaName”: “Golf”,
“typeName”: “GF 18”,
…
},
{
“area”: 1,
“areaName”: “Golf”,
“typeName”: “GF 9”,
…
}
]
Get a list of customers
curl -H “key: [apiKey]” -H “tenant: [tenant]” “https://eu.golfmanager.com/api/model/customer”
Response:
{
“data”: [
{
“avatar”: “//upload/view/iNpLsKCheu8nw2rCErMtdVAtoY3So9bM94bordf5Bu1Z”,
“birthdate”: “1980-03-10T00:00:00+01:00”,
“email”: “alicia@example.com_deleted_1744044361”,
“email2”: null,
“firstName”: “Alicia”,
…
},
…
],
“hasMore”: true,
“lastId”: 30
}
Retrieve a customer by id
curl -H “key: [apiKey]” -H “tenant: [tenant]” “https://eu.golfmanager.com/api/model/customer/2”
Response:
{
“id”: 1,
“name”: “Alicia García”,
…
}
Create a customer
curl -H “key: [apiKey]” -H “tenant: [tenant]” -d “{“name”:“Bill”}” “https://eu.golfmanager.com/api/model/customer”
Response:
{
“id”: 2,
“name”: “John”,
…
}
Update a customer
curl -H “key: [apiKey]” -H “tenant: [tenant]” -d ‘{“name”:“Bill”}’ “https://eu.golfmanager.com/api/model/customer/2”
Delete a customer
curl -H “key: [apiKey]” -H “tenant: [tenant]” -X DELETE “https://eu.golfmanager.com/api/model/customer/2”