This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
getrelationbalance [2013/05/23 16:22] richard created |
getrelationbalance [2013/05/23 17:26] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | <code> | + | ====/itg/getrelationbalance==== |
| + | Retrieve the current balance of pre-deposited money for a specific client. | ||
| + | |||
| + | parameters: | ||
| + | |auth |the authorisation code you received from Intogolf BV (mandatory)| | ||
| + | |relnr |internal id of a golfer within the domain of ikgagolfen| | ||
| + | |relnrlocal |local id of a golfer within the domain of the golfcourse| | ||
| + | |||
| + | At least one of the parameters relnr, relnrlocal needs to be provided, otherwise the return code 449 - Retry with valid parameters is returned. | ||
| + | |||
| + | If a wrong authorisation code is provided, the backend will return 401,“Unauthorized” | ||
| + | |||
| + | example: https://backend.intogolf.com/itg/getrelationbalance?auth=<your authorisation code>&relnr=659764 | ||
| + | |||
| + | result: | ||
| + | <code>{ | ||
| { | { | ||
| Line 11: | Line 26: | ||
| }</code> | }</code> | ||
| + | |||
| + | |balance |current balance| | ||
| + | |pmtnr |internal id of paymethod that is associated with this balance| | ||
| + | |pmtname|name of the paymethod| | ||
| + | |||