Finance details

GET `/bc/calculator/finance-details` endpoint

Calculates detailed finance info: taxes and payouts.

Query parameters:

Parameter name
Data Type
Description

operator

string

Operator name. For example, for operator acme the value should be operator=acme

price

integer

Ticket price. Should be in integer format (cents). For example, for price 35.00 the value should be price=3500

odds

list of floats

List of event odds at time of ticket submission. Should be in decimal format with 2 digits after comma. For example, for odds 1.24 and 2.76 the value should be odds=1.24&odds=2.76

Response example:

{
  "price": 1000,
  "total_odds": 3.42,
  "stake": 889,
  "ext": 12.5,
  "ext_amount": 111,
  "ext_type": "inclusive",
  "wht": 20,
  "wht_amount": 430,
  "gross_payout": 3040,
  "net_payout": 2610
}

If operator was not found error response is returned with status code 400

{
  "code": 106,
  "message": "Operator wrong-name was not found"
}

Last updated