Web API v1.8 Changelist
New API Methods
ADDED METHOD | DESCRIPTION |
---|---|
transaction_bet_subscription_payin | Transaction_bet_subscription_payin is used for betting on future draws. Players will have a possibility to place the same bet for several upcoming draws (i.e. 10 draws) in static odds games, so they could "buy in bulk".
Basically transaction_bet_subscription_payin method, does the same logic as transaction_bet_payin method. The only difference is that:
|
transaction_bet_combination_payin | It gives a possibility to place one bet consisting of two or more different bets/events. Note: at this moment only two combo bets can be placed inside transaction_bet_combination_payin. |
transaction_bet_combination_payout | |
transaction_promo_payout | Method for money deposits to Partners player account – paying out the promotions. |
transaction_bet_multi_payin | transaction_bet_multi_payin method allows to place multiple single bets for different games or multiple bets for the same game and draw, with one request. Any of sent bets should be accepted, partial success is possible. |
New Fields
ADDED FIELDS | METHOD | TYPE |
---|---|---|
aams | transaction_bet_payin | varchar |
token | transaction_bet_payout | varchar |
game_id | transaction_bet_payout | int |
bet_type | transaction_bet_payout | const = 'lost' / 'won' / 'return' / 'tie' |
bet_option / name | transaction_bet_payout, transaction_bet_combination_payout | string |
bet_option / value | transaction_bet_payout, transaction_bet_combination_payout | string |
bet_option / round | transaction_bet_payout, transaction_bet_combination_payout | int/null |
game_id | transaction_promo_payout | int |
promo_type | transaction_promo_payout | string |
final_odd | transaction_bet_payout, transaction_bet_combination_payout | decimal |
READ FULL WEB API DOCUMENTATION → Web integration API 1.8 |
Method transaction_bet_payin | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: Method for money withdrawals from Partners player account for making bets. If there are not enough money, then Partner API should return insufficient funds error.
Flowchart diagram:
Request example: <?xml version="1.0" encoding="UTF-8"?>
<root>
<method>transaction_bet_payin</method>
<token>c2696fe0-eba8-012f-596c-528c3f9e4820</token>
<signature>a91c39b7028bde988d1a6858fafd545a</signature>
<time>1423127617</time>
<params>
<amount>1234</amount>
<currency>eur</currency>
<bet_id>123456</bet_id>
<transaction_id>246912</transaction_id>
<retrying>0</retrying>
<bet>Selected ball will be dropped with No. 1,...,42(1, 3, 10)</bet>
<odd>5.70</odd>
<bet_time>2015-02-05 09:13:37</bet_time>
<game>1</game>
<draw_code>71304050073</draw_code>
<draw_time>2015-02-05 09:15:00</draw_time>
</params>
</root>
Example of successful response: <?xml version="1.0" encoding="UTF-8"?>
<root>
<method>transaction_bet_payin</method>
<token>c2696fe0-eba8-012f-596c-528c3f9e4820</token>
<success>1</success>
<error_code>0</error_code>
<error_text></error_text>
<time>1423127617</time>
<params>
<balance_after>48766</balance_after>
<already_processed>0</already_processed>
<aams>S:M42BF200DC66DFQG T:N42BF200EBDD0BKJ</aams>
</params>
<signature>1a4938e2e6804c88d708f9ff8d323c64</signature>
</root>
Example of error response: <?xml version="1.0" encoding="UTF-8"?>
<root>
<method>transaction_bet_payin</method>
<token>abc-eba8-012f-596c-528c3f9e4820</token>
<success>0</success>
<error_code>3</error_code>
<error_text>invalid token</error_text>
<time>1423229288</time>
<signature>06a2d3c9d7448ee6b0fad54d00cdb946</signature>
</root>
|
Method transaction_bet_subscription_payin | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: Method for accepting subscription payin. Transaction_bet_subscription_payin is used for betting on future draws. Players will have a possibility to place the same bet for several upcoming draws (i.e. 10 draws) in static odds games, so they could "buy in bulk". Basically transaction_bet_subscription_payin method, does the same logic as transaction_bet_payin method. The only difference is that:
Flowchart diagram:
Request example: <?xml version="1.0" encoding="UTF-8"?>
<root>
<method>transaction_bet_subscription_payin</method>
<token>c2696fe0-eba8-012f-596c-528c3f9e4820</token>
<time>1528269625</time>
<signature>2beeb78d9f2f9b488fb8f8ae5211ff4f</signature>
<params>
<amount>6170</amount>
<currency>eur</currency>
<subscription_id>123456</subscription_id>
<subscription_time>2018-06-06 07:20:25</subscription_time>
<odd>
<name>SUM of the numbers on the dropped YELLOW balls will be LESS than 73.5</name>
<value>1.9</value>
<translation>SUM of the numbers on the dropped YELLOW balls will be LESS than 73.5</translation>
</odd>
<is_mobile>0</is_mobile>
<game>
<id>1</id>
<name>Lucky 7</name>
<translation>Lucky 7</translation>
</game>
<bet>
<bet_id>123456</bet_id>
<transaction_id>123456</transaction_id>
<amount>1234</amount>
<draw>
<code>71304050073</code>
<time>2018-06-06 07:23:25</time>
</draw>
</bet>
<bet>
<bet_id>123457</bet_id>
<transaction_id>123457</transaction_id>
<amount>1234</amount>
<draw>
<code>71304050074</code>
<time>2018-06-06 07:23:25</time>
</draw>
</bet>
<bet>
<bet_id>123458</bet_id>
<transaction_id>123458</transaction_id>
<amount>1234</amount>
<draw>
<code>71304050075</code>
<time>2018-06-06 07:23:25</time>
</draw>
</bet>
<bet>
<bet_id>123459</bet_id>
<transaction_id>123459</transaction_id>
<amount>1234</amount>
<draw>
<code>71304050076</code>
<time>2018-06-06 07:23:25</time>
</draw>
</bet>
<bet>
<bet_id>123460</bet_id>
<transaction_id>123460</transaction_id>
<amount>1234</amount>
<draw>
<code>71304050077</code>
<time>2018-06-06 07:23:25</time>
</draw>
</bet>
</params>
</root>
Example of successful response: <?xml version="1.0" encoding="UTF-8"?>
<root>
<method>transaction_bet_subscription_payin</method>
<token>c2696fe0-eba8-012f-596c-528c3f9e4820</token>
<success>1</success>
<error_code>0</error_code>
<error_text></error_text>
<time>1423127617</time>
<params>
<balance_after>48766</balance_after>
<already_processed>0</already_processed>
</params>
<signature>bb15c611416cf9512e70bf3fb7463dcb</signature>
</root>
Example of error response: <?xml version="1.0" encoding="UTF-8"?>
<root>
<method>transaction_bet_subscription_payin</method>
<token>abc-eba8-012f-596c-528c3f9e4820</token>
<success>0</success>
<error_code>3</error_code>
<error_text>invalid token</error_text>
<time>1423229288</time>
<signature>104fa720c8e9d44db7a7cb58896bd442</signature>
</root>
|
Method transaction_bet_payout | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: Method for money deposits to Partners player account – paying out the winnings.
Flowchart diagram:
Request example for games without additional selection (balls, dice, wheel sector): <?xml version="1.0" encoding="UTF-8"?>
<root>
<method>transaction_bet_payout</method>
<token>c2696fe0-eba8-012f-596c-528c3f9e4820</token>
<signature>e456c597cb7f97c168009661b4ee2522</signature>
<time>1423128560</time>
<params>
<player_id>150205</player_id>
<amount>2034</amount>
<currency>eur</currency>
<bet_id>123456</bet_id>
<transaction_id>246913</transaction_id>
<retrying>0</retrying>
<bet_type>won</bet_type>
<game_id>1</game_id>
<final_odd>2.50<final_odd>
</params>
</root>
<?xml version="1.0" encoding="UTF-8"?>
<root>
<method>transaction_bet_payout</method>
<token>5j5JK3JpWr3PXpkwPtAC4TMxX1dVICTE1OS0TbgCwXa3IZItQ7w26pUXINuJ</token>
<time>1611067082</time>
<signature>cb4d8a0bc965c01fee1e225534c4c6c6</signature>
<params>
<player_id>8</player_id>
<amount>3260</amount>
<currency>usd</currency>
<bet_id>4420111</bet_id>
<transaction_id>13249950</transaction_id>
<retrying>0</retrying>
<bet_type>won</bet_type>
<game_id>11</game_id>
<bet_option>
<name>choice</name>
<value>black</value>
<round>3</round>
</bet_option>
<bet_option>
<name>choice</name>
<value>black</value>
<round>4</round>
</bet_option>
<final_odd>1.80<final_odd>
</params>
</root>
<bet_option></bet_option> element values can be different for each game. Lottery games (Lucky 5, Lucky 6, Lucky 7) example: <bet_option>
<name>ball</name>
<value>25</value>
<round></round>
</bet_option>
<bet_option>
<name>ball</name>
<value>26</value>
<round></round>
</bet_option>
<bet_option>
<name>ball</name>
<value>27</value>
<round></round>
</bet_option>
Dice Duel: <bet_option>
<name>dice</name>
<value>5</value>
<round></round>
</bet_option>
<bet_option>
<name>sector</name>
<value>10</value>
<round></round>
</bet_option>
Example of successful response: <?xml version="1.0" encoding="UTF-8"?>
<root>
<method>transaction_bet_payout</method>
<token>c2696fe0-eba8-012f-596c-528c3f9e4820</token>
<success>1</success>
<error_code>0</error_code>
<error_text></error_text>
<time>1423128560</time>
<params>
<balance_after>2092</balance_after>
<already_processed>0</already_processed>
</params>
<signature>736782bf451def853bbad43e210d3787</signature>
</root>
Example of error response: <?xml version="1.0" encoding="UTF-8"?>
<root>
<method>transaction_bet_payout</method>
<token>c2696fe0-eba8-012f-596c-528c3f9e4820</token>
<success>0</success>
<error_code>700</error_code>
<error_text>there is no PAYIN with provided bet_id</error_text>
<time>1423229288</time>
<signature>a678ae382bce2edd151a40d6b470e257</signature>
</root>
|
Method transaction_bet_combination_payin | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: Method for accepting combination payin. Transaction_bet_combination_payin gives a possibility to place one bet consisting of two or more different bets/events. Flowchart diagram:
Request example: <?xml version="1.0" encoding="UTF-8"?>
<root>
<method>transaction_bet_combination_payin</method>
<token>c2696fe0-eba8-012f-596c-528c3f9e4820</token>
<time>1543926540</time>
<params>
<amount>1200</amount>
<odd_value>3</odd_value>
<currency>eur</currency>
<combination_id>123</combination_id>
<combination_time>2018-12-04 12:29:00</combination_time>
<is_mobile>0</is_mobile>
<bet>
<bet_id>1231</bet_id>
<transaction_id>1233</transaction_id>
<draw>
<code>51301010100</code>
<time>2018-01-01 00:00:00</time>
</draw>
<game>
<id>1</id>
<name>Lucky 7</name>
<translation>Lucky 7</translation>
</game>
<odd>
<name>More ODD numbered balls will be dropped</name>
<value>1.5</value>
<translation>More ODD numbered balls will be dropped</translation>
</odd>
</bet>
<bet>
<bet_id>1232</bet_id>
<transaction_id>1234</transaction_id>
<draw>
<code>51301010300</code>
<time>2018-01-01 00:00:00</time>
</draw>
<game>
<id>3</id>
<name>Lucky 5</name>
<translation>Lucky 5</translation>
</game>
<odd>
<name>COUNT of the dropped WHITE balls will be MORE than COUNT of the dropped RED balls</name>
<value>2</value>
<translation>COUNT of the dropped WHITE balls will be MORE than COUNT of the dropped RED balls</translation>
</odd>
</bet>
</params>
<signature>e32ce06ecfbdb76a1813e02881d63cc1</signature>
</root>
Example of successful response: <?xml version="1.0" encoding="UTF-8"?>
<root>
<method>transaction_bet_combination_payin</method>
<token>c2696fe0-eba8-012f-596c-528c3f9e4820</token>
<success>1</success>
<error_code>0</error_code>
<error_text></error_text>
<time>1423127617</time>
<params>
<balance_after>48766</balance_after>
<already_processed>0</already_processed>
</params>
<signature>33059d3b8405d51d46a673c8acec1064</signature>
</root>
Example of error response: <?xml version="1.0" encoding="UTF-8"?>
<root>
<method>transaction_bet_combination_payin</method>
<token>abc-eba8-012f-596c-528c3f9e4820</token>
<success>0</success>
<error_code>3</error_code>
<error_text>invalid token</error_text>
<time>1423229288</time>
<signature>fbf1851d854329d7f04842f115351421</signature>
</root>
|
Method transaction_bet_combination_payout | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: Method for money deposits to Partners player account – paying out the winnings.
Flowchart diagram:
Request example without selected additional betting options (balls, dice, wheel sector): <?xml version="1.0" encoding="UTF-8"?>
<root>
<method>transaction_bet_combination_payout</method>
<token>abc-eba8-012f-596c-528c3f9e4820</token>
<time>1543926924</time>
<params>
<player_id>c2696fe0-eba8-012f-596c-528c3f9e4820</player_id>
<amount>1234</amount>
<type>won</type>
<currency>eur</currency>
<combination_id>123</combination_id>
<bet>
<bet_id>1231</bet_id>
<game_id>1</game_id>
<transaction_id>1235</transaction_id>
<type>won</type>
<final_odd>1.5</final_odd>
</bet>
<bet>
<bet_id>1232</bet_id>
<game_id>3</game_id>
<transaction_id>1236</transaction_id>
<type>won</type>
<final_odd>1.5</final_odd>
</bet>
<final_odd>2.25</final_odd>
</params>
<signature>92d0cf88c4b2dcbbdcda8b233738b25b</signature>
</root>
Request example with selected additional betting options (same as for transaction_bet_payout, different <name> for each game can be included like choice, ball and etc): <?xml version="1.0" encoding="UTF-8"?>
<root>
<method>transaction_bet_combination_payout</method>
<token>5j5JK3JpWr3PXpkwPtAC4TMxX1dVICTE1OS0TbgCwXa3IZItQ7w26pUXINuJ<
/token>
<time>1611071329</time>
<signature>8571541fac780af5ce43d6f5ecbf4931</signature>
<params>
<player_id>8</player_id>
<amount>0</amount>
<type>lost</type>
<currency>usd</currency>
<combination_id>2981</combination_id>
<bet>
<bet_id>4420295</bet_id>
<game_id>1</game_id>
<transaction_id>13250512</transaction_id>
<type>lost</type>
<final_odd>1.5</final_odd>
<bet_option>
<name>ball</name>
<value>16</value>
<round></round>
</bet_option>
<bet_option>
<name>ball</name>
<value>17</value>
<round></round>
</bet_option>
</bet>
<bet>
<bet_id>4420296</bet_id>
<game_id>7</game_id>
<transaction_id>13250513</transaction_id>
<type>lost</type>
<final_odd>1.5</final_odd>
<bet_option>
<name>sector</name>
<value>16</value>
<round></round>
</bet_option>
</bet>
<final_odd>2.25</final_odd>
</params>
</root>
Example of successful response: <?xml version="1.0" encoding="UTF-8"?>
<root>
<method>transaction_bet_combination_payout</method>
<token>c2696fe0-eba8-012f-596c-528c3f9e4820</token>
<success>1</success>
<error_code>0</error_code>
<error_text></error_text>
<time>1423128560</time>
<params>
<balance_after>2092</balance_after>
<already_processed>0</already_processed>
</params>
<signature>7c67a40ae0a3b7884ed45baf75a3cc1d</signature>
</root>
Example of error response: <?xml version="1.0" encoding="UTF-8"?>
<root>
<method>transaction_bet_combination_payout</method>
<token>c2696fe0-eba8-012f-596c-528c3f9e4820</token>
<success>0</success>
<error_code>700</error_code>
<error_text>there is no PAYIN with provided bet_id</error_text>
<time>1423229288</time>
<signature>cea725e94b7683684efb1b7287226850</signature>
</root>
|
Method transaction_promo_payout | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: Method for money deposits to Partners player account – paying out the promotion winnings. Important notes:
Request example: <?xml version="1.0" encoding="UTF-8"?>
<root>
<method>transaction_promo_payout</method>
<token>5j5JK3JpWr3PXpkwPtAC4TMxX1dVICTE1OS0TbgCwXa3IZItQ7w26pUXINuJ</token>
<time>1611072828</time>
<signature>3050679cd4bb83dbd2c8adf8cfccd0c0</signature>
<params>
<player_id>8</player_id>
<currency>usd</currency>
<amount>100</amount>
<promo_transaction_id>77472884103</promo_transaction_id>
<bet_id>92644491027</bet_id>
<game_id>1</game_id>
<promo_type>Cashback</promo_type>
</params>
</root>
Example of successful response: <?xml version="1.0" encoding="UTF-8"?>
<root>
<method>transaction_promo_payout</method>
<token>c2696fe0-eba8-012f-596c-528c3f9e4820</token>
<success>1</success>
<error_code>0</error_code>
<error_text></error_text>
<time>1423128560</time>
<params>
<balance_after>2092</balance_after>
<already_processed>0</already_processed>
</params>
<signature>736782bf451def853bbad43e210d3787</signature>
</root>
Example of error response: <?xml version="1.0" encoding="UTF-8"?>
<root>
<method>transaction_promo_payout</method>
<token>c2696fe0-eba8-012f-596c-528c3f9e4820</token>
<success>0</success>
<error_code>700</error_code>
<error_text>there is no PAYIN with provided bet_id</error_text>
<time>1423229288</time>
<signature>a678ae382bce2edd151a40d6b470e257</signature>
</root>
|
Method transaction_bet_multi_payin | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: Method allows to place multiple single bets with one request. Accept any of sent bets, partial success is possible. Flowchart diagram:
Request example: <?xml version="1.0" encoding="UTF-8"?>
<root>
<method>transaction_bet_multi_payin</method>
<token>c2696fe0-eba8-012f-596c-528c3f9e4820</token>
<time>1577836800</time>
<signature>2d7a67bd343de00b8815ecc88d2eebb8</signature>
<params>
<currency>eur</currency>
<is_mobile>1</is_mobile>
<bet>
<bet_id>1</bet_id>
<amount>100</amount>
<transaction_id>1</transaction_id>
<draw>
<code>123</code>
<time>2020-01-01 00:00:00</time>
</draw>
<game>
<id>10</id>
<name>Dice Duel</name>
<translation>Dice Duel</translation>
</game>
<odd>
<id>231</id>
<name>Red dice wins</name>
<value>2.25</value>
<translation>Red dice wins</translation>
</odd>
</bet>
<bet>
<bet_id>2</bet_id>
<amount>100</amount>
<transaction_id>2</transaction_id>
<draw>
<code>123</code>
<time>2020-01-01 00:00:00</time>
</draw>
<game>
<id>10</id>
<name>Dice Duel</name>
<translation>Dice Duel</translation>
</game>
<odd>
<id>231</id>
<name>Red dice wins</name>
<value>2.25</value>
<translation>Red dice wins</translation>
</odd>
</bet>
<bet>
<bet_id>3</bet_id>
<amount>100</amount>
<transaction_id>3</transaction_id>
<draw>
<code>123</code>
<time>2020-01-01 00:00:00</time>
</draw>
<game>
<id>10</id>
<name>Dice Duel</name>
<translation>Dice Duel</translation>
</game>
<odd>
<id>231</id>
<name>Red dice wins</name>
<value>2.25</value>
<translation>Red dice wins</translation>
</odd>
</bet>
</params>
</root>
1.0. Example of successful response: <?xml version="1.0" encoding="UTF-8"?>
<root>
<method>transaction_bet_multi_payin</method>
<token>c2696fe0-eba8-012f-596c-528c3f9e4820</token>
<success>1</success>
<error_code>0</error_code>
<error_text></error_text>
<time>1577836800</time>
<params>
<balance_after>999700</balance_after>
<bet>
<transaction_id>246912</transaction_id>
<success>1</success>
<error_code>0</error_code>
<error_text></error_text>
</bet>
<bet>
<transaction_id>246913</transaction_id>
<success>1</success>
<error_code>0</error_code>
<error_text></error_text>
</bet>
<bet>
<transaction_id>246914</transaction_id>
<success>1</success>
<error_code>0</error_code>
<error_text></error_text>
</bet>
</params>
<signature>92339383ecdbbd181880500686dbd932</signature>
</root>
2.0. Partial success is possible. Example response: <?xml version="1.0" encoding="UTF-8"?>
<root>
<method>transaction_bet_multi_payin</method>
<token>c2696fe0-eba8-012f-596c-528c3f9e4820</token>
<success>1</success>
<error_code>0</error_code>
<error_text></error_text>
<time>1577836800</time>
<params>
<balance_after>999700</balance_after>
<bet>
<transaction_id>246912</transaction_id>
<success>1</success>
<error_code>0</error_code>
<error_text></error_text>
</bet>
<bet>
<transaction_id>246913</transaction_id>
<success>1</success>
<error_code>0</error_code>
<error_text></error_text>
</bet>
<bet>
<transaction_id>246914</transaction_id>
<success>0</success>
<error_code>703</error_code>
<error_text>insufficient balance</error_text>
</bet>
</params>
<signature>34b65e7c2f22719689dd4f727974e62e</signature>
</root>
3.0. Example of error response: <?xml version="1.0" encoding="UTF-8"?>
<root>
<method>transaction_bet_multi_payin</method>
<token>c2696fe0-eba8-012f-596c-528c3f9e4820</token>
<success>1</success>
<error_code>0</error_code>
<error_text></error_text>
<time>1577836800</time>
<params>
<balance_after>999700</balance_after>
<bet>
<transaction_id>246912</transaction_id>
<success>0</success>
<error_code>703</error_code>
<error_text>insufficient balance</error_text>
</bet>
<bet>
<transaction_id>246913</transaction_id>
<success>0</success>
<error_code>703</error_code>
<error_text>insufficient balance</error_text>
</bet>
<bet>
<transaction_id>246914</transaction_id>
<success>0</success>
<error_code>703</error_code>
<error_text>insufficient balance</error_text>
</bet>
</params>
<signature>1ca007a86ffb3239f316d6b0d99350cb</signature>
</root>
|