Documentation
Difficulty level:
API - Booking - POST booking/current
GET booking/current
Used for
Shows bookings for current user
Authentication
Logged in user
Parameters
Parameter | Description | Mandatory | Example |
---|---|---|---|
search | geef zoek opties mee: status, structure, equals | No | |
lang | met deze optie geef je de gewenste taal op | No | NL, EN |
Example 1
Shows bookings for the current logged in user
GET api/rest/booking/current/
Response: [ { "RES_ID": "<a href='https://YOURDOMAIN.i-reserve.net/front?mod=bookingedit&booking_id=30135'>30135</a>", "OBJ_DESC": "Yogales", "CUST_INITIALS": "1", "CUST_SEX": "Onbekend", "CUST_PREFIX": "", "CUST_LASTNAME": "2", "RES_FROMDATE": "do jan 30, 2020", "RES_FROMTIME": "09:00", "RES_TILTIME": "10:00", "RES_CUST_ID": 30108, "res_id": "30135", "res_cust_id": "30108", "id": 1, "RES_ID_raw": "30135", "OBJ_DESC_raw": "Yogales", "CUST_INITIALS_raw": "1", "CUST_SEX_raw": "0", "CUST_PREFIX_raw": "", "CUST_LASTNAME_raw": "2", "RES_FROMDATE_raw": "2020-01-30", "RES_FROMTIME_raw": 32400, "RES_TILTIME_raw": 36000, "RES_CUST_ID_raw": "30108" } ]
Example 2
Shows the bookings for the logged in user, with adjusted search criteria
GET api/rest/booking/current/?search=STATUS=12&lang=EN
Response: [ { "RES_ID": "<a href='https://YOURDOMAIN.i-reserve.net/front?mod=bookingedit&booking_id=30135'>30135</a>", "OBJ_DESC": "Yogalesson", "CUST_INITIALS": "1", "CUST_SEX": "Onbekend", "CUST_PREFIX": "", "CUST_LASTNAME": "2", "RES_FROMDATE": "do jan 30, 2020", "RES_FROMTIME": "09:00", "RES_TILTIME": "10:00", "RES_CUST_ID": 30108, "res_id": "30135", "res_cust_id": "30108", "id": 1, "RES_ID_raw": "30135", "OBJ_DESC_raw": "Yogales", "CUST_INITIALS_raw": "1", "CUST_SEX_raw": "0", "CUST_PREFIX_raw": "", "CUST_LASTNAME_raw": "2", "RES_FROMDATE_raw": "2020-01-30", "RES_FROMTIME_raw": 32400, "RES_TILTIME_raw": 36000, "RES_CUST_ID_raw": "30108" } ]