Balance service API

From BetgamesTV
Jump to navigation Jump to search

You can get your balance data from service by url:

http://betgames.tv/ext/export/shop_balance_daily/<partner ID>/<yyyy-mm-dd>/<yyyy-mm-dd>

Explanation of parameters

  • partner ID - ask BetGames.TV engineer.
  • yyyy-mm-dd/yyyy-mm-dd - Date difference that you needed. Maximum date range is 7 days.

Posible alerts

  • Export disabled!
  • Ip is not allowed!
  • Date range is missing!
  • Too many requests per second! - Limit is one request per 5 second.

NOTE: Our service support JSON output.

Example

Export service url: http://betgames.tv/ext/export/shop_balance_daily/

121/2014-09-09/2014-09-09/0/1 where:

121 - partner ID

0 - shop ID, 0 - all shops

1 - output format, 0 - JSON, 1 - XML


JSON example http://betgames.tv/ext/export/shop_balance_daily/121/2014-09-09/2014-09-09/325/0

<root>
<result>
<ShopID>325</ShopID>
<ShopName>TEST PARTNER SHOP</ShopName>
<Date>2014-09-09</Date>
<TicketsCount>0</TicketsCount>
<StackAmount>0</StackAmount>
<TaxAmount>0</TaxAmount>
<PayOutCount>0</PayOutCount>
<PayOutAmount>0</PayOutAmount>
<PayOutTax>0</PayOutTax>
<CanceledTicketsCount>0</CanceledTicketsCount>
<CanceledTicketsAmount>0</CanceledTicketsAmount>
<WonTicketCount>0</WonTicketCount>
<WonTicketAmount>0</WonTicketAmount>
<CanceledTaxAmount>0</CanceledTaxAmount>
</result>
</root>

XML example http://betgames.tv/ext/export/shop_balance_daily/121/2014-09-09/2014-09-09/325/1