Skip to content
Golfmanager API
Branch: master
Clone or download
Latest commit d756b86 Aug 3, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md settings Jul 26, 2019
advancedSettings.md settings Jul 26, 2019
googleanalytics.md ganalytics Aug 3, 2019
pos.md foo Jul 26, 2019

README.md

API Reference

Authentication

Authentication is performed via HTTP Basic Auth.

All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.

Errors

The API uses conventional HTTP response codes to indicate the success or failure of an API request. In general: Codes in the 2xx range indicate success. Codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, a reservation failed, etc.).

Handling errors

Our API raise exceptions for many reasons, such as a failed charge, invalid parameters, authentication errors, and network unavailability. We recommend writing code that gracefully handles all possible API exceptions.

Dates

The date format is ISO 8601 and can be passed in the local time of the tenant or in UTC.

For example:

2018-10-09T09:00:00

2018-10-09T07:00:00.000Z


Consumer API

Admin API


Tenants

Returns the tenants this key has access to.

Method: GET

Example request

$ curl -i https://mt.golfmanager.es/api/tenants \
   -u 5Jvm8sCtVr:b31aT5bScxk46aT

Example response

["demo1","demo2","demo3"]

Search availability

List available slots.

Method: GET

Argument Type Required Description
tenant string yes
start datetime yes The start of the search period
end datetime yes The end of the search period
slots int no The number of green fees (default is 1)
tags string[] no Array of tags that the reservation types must have
idResource int no The resource id returned from /api/resources to limit results to a specific resource

List of valid tags:

18holes
9holes
tee1
tee10
buggy
trolley
electric-trolley

Example:

curl https://mt.golfmanager.es/api/searchAvailability \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo \
 -d start="2019-04-23T07:00:00" \
 -d end="2019-04-23T11:00:00" \
 -d slots=2

Example searching only for reservations that contain 9 or 18 holes:

curl https://mt.golfmanager.es/api/searchAvailability \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo \
 -d start="2019-04-23T07:00:00" \
 -d end="2019-04-23T11:00:00" \
 -d tags=["9holes", "18holes"]
 -d slots=2

Response:

Returns a list of slots:

Argument Type Optional Description
idType int no The reservation type id.
max int no The maximum number of slots allowed.
min int no The minimum number of slots allowed.
multiple int no In case this type must be reserved in multiples.
price float no The price per slot including taxes.
start datetime no The date of this slot.
tags string[] no Array of tags to filter types.
idResource prepayPercent yes id of the available resource (Tee1 or Tee10 for example).
resourceName prepayPercent yes name of the available resource.
resourceTags prepayPercent yes tags of the available resource.
minCancelAdvance datetime yes Limit date to cancel the reservation.
maxReservationsPerSale int yes The maximum number of reservations in a sale.
maxReservationsPerDay int yes The maximum number of reservations that can be made in the same day.
maxActiveReservations int yes the maximum number of reservations that can be made in advance.
onCredit bool yes If it is a sale on credit.
dueDate dueDate yes The sale due date if it is on credit.
prepayPercent prepayPercent yes The % to pay when making the reservation.

See above the list of valid tags.

Example:

[
  {
    "idType": 1,
    "max": 4,
    "min": null,
    "multiple": null,
    "name": "Green Fee 18 holes",
    "price": 50,
    "start": "2018-11-09T10:00:00",
    "idResource": 1,
    "resourceName": "Tee 1",
    "resourceTags": [],
    "tags": [
      "18holes", 
      "tee1"
    ]
  },
  {
    "idType": 3,
    "max": 4,
    "min": null,
    "multiple": null,
    "name": "Green Fee 9 holes",
    "price": 35,
    "start": "2018-11-09T10:00:00",
    "idResource": 1,
    "resourceName": "Tee 1",
    "resourceTags": [],
    "tags": [
      "9holes"
    ]
  },
  {
    "idType": 33,
    "max": 4,
    "min": 2,
    "multiple": 2,
    "name": "Pack 2 GF+ Buggy",
    "price": 59,
    "start": "2018-11-09T10:00:00",
    "idResource": 2,
    "resourceName": "Tee 10",
    "resourceTags": [],
    "tags": [
      "18holes", 
      "buggy"
    ]
  }
]

List reservation types

Methbod: GET

Arguments: optionally an array of tags to return only results containing those tags.

Example:

curl https://mt.golfmanager.es/api/availabilityTypes \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo 

Or filtering by tag:

curl https://mt.golfmanager.es/api/availabilityTypes \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo \
 -d tags=["18holes", "9holes"]

Response:

[
    {
        "description": "Precio por persona",
        "id": 1,
        "max": null,
        "min": null,
        "multiple": null,
        "name": "GF18",
        "tags": [
            "18holes"
        ]
    },
    {
        "description": "Oferta sólo Online!",
        "id": 2,
        "max": null,
        "min": null,
        "multiple": null,
        "name": "GF9",
        "tags": [
            "9holes"
        ]
    }
]

List available extras

Methbod: GET

Argument Type Required Description
tenant string yes
start datetime yes The reservation date

Example:

curl https://mt.golfmanager.es/api/extras \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo
 -d start="2019-08-23T07:00:00" \

Response:

[
  {
    "config": {
      "createDate": "2019-06-14T13:43:26Z",
      "deleted": false,
      "dueDate": null,
      "id": 22,
      "idClient": null,
      "idClientGroup": null,
      "idCreateUser": 129,
      "idMembership": null,
      "idType": null,
      "maxActiveReservations": null,
      "maxAdvance": null,
      "maxReservationsPerDay": null,
      "maxReservationsPerSale": null,
      "minAdvance": null,
      "minCancelAdvance": null,
      "prepayPercent": 25,
      "timeout": "20m"
    },
    "description": "Alquiler Moto 18",
    "icon": null,
    "id": 88,
    "idResource": null,
    "max": null,
    "min": null,
    "multiple": null,
    "name": "Moto Alquiler",
    "price": 22,
    "quantity": 5,
    "rack": 22
  }
]

Make reservations

Methbod: POST

Arguments: an array of reservation objects. Each reservations must specify:

Argument Type Required Description
idType int yes The reservation type
start datetime yes The date of this slot
timeout datetime no The date when it will be released if it is not confirmed
idResource int no The resource id returned from /api/resources to force a specific resource
name string no The client's name
email string no The client's email

Example:

curl https://mt.golfmanager.es/api/makeReservation \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo \
 -d 'reservations=[{"idType":1,"start":"2018-11-09T10:00:00%2B02:00"}]'

Response:

Return reservations with their ID in case they need to be canceled. It also returns the sale information.

Example:

{
    "cart": {
        "idSale": 7729,
        "quantity": 2,
        "total": 116.8,
        "units": 2
    },
    "reservations": [
        {
            "email": null,
            "end": "2019-07-06T08:00:00+02:00",
            "id": 40857,
            "idParentReservation": null,
            "idSale": 7729,
            "idType": 1,
            "isExtra": null,
            "name": "n.,m",
            "reference": "33DS",
            "start": "2019-07-06T07:50:00+02:00",
            "timeout": "2019-07-05T18:13:39.655208969+02:00"
        },
        {
            "email": null,
            "end": "2019-07-06T10:20:00+02:00",
            "id": 40859,
            "idParentReservation": null,
            "idSale": 7729,
            "idType": 29,
            "isExtra": null,
            "name": null,
            "reference": "33DS",
            "start": "2019-07-06T07:50:00+02:00",
            "timeout": "2019-07-05T18:13:39.655208969+02:00"
        }
    ]
}

Confirm reservations

Confirm reservations that where created with a timeout.

Methbod: POST

Example:

curl https://mt.golfmanager.es/api/confirmReservation \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo \
 -d 'ids=[234]'

Response:

If it succeeded or the error.

Example:

{ "success": true }

Cancel reservations

Cancel reservations by id.

Methbod: POST

Example:

curl https://mt.golfmanager.es/api/cancelReservation \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo \
 -d 'ids=[234]'

Response:

If it succeeded or the error.

Example:

{ "success": true }

Sale information

Show information about a sale by id.

Methbod: GET

Example:

curl https://mt.golfmanager.es/api/sale \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo \
 -d 'id=34'

Response:

{
    "lines": [
        {
            "canceled": false,
            "createDate": "2019-01-29T19:04:46.618880302Z",
            "description": "GF18, Tee 1, 31-01-2019 10:00, 3LG1B, John Smith",
            "onCredit": false,
            "paid": false,
            "prepayPercent": 0,
            "temp": true,
            "total": 0
        }
    ]
}

Admin

Tenant

Returns general information about the tenant like phone, address, etc...

Methbod: GET

Example:

curl https://mt.golfmanager.es/api/tenant \
 -d tenant=demo \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT

Response:

Example:

{
    "country": "Spain",
    "email": "info@golfmanager.com",
    "image": "392416535538319349sA1PFATw5.png",
    "latitude": "40.2269911",
    "logo": "3899613330138759642L7prno4J.png",
    "longitude": "-3.2406688",
    "name": "Demo Golf Club",
    "phone": "636236052",
    "province": "Madrid",
    "street": "Orense 64",
    "town": "Madrid",
    "web": "https://golfmanager.com",
    "zipCode": "28020",
    "timezoneName": "Atlantic/Canary",
}

Reservation Types

List reservation types

Method: GET

Argument Type Required Description
tenant string yes Tenant name
ids int[] no The id or ids to be fetched
offset int no The offset of the first row to be returned
count int no The maximum number of rows to be returned. (default is 100)

Example:

curl https://mt.golfmanager.es/api/reservationtypes \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo

Response:

Example:

[
    {
        "description": null,
        "end": null,
        "id": 1,
        "idProduct": 1,
        "idResource": 1,
        "idResourceType": 1,
        "max": null,
        "min": null,
        "multiple": null,
        "name": "GF18",
        "productName": "Test Product",
        "resourceName": "Tee test",
        "resourceTypeName": "Green fees",
        "start": null,
        "tags": "18holes",
        "weekDays": 127, 
        "resources": [],
        "extras": []
    }
]

Resources

List resources

Method: GET

Argument Type Required Description
tenant string yes Tenant name
offset int no The offset of the first row to be returned
count int no The maximum number of rows to be returned. (default is 100)

Example:

curl https://mt.golfmanager.es/api/resources \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo

Response:

Example:

[
    {
        "id": 1,
        "idResourceType": 1,
        "name": "Tee 1",
        "resourceTypeName": "Green fees",
        "tags": [
            "tee1"
        ]
    },
    {
        "id": 2,
        "idResourceType": 1,
        "name": "Tee 10",
        "resourceTypeName": "Green fees",
        "tags": [
            "tee10"
        ]
    }
]

Teesheet Rules

List slots

Method: GET

Argument Type Required Description
tenant string yes Tenant name
start datetime yes The start of the search period
end datetime yes The end of the search period

Example:

curl https://mt.golfmanager.es/api/teesheetRules \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo \
 -d start="2019-01-01T23:00:00.000Z" \
 -d end="2019-01-02T17:23:00.000Z"

Response:

Example:

{
    "resourceTypes": [
        {
            "id": 2,
            "name": "Buggies",
            "online": false,
            "slots": 2,
            "stock": true
        },
        {
            "id": 1,
            "name": "Green fees",
            "online": false,
            "slots": 4,
            "stock": false
        }
    ],
    "resources": [
        {
            "id": 1,
            "name": "Tee 1",
            "notOnline": false
        }
    ],
    "slots": [
        {
            "day": "2019-01-01",
            "intervals": [
                {
                    "end": null,
                    "endTime": "14:00",
                    "id": 1,
                    "idResourceType": 1,
                    "name": "test",
                    "online": false,
                    "priority": 0,
                    "start": null,
                    "startTime": "09:00",
                    "weekDays": 127
                },
                {
                    "end": null,
                    "endTime": "22:00",
                    "id": 2,
                    "idResourceType": 1,
                    "name": "test",
                    "online": false,
                    "priority": 0,
                    "start": null,
                    "startTime": "14:00",
                    "weekDays": 127
                }
            ],
            "types": [
                {
                    "end": null,
                    "endTime": null,
                    "id": 1,
                    "idResource": 1,
                    "idResourceType": 1,
                    "max": null,
                    "min": null,
                    "multiple": null,
                    "name": "GF18",
                    "online": false,
                    "priority": 0,
                    "start": null,
                    "startTime": null,
                    "tags": [
                        "18holes"
                    ],
                    "weekDays": 127,
                    "duration": 10
                },
                {
                    "end": null,
                    "endTime": null,
                    "id": 2,
                    "idResource": null,
                    "idResourceType": 1,
                    "max": null,
                    "min": null,
                    "multiple": null,
                    "name": "GF9",
                    "online": false,
                    "priority": 0,
                    "start": null,
                    "startTime": null,
                    "tags": [
                        "9holes"
                    ],
                    "weekDays": 127
                }
            ]
        },
        {
            "day": "2019-01-02",
            "intervals": [
                {
                    "end": null,
                    "endTime": "14:00",
                    "id": 1,
                    "idResourceType": 1,
                    "name": "test",
                    "online": false,
                    "priority": 0,
                    "start": null,
                    "startTime": "09:00",
                    "weekDays": 127
                },
                {
                    "end": null,
                    "endTime": "22:00",
                    "id": 2,
                    "idResourceType": 1,
                    "name": "test",
                    "online": false,
                    "priority": 0,
                    "start": null,
                    "startTime": "14:00",
                    "weekDays": 127
                }
            ],
            "types": [
                {
                    "end": null,
                    "endTime": null,
                    "id": 1,
                    "idResource": 1,
                    "idResourceType": 1,
                    "max": null,
                    "min": null,
                    "multiple": null,
                    "name": "GF18",
                    "online": false,
                    "priority": 0,
                    "start": null,
                    "startTime": null,
                    "tags": [
                        "18holes"
                    ],
                    "weekDays": 127
                },
                {
                    "end": null,
                    "endTime": null,
                    "id": 2,
                    "idResource": null,
                    "idResourceType": 1,
                    "max": null,
                    "min": null,
                    "multiple": null,
                    "name": "GF9",
                    "online": false,
                    "priority": 0,
                    "start": null,
                    "startTime": null,
                    "tags": [
                        "9holes"
                    ],
                    "weekDays": 127
                }
            ]
        }
    ],
    "stocks": [
        {
            "end": null,
            "id": 1,
            "idResourceType": 2,
            "name": "Summer",
            "priority": 0,
            "start": null,
            "stock": 25
        }
    ]
}

Reservations

List reservations

Method: GET

Argument Type Required Description
tenant string yes Tenant name
start datetime yes Start date and time search period
end datetime yes End date and time search period

Example:

curl https://mt.golfmanager.es/api/reservations \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo \
 -d start=2018-12-14T08:00:00%2B01:00 \
 -d end=2018-12-14T18:00:00%2B01:00

Response:

Return a list of reservations

Example:

[
    {
        "checkin": 0,
        "confirmDate": null,
        "createDate": "2019-01-25T15:54:49.25924646Z",
        "end": "2019-01-25T17:04:49.25905354Z",
        "id": 1,
        "idClientGroup": 1,
        "idProduct": 34,
        "idResource": 3,
        "idType": 1,
        "noShow": 0,
        "online": 0,
        "paid": 0,
        "start": "2019-01-25T16:54:49.25905354Z",
        "total": 50
    }
]

Client groups

List client groups

Method: GET

Argument Type Required Description
tenant string yes Tenant name
offset int no The offset of the first row to be returned
count int no The maximum number of rows to be returned. (default is 100)

Example:

curl https://mt.golfmanager.es/api/clientGroups \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo

Response:

Example:

[
    {
        "id": 1,
        "name": "Agents"
    }
]

Clients

List clients

Method: GET

Argument Type Required Description
tenant string yes Tenant name
search string no Search clients by text
offset int no The offset of the first row to be returned
count int no The maximum number of rows to be returned. (default is 100)

Example:

curl https://mt.golfmanager.es/api/clients \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo \
 -d search=a \
 -d limit=500

Response:

Return a list of clients:

Argument Type Description
id int The client id
name string The client name
email string The client email

Example:

[
  {
    "id": 1,
    "name": "John Doe",
    "email": "johndoe@test.com"
  },
  {
    "id": 2,
    "name": "Jane Doe",
    "email": "janedoe@test.com"
  }
]

Products

List products

Method: GET

Argument Type Required Description
tenant string yes Tenant name
search string no Search products by text
offset int no The offset of the first row to be returned
count int no The maximum number of rows to be returned. (default is 100)

Example:

curl https://mt.golfmanager.es/api/products \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo \
 -d search=a \
 -d limit=500

Response:

Return a list of products:

Argument Type Description
id int The product id
name string The product name

Example:

[
  {
    "basePercent": null,
    "id": 1,
    "idBaseProduct": null,
    "idSubfamily": 1,
    "name": "Test Product 1",
    "price": 50
  }
]

Prices

List prices

Method: GET

Argument Type Required Description
tenant string yes Tenant name
offset int no The offset of the first row to be returned
count int no The maximum number of rows to be returned. (default is 100)

Example:

curl https://mt.golfmanager.es/api/prices \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo

Response:

Example:

[
    {
        "channel": null,
        "end": null,
        "endTime": null,
        "holiday": false,
        "id": 1,
        "idAgeGroup": null,
        "idClient": null,
        "idClientGroup": null,
        "idFamiliySales": null,
        "idMembership": null,
        "idProduct": 1,
        "maxAdvance": null,
        "maxSales": null,
        "minAdvance": null,
        "minSales": null,
        "name": "Twilight",
        "price": 100,
        "priority": 0,
        "start": null,
        "startTime": null,
        "weekdays": 0
    }
]

Save price

Save a price. If it has an id it will update it, otherways it will create a new one.

Method: POST

Argument Type Required Description
data json yes The object as json

Example:

curl https://mt.golfmanager.es/api/savePrice \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo \
 -d data="{\"idProduct\":1,\"name\":\"Twilight\",\"price\":100,\"priority\":0,\"weekDays\":127}"

Response:

The ID if it is created. Nothing if it is an update.

Delete prices

Delete multiple prices

Method: POST

Argument Type Required Description
tenant string yes Tenant name
idPrices int[] yes Array with the price ids

Example:

curl https://mt.golfmanager.es/api/deletePrices \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo \
 -d idPrices=[1,2]

Discounts

List discounts

Method: GET

Argument Type Required Description
tenant string yes Tenant name
offset int no The offset of the first row to be returned
count int no The maximum number of rows to be returned. (default is 100)

Example:

curl https://mt.golfmanager.es/api/discounts \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo

Response:

Example:

[
    {
        "channel": null,
        "end": null,
        "endTime": null,
        "holiday": false,
        "id": 1,
        "idAgeGroup": null,
        "idClient": null,
        "idClientGroup": null,
        "idFamiliySales": null,
        "idMembership": null,
        "idProduct": 1,
        "maxAdvance": null,
        "maxSales": null,
        "minAdvance": null,
        "minSales": null,
        "name": "Twilight",
        "percent": 10,
        "priority": 0,
        "rounding": null,
        "start": null,
        "startTime": null,
        "weekdays": 0
    }
]

Save discount

Save a discount. If it has an id it will update it, otherways it will create a new one.

Method: POST

Argument Type Required Description
data json yes The object as json

Example:

curl https://mt.golfmanager.es/api/saveDiscount \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo \
 -d data="{\"idProduct\":1,\"name\":\"Twilight\",\"percent\":100,\"priority\":0,\"weekDays\":127}"

Response:

The ID if it is created. Nothing if it is an update.

newSale

Creates new sale

Method: POST

Argument Type Required Description
tenant string yes Tenant name
idProduct int yes The product id
idClient int yes The client id
parentName int yes Referer name
idParent int yes Referer id

Example:

curl https://mt.golfmanager.es/api/newSale \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo \
 -d idProduct=1 \
 -d idClient=1 \
 -d parentName="Test platform" \
 -d idParent=1

Response:

Return SaleLine id:

Argument Type Description
saleLineId int The SaleLine id

Example:

[
  {
    "saleLineId": 1
  },
  {
    "saleLineId": 2
  }
]

cancelSales

Cancel multiple sales

Method: POST

Argument Type Required Description
tenant string yes Tenant name
idSaleLines int[] yes Array with the saleline ids

Example:

curl https://mt.golfmanager.es/api/cancelSales \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo \
 -d idLines=[1,2]

blockouts

List blockouts

Method: GET

Argument Type Required Description
tenant string yes Tenant name
idResource int no The resource id
start datetime no Start date and time for blocking slots
end datetime no End date and time for blocking slots

Example:

curl https://mt.golfmanager.es/api/blockouts \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo
 -d idResource=2 
 -d start='2019-04-12'

Response:

Example:

[
  {
    "bgColor": "#138533",
    "createDate": "2019-03-29T13:02:36Z",
    "deleted": false,
    "end": "2019-04-13T21:59:59Z",
    "endTime": 52800000,
    "fgColor": "#901a1a",
    "id": 85,
    "idCreateUser": 53,
    "idResource": 2,
    "name": "Bloqueo Torneos",
    "start": "2019-04-12T22:00:00Z",
    "startTime": 28800000,
    "weekDays": 127
  },
  {
    "bgColor": "#d49595",
    "createDate": "2019-06-11T11:42:35Z",
    "deleted": false,
    "end": "2019-06-22T22:00:00Z",
    "endTime": 38400000,
    "fgColor": "#901a1a",
    "id": 118,
    "idCreateUser": 129,
    "idResource": 2,
    "name": "Bloqueo",
    "start": "2019-06-22T22:00:00Z",
    "startTime": 27000000,
    "weekDays": 127
  }
]

blockout

Block slots in the occupation table

Method: POST

Argument Type Required Description
tenant string yes Tenant name
idResource int yes The resource id
start datetime yes Start date and time for blocking slots
end datetime yes End date and time for blocking slots
name string no Name to label the blocked slots
bgColor string no Background color for slots
fgColor string no Foreground color for slots

Example:

curl https://mt.golfmanager.es/api/blockout \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo \
 -d idResource=1 \
 -d start=2018-12-14T08:00:00%2B01:00 \
 -d end=2018-12-14T18:00:00%2B01:00 \
 -d name=Test tournament \
 -d bgColor=#000000 \
 -d fgColor=#ffffff \

Response:

The object created with its id

Example:

{
    "id": 26,
    "idResource": 1,
    "start": "2018-12-14T08:00:00%2B01:00",
    "end": "2018-12-14T18:00:00%2B01:00",
    "name": null,
    "bgColor": null,
    "fgColor": null,
}

Cancel blockout

Cancel a blockout by ID

Method: POST

Argument Type Required Description
tenant string yes Tenant name
id int yes The blockout object id

Example:

curl https://mt.golfmanager.es/api/blockout \
 -u 5Jvm8sCtVr:b31aT5bScxk46aT \
 -d tenant=demo \
 -d id=1

Terms of Service

  • Thank you for using Golfmanager! When you develop on the Golfmanager Platform, you agree to be bound by the following terms, so please read them carefully.

  • The API is provided as-is and without any warranty whatsoever. Golfmanager is not liable for any damage due to unavailable or incorrect APIs.

  • Whilst Golfmanager uses all reasonable endeavours to correct any errors or omissions on the Golfmanager Platform as soon as practicable once they have been brought to Golfmanager's attention, Golfmanager makes no promises, guarantees, representations or warranties of any kind whatsoever (express or implied).

  • Abuse or excessively frequent requests to Golfmanager via the API may result in the temporary or permanent suspension of your Account's access to the API. Golfmanager, in our sole discretion, will determine abuse or excessive usage of the API. We will make a reasonable attempt to warn you via email prior to suspension.

  • Golfmanager has the right to change these General API Terms and Conditions and any Specific API Terms and Conditions.

You can’t perform that action at this time.