Retrieve a list of all lessontypes for a specific course.
parameters:
auth | the authorisation code you received from Intogolf BV (mandatory) |
crsnr | the id of the course (mandatory) |
example: https://backend.ikgagolfen.nl/igg/lessontypes?auth=<your authorisation code>&crsnr=58
result:
{ "lessontypes": [ { "pltnr": 453, "pltname": "academy class", "pltminpers": 0, "pltmaxpers": 15, "pltjoinlessonyn": 1, "pltduration": 60 }, { "pltnr": 442, "pltname": "baanpermissiecursus (dag) deel 2", "pltminpers": 0, "pltmaxpers": 8, "pltjoinlessonyn": 1, "pltduration": 180 }, { "pltnr": 451, "pltname": "kennismakingscursus 3 uur", "pltminpers": 4, "pltmaxpers": 8, "pltjoinlessonyn": 1, "pltduration": 180 }, { "pltnr": 590, "pltname": "prive les 110 minuten", "pltminpers": 1, "pltmaxpers": 4, "pltjoinlessonyn": 0, "pltduration": 120 }, { "pltnr": 589, "pltname": "prive les 50 minuten", "pltminpers": 1, "pltmaxpers": 4, "pltjoinlessonyn": 0, "pltduration": 60 }, { "pltnr": 591, "pltname": "prive les 80 minuten", "pltminpers": 1, "pltmaxpers": 4, "pltjoinlessonyn": 0, "pltduration": 90 } ] }
If pltminpers > 1 you need to make sure the user will book for at least pltminpers persons. Also make sure the nr of golfers the user makes thebooking for is not more than pltmaxpers
If pltjoinlessonyn = 1 you can ignore the pltminpers and pltmaxpers values. In this case you can only book for 1 person at a time. This is typically used for pre-scheduled courses where golfers can add themselves to the lesson and join the group.
if a crsnr that does not allow lesson bookings is provided, the backend will return “no lessons for this course”
if a wrong authorisation code is provided, the backend will return “no authorisation”