This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
getflight [2013/05/23 15:38] richard |
getflight [2014/05/21 10:48] (current) |
||
|---|---|---|---|
| Line 10: | Line 10: | ||
| |starttime |time the flightreservation is made for in minutes since midnight (600 = 10 o'clock, 720 is noon) | | |starttime |time the flightreservation is made for in minutes since midnight (600 = 10 o'clock, 720 is noon) | | ||
| - | At least one of the parameters fltnr, relnr, relnrlocal, startdate, strttime is needs to be provided, otherwise the return code 449 - Retry with valid parameters is returned. | + | At least one of the parameters fltnr, relnr, relnrlocal, startdate, strttime needs to be provided, otherwise the return code 449 - Retry with valid parameters is returned. |
| - | If the parameters fltnr and/or startdate are nort provided, the resultset will always be limited to startdates >= today | + | If the parameters fltnr and/or startdate are not provided, the resultset will always be limited to startdates >= today |
| If the parameter fltnr is provided all other selection parameters are ignored. | If the parameter fltnr is provided all other selection parameters are ignored. | ||
| Line 46: | Line 46: | ||
| "carnr": 0, | "carnr": 0, | ||
| "carname": null, | "carname": null, | ||
| + | "locked_by": 205, | ||
| "players": [ | "players": [ | ||
| { | { | ||
| Line 136: | Line 137: | ||
| "carnr": 0, | "carnr": 0, | ||
| "gfcname": "10 rittenkaart", | "gfcname": "10 rittenkaart", | ||
| - | "gfcdatefrom": 735376, | + | "gfcdatefrom": 20130501, |
| - | "gfcdateto": 735740, | + | "gfcdateto": 20140430, |
| "totalrounds": 10, | "totalrounds": 10, | ||
| "usedrounds": 0, | "usedrounds": 0, | ||
| Line 149: | Line 150: | ||
| }</code> | }</code> | ||
| + | Flight info: | ||
| |fltnr |internal id of this flight| | |fltnr |internal id of this flight| | ||
| |startdate |date at which the golfround will be played in YYYYMMDD format| | |startdate |date at which the golfround will be played in YYYYMMDD format| | ||
| Line 162: | Line 164: | ||
| |origin |1 - phone/reception, 2 - internet| | |origin |1 - phone/reception, 2 - internet| | ||
| |timestamp |date and time the booking was made| | |timestamp |date and time the booking was made| | ||
| - | |carnr |internal id of reason if the booking was canceled | + | |carnr |internal id of reason if the booking was canceled| |
| - | |carname |description of cancelreason | + | |carname |description of cancelreason| |
| + | |locked_by |id of the computer that holds the flight in a lock| | ||
| + | Players (if the parameter fltnr was provided, these subrecords may also include players that have canceled (carnr>0): | ||
| + | |flpnr|internal id of the flight player| | ||
| + | |relnr|global id of the golfer (can be 0 if the golfer is not known globally)| | ||
| + | |relnrlocal|local id of the golfer for this golfcourse (can be 0 if the golfer is not known locally)| | ||
| + | |name|name of the golfer| | ||
| + | |phone|phone number| | ||
| + | |handicap|handicap of the golfer| | ||
| + | |grfnr|internal id of the greenfee| | ||
| + | |grfname|name of the greenfee| | ||
| + | |greenfee|greenfee price| | ||
| + | |grfnrdiscount|internal id of discount| | ||
| + | |grfnamediscount|name of discount| | ||
| + | |discount|discount amount| | ||
| + | |gfcnr|internal id of greenfeecard| | ||
| + | |gfcname|name of the greenfeecard| | ||
| + | |gfcdatefrom|date the greenfeecard became valid| | ||
| + | |gfcdateto| date after which the greenfeecard is expired| | ||
| + | |totalrounds|total value of the greenfeecard| | ||
| + | |usedrounds|used up value of the greenfeecard (totalrounds - usedrounds = balance). Beware that this value will only include the current flight if the player has checked in| | ||
| + | |gfcnrdiscount|internal id of discountcard| | ||
| + | |gfcdatefromdiscount|date the discountcard became valid| | ||
| + | |gfcdatetodiscount| date after which the discountcard is expired| | ||
| + | |totalroundsdiscount|total value of the discountcard| | ||
| + | |usedroundsdiscount|used up value of the discountcard (totalrounds - usedrounds = balance). Beware that this value will only include the current flight if the player has checked in| | ||
| + | |scorecardnr|internal id of scorecard if the player has checked in (use this to test if the player has checked in and payed)| | ||
| + | |qualifyingnr|internal id of qualifying card| | ||
| + | |carnr|internal id of cancel reason if this player was canceled| | ||
| + | |||
| + | Rentals (if a rental record was assigned to a specific player, the record will appear as a subrecord to that player in the resultset. All rental records that are not assigned to a player will be treated as if they were assigned to the first player in the flight): | ||
| + | |||
| + | |rentalnr|internal id id the rental record| | ||
| + | |rentaltypenr|internal id of the type of object that was rented| | ||
| + | |rentaltype|name of the type of object that was rented| | ||
| + | |rentalitemnr|internal id of the item that was rented (if specified)| | ||
| + | |rentalitem|name if the item that was rented if specified (i.e. Buggy 3)| | ||
| + | |rentaltimefrom|time from in minutes since midnight| | ||
| + | |rentaltimeto|time to in minutes since midnight| | ||
| + | |extratimebefore|extra time the item is blocked before time from| | ||
| + | |extratimeafter|extra time the item is blocked after time to| | ||
| + | |extrainfo|extra info textfield| | ||
| + | |rentalprice|rental fee| | ||
| + | |checkedin|if true the rental item was checked in together with the player and has been paid for| | ||