API Documentation
  • Introduction
  • Getting Started
  • Signature
  • Bet Card API
    • Calculator
      • Finance details
    • Jackpot
      • Get Jackpot Cards
      • Get Jackpot Card by code
      • Pick Jackpot Bets
    • Quicktip
      • Get Quicktip Cards
      • Get Quicktip Card by code
    • Smartbet
      • Get Smartbert cards
      • Get Smartbet Card by code
      • Generate a Smartbet
    • Quickbet
      • Get Quickbet Cards
      • Get Quickbet Card by code
    • Superbet
      • Get Superbet Cards
      • Get Superbet Card by code
  • Bet Engine API
    • Headers
    • Create ticket endpoint
      • Quicktip
      • Smartbet
      • Quickbet
      • Superbet
      • Jackpot
    • Reserve ticket endpoint
      • Quicktip
      • Smartbet
      • Quickbet
      • Superbet
      • Jackpot
    • Paid ticket endpoint
    • Get ticket endpoint
    • Get ticket list endpoint
    • Fields
    • Error codes
  • PAM Platform API
    • Headers
    • Signature
    • Ping
    • Identify
    • Create a ticket
    • Reserve the ticket
    • Update the ticket
    • Close the ticket
    • Refund the ticket
    • Win the ticket
    • Lose the ticket
    • Void the ticket
    • Discard the ticket
    • Rollback the ticket
  • SMS notifications
    • Headers
    • Signature
    • Notification types
      • otp
      • ticket_status
      • bet_result (not supported)
  • API Docs
    • [api /bc] Bet Card
    • [api /be] Bet Engine
Powered by GitBook
On this page
  1. Bet Card API
  2. Calculator

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"
}
PreviousCalculatorNextJackpot

Last updated 10 months ago