client.getCredit
Get all information about user credit.
Parameters
| struct |
user { |
|
| string |
session |
Session (as retrieved from client.loginByToken())
|
| int |
userId |
(optional) User ID for credit info
|
|
} |
|
|
| array |
users ( |
(optional) if not set, return all managed users
|
|
|
) |
|
|
Response
| struct |
{ |
|
| array |
clients ( |
|
| struct |
{ |
|
| double |
credit |
User's credit (in CZK)
|
| double |
creditWithVat |
User's credit including VAT; in CZK
|
| bool |
verifiedInWallet |
User's Wallet is verified
|
| string |
agencyStatus |
Status of this account:
-
no-agency:
normal account (not an agency account)
-
wallet-agency:
agency account taking credit from wallet
-
bill-agency:
agency account with billing
-
client-agency:
account expenses are paid by an agency account
|
|
} |
|
|
|
) |
|
|
| string |
statusMessage |
Status message
|
| struct |
diagnostics { |
(optional) Additional information about processed request
|
} |
|
|
|
} |
|
|
Response status codes:
List of all possible response status codes:
200: OK
206: Partially OK
301: User is serviced
400: Bad arguments
401: Invalid session
403: Access Denied
404: Not found
406: Bad values of attributes
413: Too many items requested.
429: Too many requests. Has to wait.
500: Server Error.
409: Conflict
Diagnostics:
List of all possible diagnostics: