4.6 Groups Requests
Available calls:
4.6.1 Return the list of the known MollyBet account groups
Method and URL:
GET /v1/groups/
Every MollyBet account belongs to an account group. Normal accounts can see the group they belong to, certain accounts can be used to manage more than one group.
Request Parameters:
balances [ string ] (optional, default: "true"):
if "true", returns groups balances
Return Data: A list of objects with information about each group.
Output Format:
id [ integer ]:
Numeric identifier of the group.
name [ string ]:
Human-readable name of the group.
balance [ list[string, float] ]:
The balance of the group (sum of the balances of the accounts in the group) as a [ currency code, amount ] 2-items list.
credit_limit [ list[string, float] ]:
The credit limit of the group, if set, as a [ currency code, amount ] 2-items list.
4.6.2 Return information about a MollyBet group
Method and URL:
GET /v1/groups/<group_id>/
Every MollyBet account belongs to an account group. Normal accounts can see the group they belong to, certain accounts can be used to manage more than one group.
URL Parameters:
group_id:
The id of the MollyBet group to return info about.
Return Data: An object with information about the group as in Group List output.
4.6.3 Return the list of the bookmakers accounts available to a group
Method and URL:
GET /v1/groups/<group_id>/bookie_accounts/
URL Parameters:
group_id:
The id of the group to get the accounts list for.
Return Data: A list of objects reporting the accounts available.
Output Format:
id [ integer ]:
The numeric id of the account.
bookie [ string ]:
The bookmaker code of the account.
username [ string ]:
The account username of the bookie account.
enabled [ bool ]:
true if the account is enabled for placement.
stake_share [ float ]:
The percentage of stake that the account will not place (MollyBet will adjust the requested stake accordingly).
agent [ string ]
The name of the agent providing the account.
max_bet [ list[string, float] ]:
The maximum bet accepted on this account, if the information is available.
*price_scheme [ string ]:**
The type of price accepted by the account.
ccy_code [ string ]:
The currency accepted by the account for placement.
balance [ list[string, float] ]
The last account balance known by MollyBet.
4.6.4 Set the new credit limit for a group
Method and URL:
PATCH /v1/groups/<group_id>/
The new limit takes immediately effect.
URL Parameters:
group_id:
The id of the MollyBet group to modify.
Request Parameters:
credit_limit [ list[string, float] ] (optional):
The credit limit of the group.
credit_limit_comment [ string ] (optional):
Optional credit limit description.
4.6.5 Return the history of the credit limit changes of a MollyBet group
Method and URL:
GET /v1/groups/<group_id>/credit_limit_history/
URL Parameters:
group_id:
The id of the MollyBet group to get information for.
Return Data: A list of structures as in Customer Credit Limit History.