--- url: /introduction.md --- # Introduction **AMBSuperAPI** is designed around RESTFUL API. Our API is made for everyone to be able to read and predictable oriented URLs.The AMBSuperAPI allows you to integrate with the various game providers around the world without handling every risk during the integration of the game provider by yourself and **super simple to use**.. **After Start** When you request the API endpoint these need to use a valid API Key. You can get your API key from the [AMBSuperAPI Agent Profile Page](https://ambsuperapi.com/account/profile) --- --- url: /authentication.md --- # Authentication An **API Key** is required to be sent as a part of every request, In the form of [Basic Authentication](https://swagger.io/docs/specification/authentication/basic-authentication/#:~:text=Basic%20authentication%20is%20a%20simple,55w0rd%20the%20client%20would%20send) in the request header, ## API Server ### Production ``` https://api.hentory.io ``` ### Staging ``` https://test.ambsuperapi.com ``` ## How Authentication Works AMBSuperAPI uses Basic Authentication with your agent credentials. You need to: 1. Get your API key from the [AMBSuperAPI Agent Profile Page](https://ambsuperapi.com/account/profile) 2. Encode your credentials using Base64 format: `Base64(agent_username:x-api-key)` 3. Include the encoded credentials in the Authorization header. ## Authorization Header Format ``` Authorization: Basic Base64({{ agent_username }}:{{ x-api-key }}) ``` ## Example If your agent username is `agent001` and your API key is `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`, you would: 1. Create the string: `agent001:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx` 2. Encode it with Base64: `YWdlbnQwMDE6eHh4eHh4eHgteHh4eC14eHh4LXh4eHgteHh4eHh4eHh4eHh4` 3. Use it in the header: `Authorization: Basic YWdlbnQwMDE6eHh4eHh4eHgteHh4eC14eHh4LXh4eHgteHh4eHh4eHh4eHh4` **API Key related error response** If an API Key is missing, malformed, or invalid, you will receive a `401 Unauthorised response code` and the following JSON response: ```json { "reqId": "edba5aca-d6d8-4e10-a55e-971cc3facb0b", "code": 401, "exception": { "response": { "statusCode": 401, "message": "Unauthorized. Invalid API key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "error": "Unauthorized" }, "status": 401, "message": "Unauthorized. Invalid API key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" }, "message": { "statusCode": 401, "message": "Unauthorized. Invalid API key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "error": "Unauthorized" } } ``` --- --- url: /changeslog.md --- # Changes log > Hover over any date to see the full timestamp in ISO 8601 format (`YYYY-MM-DDTHH:mm:ss.sssZ`) | Content | Update date | Effective date on UAT | Effective date on Production | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | | Document update
  - Export as Markdown for use with AI tools: add `.md` to any page URL to get that page as Markdown
  - [llms.txt](/llms.txt) (index) and [llms-full.txt](/llms-full.txt) (all docs in one file) are available on the [Markdown for AI](./ai-resources.md) page
  - Single-file integration guides: Transfer Wallet and Seamless Wallet + all Product Callbacks | 2026-12-01 | 2026-12-01 | 2026-12-01 | | Product update
  - [Jili](./api-reference.md#games-slot): New product version; `gameCode` values have changed (e.g. `jili_35_ols2`). The old game list will be cut off on 2026-12-03 13:00 (GMT+7); after that, old `gameCode` values will no longer be accepted in [/login](./seamless/login.md). Get the current codes from [/games](./seamless/listGames.md) and send the new `gameCode` in [/login](./seamless/login.md) | 2026-11-26 | 2026-11-26 | 2026-11-26 | | Document update
  - [Supported currency](./api-reference.md#supported-currency): Add `API` and `Report` ratio columns, add `BDT`, `MYR`
  - [Supported turnOver](./api-reference.md#supported-turnover) and [Language Lists](./api-reference.md#language-lists): Sort alphabetically | 2026-11-20 | 2026-11-20 | 2026-11-20 | | Transfer API update
  - [/betTransactionsV2](./transfer/queryBetRecords.md): `endTime - startTime` must not exceed 24 hours (HTTP 400 otherwise); `date` alone returns the whole UTC day
  - [/betTransactionsTransfer](./transfer/queryTransferBetRecords.md): `endTime - startTime` must not exceed 24 hours (HTTP 400 otherwise) | 2026-11-09 | 2026-11-09 | 2026-11-09 | | Product update
  - [Micro Gaming LiveCasino](./api-reference.md#live-casino): Add lobby game code `MGL_GRAND_LobbyAll` (send it as `gameCode` in [/login](./seamless/login.md) to open the MG Live lobby; bets placed from the lobby report the real table code as `gameCode`) | 2026-11-02 | 2026-11-02 | 2026-11-02 | | [Release product](./api-reference.md#product-lists)
  - [Hectic Play](./api-reference.md#games-slot) | 2026-10-06 | 2026-10-06 | 2026-10-06 | | Remove product
  - [Play'n Go](./api-reference.md#games-slot) | 2026-09-28 | 2026-09-28 | 2026-09-29 | | [Release product](./api-reference.md#product-lists)
  - [Peter & Sons](./api-reference.md#games-slot) | 2026-09-28 | 2026-09-28 | 2026-09-29 | | [Supported turnOver](./api-reference.md#supported-turnover) | 2026-09-01 | 2026-09-01 | 2026-09-01 | | [Release product](./api-reference.md#product-lists)
  - [Mancala Gaming](./api-reference.md#games-slot)
  - [Slotopia](./api-reference.md#games-slot) | 2026-08-20 | 2026-08-20 | 2026-08-20 | | Remove product
  - [Virtual Sportbook](./api-reference.md#sportbook) | 2026-07-10 | 2026-07-10 | 2026-07-10 | | [Release product](./api-reference.md#product-lists)
  - [Sunni Games](./api-reference.md#games-slot) | 2026-07-07 | 2026-07-07 | 2026-07-07 | | Product name update
  - [AGGAME](./api-reference.md#games-live-casino): PlayAce → Choice
  - [OFALIVE](./api-reference.md#games-live-casino): Ofa Live → MT Live | 2026-07-06 | 2026-07-06 | 2026-07-06 | | Product callback update
  - [Miniluck](./api-reference.md#games-slot): Add [/voidSettled callback](./productCallback/voidSettled.md) (Please visit: [Seamless-testing](https://seamlesstesting.ambsuperapi.com) about an example case) | 2026-06-18 | 2026-06-18 | 2026-06-23 | | [Release product](./api-reference.md#product-lists)
  - [Jimi Gaming](./api-reference.md#games-slot)
  - [One Power](./api-reference.md#games-slot) | 2026-06-18 | 2026-06-18 | 2026-06-23 | | [Release product](./api-reference.md#product-lists)
  - [BigTime Gaming](./api-reference.md#games-slot)
  - [Eazy Gaming](./api-reference.md#games-slot)
  - [1Up Spin](./api-reference.md#games-slot) | 2026-06-09 | 2026-06-09 | 2026-06-10 | | [API signature verification](./productCallback/signature.md) | 2026-04-29 | 2026-05-13 | 2026-05-19 | --- --- url: /ai-resources.md --- # Markdown for AI Download the documentation as Markdown and give it to your AI assistant (ChatGPT, Claude, Cursor, Copilot…) as context while you build your integration. ## Integration guides (one file per wallet type) Pick the file that matches your wallet type. Each file contains everything for that integration in one place: getting started, authentication, every endpoint, and the product/currency reference. | File | What's inside | | ---- | ------------- | | transfer-integration.md | Transfer APIs | | seamless-integration.md | Seamless APIs + all Product Callbacks | ::: tip Seamless Wallet: test your callbacks Before going live, we recommend going through [Seamless Testing](https://seamlesstesting.ambsuperapi.com). It shows example cases for the callback flows, so you can compare them with what your callback endpoint receives and returns. ::: ## Whole documentation | File | What's inside | | ---- | ------------- | | llms.txt | Index of all pages | | llms-full.txt | All pages in one file | | openapi.json | OpenAPI spec | ## A single page Add `.md` to the end of any page URL to get that page as Markdown, for example /seamless/login.md. --- --- url: /transfer/introduction.md --- ## Overview **Let's play** 1. First, Create a member/gambler on the product that you want in the above [Product List](../api-reference.md#product-lists)) 2. Deposit some credit to member for playing the game 3. Login and get a URL to play the game and turn into a millionire 4. Withdraw --- --- url: /transfer/getProducts.md --- ## Get Products `GET` ### Authorization Seamless uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` GET {{ API_URL }}/products ``` ### Content Type Type: `application/json` ### Response Description | Property | Type | Required | Description | | --------- | -------- | -------- | ----------------------------------------- | | `reqId` | string | Required | Unique reference for each request | | `code` | number | Required | Response status | | `message` | string | Required | Additional information on response status | | `data` | string\[] | Required | Query products data | > JSON response example: ```json { "reqId": "224aa43-bg44-6674-223h-d3235g56jfb3", "code": 0, "message": "Success", "data": [ "SPADE", "PRETTY", "CG", "MANNA", "JILI", ... ] } ``` --- --- url: /transfer/listGames.md --- ## List Games `GET` This api is use get game lists. **Use field `code` to login in field `gameCode`** ### Authorization Transfer uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` GET {{ API_URL }}/games?productId={{ productId }} ``` ### Content Type Type: `application/json` ### Parameter Description | Property | Type | Required | Description | | ----------- | ------ | -------- | --------------------------------------------------------------------------------------- | | `productId` | string | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists))) (Example : `SEXY`) | ### Response Description | Property | Type | Required | Description | | --------- | ---------------------- | -------- | -------------------------------------------------------- | | `reqId` | string | Required | Unique reference for each request | | `code` | number | Required | [Response status](errorMessageTransfer.md#error-message) | | `message` | string | Required | Additional information on response status | | `data` | [GameData](#game-data) | Required | Game list data | ### Game Data | Property | Type | Required | Description | | -------- | --------------- | -------- | ------------- | | `games` | [Game\[\]](#game) | Required | List of games | ### Game | Property | Type | Required | Description | | -------------- | --------------------------------- | -------- | -------------------------------------------- | | `name` | string | Required | Game name | | `category` | string | Required | Game category (use as filter in report page) | | `type` | string | Required | Game type | | `code` | string | Required | Game code (login parameter) | | `img` | string | Required | Image url | | `rank` | number | Required | Game index | | `providerCode` | string | Optional | Game Code of Provider | | `locale` | [Language Lists](#language-lists) | Optional | language of names | ### Language Lists | Property | Type | Required | Description | | -------- | ------ | -------- | ----------------- | | `TH` | string | Optional | Thai Game name | | `EN` | string | Optional | English Game name | | `CN` | string | Optional | Chinese Game name | > JSON response example: ```json { "reqId": "462e25a5-3233-40bb-849c-48178fa82035", "code": 0, "message": "Success", "data": { "games": [ { "name": "Pok Deng", "category": "LIVECASINO", "type": "POKDENG", "code": "MX-LIVE-018", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/SEXY/1749034837399_205368.png", "rank": 11, "locale": { "en": "Pok Deng", "th": "ป๊อกเด้ง", "cn": "泰国博丁" } } ] } } ``` --- --- url: /transfer/createmember.md --- ## Create Member `POST` This api is use for create member. ### Authorization Transfer uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` POST {{ API_URL }}/member ``` ### Content Type Type: `application/json` ### Parameter Description Create a Member also know as Gambler in whatever product | Property | Type | Required | Description | | ----------- | ------ | -------- | --------------------------------------------------------------------------------------- | | `username` | string | Required | Member username | | `productId` | string | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists))) (Example : `SEXY`) | ### Response Description | Property | Type | Required | Description | | --------- | --------------------------------------- | -------- | -------------------------------------------------------- | | `reqId` | string | Required | Unique reference for each request | | `code` | number | Required | [Response status](errorMessageTransfer.md#error-message) | | `message` | string | Required | Additional information on response status | | `data` | [CreateMemberData](#create-member-data) | Required | Member data | ### Create Member Data | Property | Type | Required | Description | | ---------- | ------ | -------- | -------------------------------------------------------- | | `username` | string | Required | Username | | `currency` | string | Required | ISO 4217 currency code | | `status` | string | Required | [Response status](errorMessageTransfer.md#error-message) | > Request Body ```json { "username": "test00001", "productId": "PRETTY" } ``` > JSON response example: ```json { "reqId": "f5987096-43bc-4b39-b589-5ee470c11eb8", "code": 0, "message": "Success", "data": { "username": "test00001", "currency": "THB", "status": "SUCCESS" } } ``` --- --- url: /transfer/getBalance.md --- ## Get Balance `GET` This api is use for get money of member. ### Authorization Transfer uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` GET {{ API_URL }}/balance?username={{ username }}&productId={{ productId }} ``` ### Content Type Type: `application/json` ### Parameter Description | Property | Type | Required | Description | | ----------- | ------ | -------- | --------------------------------------------------------------------------------------- | | `username` | string | Required | Member username | | `productId` | string | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists))) (Example : `SEXY`) | ### Response Description | Property | Type | Required | Description | | --------- | ----------------------------------- | -------- | -------------------------------------------------------- | | `reqId` | string | Required | Unique reference for each request | | `code` | number | Required | [Response status](errorMessageTransfer.md#error-message) | | `message` | string | Required | Additional information on response status | | `data` | [GetBalanceData](#get-balance-data) | Required | Get balance data | ### Get Balance Data | Property | Type | Required | Description | | ---------- | ------ | -------- | -------------------------------------------------------- | | `username` | string | Required | Username | | `balance` | string | Required | Current balance on each productId | | `status` | string | Required | [Response status](errorMessageTransfer.md#error-message) | > JSON response example: ```json { "reqId": "4a597d2c-1ac8-413b-aaa7-a673b4939494", "code": 0, "message": "Success", "data": { "balance": "10000", "status": "SUCCESS", "username": "test00001" } } ``` --- --- url: /transfer/deposit.md --- ## Deposit `POST` This api is use for deposit money of member. ### Authorization Transfer uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` POST {{ API_URL }}/deposit ``` ### Content Type Type: `application/json` ### Parameter Description | Property | Type | Required | Description | | ---------------- | ------ | -------- | ------------------------------------------------------------------- | | `username` | string | Required | Member username | | `amount` | string | Required | Amount to deposit (Decimal 2 digits) | | `transactionRef` | string | Required | Unique transaction ref | | `productId` | string | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists))) (Example : `SEXY`) | ### Response Description | Property | Type | Required | Description | | --------- | ---------------------------- | -------- | ----------------------------------------- | | `reqId` | string | Required | Unique reference for each request | | `code` | number | Required | [Response status](errorMessageTransfer.md#error-message) | | `message` | string | Required | Additional information on response status | | `data` | [DepositData](#deposit-data) | Required | Deposit data | ### Deposit Data | Property | Type | Required | Description | | --------------- | ------ | -------- | ----------------------------------------------------------- | | `username` | string | Required | Username | | `amount` | string | Required | Deposit amount (Decimal 2 digits) | | `beforeBalance` | string | Required | Balance on each productId before deposit (Decimal 2 digits) | | `balance` | string | Required | Balance on each productId after deposit (Decimal 2 digits) | | `txId` | string | Required | Unique transaction ref drawn from the request | | `status` | string | Required | [Response status](errorMessageTransfer.md#error-message) | > Request Body ```json { "username": "test00001", "amount": "10.10", "transactionRef": "test00001lhhh1629781123", "productId": "PRETTY" } ``` > JSON response example: ```json { "reqId": "f09ac2e9-29ba-4ea2-a702-4b557b1247ad", "code": 0, "message": "Success", "data": { "status": "SUCCESS", "amount": "10.1", "balance": "10010.1", "txId": "test00001lhhh1629781123", "username": "test00001", "beforeBalance": "10000.00" } } ``` --- --- url: /transfer/withdraw.md --- ## Withdraw `POST` This api is use for withdraw money of member. ### Authorization Transfer uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` POST {{ API_URL }}/withdraw ``` ### Content Type Type: `application/json` ### Parameter Description | Property | Type | Required | Description | | ---------------- | ------ | -------- | --------------------------------------------------------------------------------------- | | `username` | string | Required | Member username | | `amount` | string | Required | Amount to deposit (Decimal 2 digits) | | `transactionRef` | string | Required | Unique transaction ref | | `productId` | string | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists))) (Example : `SEXY`) | ### Response Description | Property | Type | Required | Description | | --------- | ------------------------------ | -------- | -------------------------------------------------------- | | `reqId` | string | Required | Unique reference for each request | | `code` | number | Required | [Response status](errorMessageTransfer.md#error-message) | | `message` | string | Required | Additional information on response status | | `data` | [WithdrawData](#withdraw-data) | Required | Withdraw data | ### Withdraw Data | Property | Type | Required | Description | | --------------- | ------ | -------- | -------------------------------------------------------------- | | `username` | string | Required | Username | | `amount` | string | Required | Withdrawal amount (Decimal 2 digits) | | `beforeBalance` | string | Required | Balance on each productId before withdrawal (Decimal 2 digits) | | `balance` | string | Required | Balance on each productId after withdrawal (Decimal 2 digits) | | `txId` | string | Required | Unique transaction ref drawn from the request | | `status` | string | Required | [Response status](errorMessageTransfer.md#error-message) | > Request Body ```json { "username": "test00001", "amount": "100.25", "transactionRef": "test00001rxqd1629781421", "productId": "SEXY" } ``` > JSON response example: ```json { "reqId": "c16510ed-6462-414a-9cc5-f380848723a0", "code": 0, "message": "Success", "data": { "status": "SUCCESS", "amount": "100.25", "balance": "10010.1", "txId": "test00001rxqd1629781421", "username": "test00001", "beforeBalance": "9909.85" } } ``` --- --- url: /transfer/verify.md --- ## Verify Deposit Withdraw `POST` This api is verify transaction of deposit or withdraw to successfully or fail. ### Authorization Transfer uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` POST {{ API_URL }}/verifyDepositWithdraw ``` ### Content Type Type: `application/json` ### Parameter Description | Property | Type | Required | Description | | ---------------- | ------ | -------- | --------------------------------------------------------------------------------------- | | `username` | string | Required | Member username | | `transactionRef` | string | Required | Unique transaction ref | | `productId` | string | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists))) (Example : `SEXY`) | | `type` | string | Required | Either DEPOSIT or WITHDRAW | ### Response Description | Property | Type | Required | Description | | --------- | ---------------------------------------------------------- | -------- | -------------------------------------------------------- | | `reqId` | string | Required | Unique reference for each request | | `code` | number | Required | [Response status](errorMessageTransfer.md#error-message) | | `message` | string | Required | Additional information on response status | | `data` | [VerifyDepositWithdrawData](#verify-deposit-withdraw-data) | Required | Verify deposit/withdraw data | ### Verify Deposit Withdraw Data | Property | Type | Required | Description | | ---------------- | ------- | -------- | --------------------------------------------------------------------------------------------------------------------------- | | `success` | boolean | Required | Indicate whether the transaction was successful or not
`true`: transaction has success
`false`: Transaction has fail | | `username` | string | Required | Username | | `productId` | string | Required | Product associated with the transaction | | `currency` | string | Required | Currency associated with the transaction | | `transactionRef` | string | Required | Unique transaction ref | | `amount` | string | Required | Deposit or withdrawal amount | | `beforeBalance` | string | Required | Balance on before deposit or withdrawal | | `afterBalance` | string | Required | Balance on after deposit or withdrawal | > Request Body ```json { "username": "test00001", "transactionRef": "test00001rxqd1629781421", "productId": "SEXY", "type": "DEPOSIT" } ``` > JSON response example (Success): ```json { "reqId": "c16510ed-6462-414a-9cc5-f380848723a0", "code": 0, "message": "Success", "data": { "success": true, "username": "test00001", "productId": "SEXY", "currency": "THB", "transactionRef": "test00001rxqd1629781421", "amount": "100.00", "beforeBalance": "0.00", "afterBalance": "100.00" } } ``` --- --- url: /transfer/login.md --- ## Login `POST` This api is use for enter to the game. ### Authorization Transfer uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` POST {{ API_URL }}/logIn ``` ### Content Type Type: `application/json` ### Parameter Description | Property | Type | Required | Description | | --------------- | -------------------------------------------------- | -------- | ----------------------------------------------------------------------------------------------- | | `username` | string | Required | Member username | | `productId` | string | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists)) (Example : `SEXY`) | | `gameCode` | string | Required | Game code of product (Example : BAC) | | `isMobileLogin` | boolean | Required | Mobile Mode (Example : true) | | `language` | string | Optional | Language Code default `th` [Language List](../api-reference.html#language-lists) (Example : th) | | `betLimit` | [BetLimits](#custom-bet-limit-config-for-transfer) | Optional | Player's bet limits | | `limit` | number [See more](#get-betlimits-get) | Optional | Player common bet limit format | | `callbackUrl` | string | Optional | Exit url, url that you need to redirect if player quit the game from Game GUI. | ### Response Description | Property | Type | Required | Description | | --------- | ------------------------ | -------- | -------------------------------------------------------- | | `reqId` | string | Required | Unique reference for each request | | `code` | number | Required | [Response status](errorMessageTransfer.md#error-message) | | `message` | string | Required | Additional information on response status | | `data` | [LoginData](#login-data) | Required | Login data | ### Login Data | Property | Type | Required | Description | | ---------- | ------ | -------- | ----------- | | `username` | string | Required | Username | | `url` | string | Required | Game url | > Request Body ```json { "username": "test00001", "productId": "SEXY", "gameCode": "MX-LIVE-001", "isMobileLogin": false, "callbackUrl": "https://demo.com" } ``` > JSON response example: ```json { "reqId": "7c4d1ed5-b036-4bcf-a534-9236970678c8", "code": 0, "message": "Success", "data": { "url": "https://ttt.onlinegames22.com/player/login/apiLogin0?userId=000166xgz&agentId=superapitest&tokenId=yMrZlUH4vLLItmM10dZARVAwAkRWqBIIpMxZXnUGXwswnKRM-Zw_X19NBuSEfmYq&isMobileLogin=false&isShowSymbol=true¤cySymbol=&isApp=false&gameCode=MX-LIVE-001&platform=SEXYBCRT&gameType=LIVE&isLaunchGame=true&language=&isNewGameHall=false", "username": "test00001" } } ``` --- --- url: /transfer/getBetLimits.md --- ## Get BetLimits `GET` `GET` `Optional` Get bet limit setting symbol
### Authorization Transfer uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` GET {{ API_URL }}/betLimitsV2?productId={{ productId }}&username={{ username }}¤cy={{ currency }} ``` ### Content Type Type: `application/json` ### Parameter Description | Property | Type | Required | Description | | ----------- | ------ | -------- | --------------------------------------------------------------------------------------- | | `username` | string | Required | Member username | | `productId` | string | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists))) (Example : `SEXY`) | | `currency` | string | Required | ISO 4217 currency code | ### Response Description | Property | Type | Required | Description | | --------- | ----------------------------------- | -------- | -------------------------------------------------------- | | `reqId` | string | Required | Unique reference for each request | | `code` | number | Required | [Response status](errorMessageTransfer.md#error-message) | | `message` | string | Required | Additional information on response status | | `data` | [BetLimits\[\]](#bet-limits-response) | Required | List of bet limits | ### Bet limits response | Property | Type | Required | Description | | ----------- | -------------------------- | -------- | ---------------------------------- | | `productId` | string | Required | Product ID (Ex. PRETTY, SEXY, etc) | | `BetLimit` | [LimitData\[\]](#limit-data) | Required | Either betLimit or winLimit | ### Limit data | Property | Type | Required | Description | | -------- | ------ | -------- | ------------------------------------------------------------------------------- | | `limit` | number | Required | Limit parameter, use this value to set in `limit` parameter when call `/logIn`. | | `Max` | number | Required | Maximum wager for player. | | `Min` | number | Required | Minimum wager for player. | > JSON response example: ```json { "reqId": "395e9c4d-be1f-403d-b58a-e3e1ce4b7250", "code": 0, "message": "Success", "data": [ { "productId": "SEXY", "BetLimit": [ { "limit": 1, "Min": 5, "Max": 2000 }, { "limit": 2, "Min": 50, "Max": 5000 }, { "limit": 3, "Min": 100, "Max": 20000 } ] } ] } ``` --- --- url: /transfer/customBetLimit.md --- ## Custom bet-limit config `Optional`: If you need to custom bet-limit (mostly for Sport-type products), please following this setup parameters. Due to the complexity of setup parameters in some products, we have to separates the custom parameters for your login's parameters request. The following products supports these custom setup: | ProductID | Product name | | --------- | ------------ | | `MSPORT` | MSport | The description and example for each products: ### Product: MSPORT ```json { "betLimit": [ { "sport_type": 0, "market_type": 0, "min_bet": 5, "max_bet": 500, "max_bet_per_match": 100000 } ] } ``` ### Request parameter description | Property | Type | Required | Description | | ------------------- | ------ | -------- | ------------------------------------------------------------------------ | | `sport_type` | number | Required | [Sport type code.](#sport-type) | | `market_type` | number | Required | [Market type code.](#market-type) | | `min_bet` | number | Required | Minimum bet amount daily. (Product Msport can't to be set) | | `max_bet` | number | Required | Maximum bet amount daily. | | `max_bet_per_match` | number | Required | Maximum bet amount per match. | ### Sport Type | SportType | Description | | --------- | ----------- | | `0` | ALL | ### Market Type | SportTypeId | Description | | ----------- | ----------- | | `0` | ALL | *** --- --- url: /transfer/queryOutstanding.md --- ## Query Outstanding `GET` This api is check transactions to be outstanding. ### Authorization Transfer uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` GET {{ API_URL }}/outstanding?username={{ username }} ``` ### Content Type Type: `application/json` ### Parameter Description | Property | Type | Required | Description | | ---------- | ------ | -------- | --------------- | | `username` | string | Required | Member username | ### Response Description | Property | Type | Required | Description | | --------- | ----------------------------- | -------- | -------------------------------------------------------- | | `reqId` | string | Required | Unique reference for each request | | `code` | number | Required | [Response status](errorMessageTransfer.md#error-message) | | `message` | string | Required | Additional information on response status | | `data` | [Outstanding\[\]](#outstanding) | Required | List of current outstanding | ### Outstanding | Property | Type | Required | Description | | ------------- | ---------------------------------------- | -------- | ----------------------------------------------------------------------------------------- | | `productId` | string | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists))) (Example : `SLOTXO`) | | `outstanding` | number | Required | Unfinished bet amount | | `txns` | [SportTransaction\[\]](#sport-transaction) | Optional | Pending sport transactions | ### Sport Transaction | Property | Type | Required | Description | | --------- | ---------------------------------------------- | -------- | --------------------------------------------- | | `id` | string | Required | Transacion ID (Example : `PAR5659622569`) | | `stake` | string | Required | Total stake of the ticket (Example : `10.00`) | | `odds` | number | Required | Total odds of the ticket (Example : `4.515`) | | `subTxns` | [SportSubTransaction\[\]](#sport-subtransaction) | Required | Sub transactions of the ticket | ### Sport Subtransaction | Property | Type | Required | Description | | --------------- | ------ | -------- | ------------------------------------------------------------ | | `id` | string | Required | Transacion ID (Example : `182719729`) | | `odds` | number | Required | Transacion odds (Example : `1.71`) | | `side` | string | Required | [Choosen side](#sport-side) | | `matchDateTime` | string | Required | Match start time (Example : `2022-09-28T23:00:00.000+00:00`) | | `leaguename` | string | Required | League name (Example : `FINLAND VEIKKAUSLIIGA (PLAY OFF)`) | | `hometeam` | string | Required | Home team name (Example : `Inter Turku`) | | `awayteam` | string | Required | Away team name (Example : `Haka`) | | `result` | string | Required | [Match result](#sport-result) | | `score` | string | Required | Match score (Example : `'','0-0'`) | ### Sport Side | Value | Description | | ----- | --------------- | | 1 | Home/Over/Odd | | 2 | Away/Under/Even | | X | Draw | ### Sport Result | Value | | -------------- | | Match not over | | Win all | | Lost all | | Win half | | Lost half | | Draw | | Unknown | > JSON response example: ```json { "reqId": "a784a34b-1e67-4102-bf66-deb068f6dd02", "code": 0, "message": "Success", "data": [ { "productId": "SLOTXO", "outstanding": 3000 } ] } ``` --- --- url: /transfer/queryBetRecords.md --- ## Query Bet Records `GET` ### Authorization Transfer uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` GET {{ API_URL }}/betTransactionsV2?productId={{ productId }}&date={{ date }}&nextId={{ nextId }} ``` **Note:** there's a high chance of request timeout when using this variant. If there's a request timeout, please consider querying by range instead.
`date` returns the whole day (00:00:00.000 – 23:59:59.999). A `date` without a timezone offset is treated as UTC. or ``` GET {{ API_URL }}/betTransactionsV2?productId={{ productId }}&startTime={{ startTime }}&endTime={{ endTime }}&nextId={{ nextId }} ``` **Note:** query range should not be greater than 1 hour. If there's a request timeout, please reduce query range.
**Limit:** `endTime - startTime` must not exceed 24 hours. A wider range returns HTTP 400 ([Time range error](#time-range-error)).
When `startTime` and `endTime` are sent, they are always used, even if `date` is also sent. ### Parameter Description | Property | Type | Required | Description | | ----------- | ------ | -------- | --------------------------------------------------------------------------------------------------------------- | | `productId` | string | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists))) (Example : `SEXY`) | | `date` | string | Optional | Date in format yyyy-MM-dd. Returns the whole day (UTC). Used only when `startTime` and `endTime` are not sent | | `startTime` | string | Optional | Date-time in ISO 8601 format eg 2013-07-16T19:23:51Z. Must be sent with `endTime` | | `endTime` | string | Optional | Date-time in ISO 8601 format eg 2013-07-16T19:23:51Z. Must be sent with `startTime`, at most 24 hours after it | | `nextId` | string | Optional | Taken from previous chunk response, indicating the start of requesting chunk | ### Response Description | Property | Type | Required | Description | | --------- | ------------------------------------ | -------- | -------------------------------------------------------- | | `reqId` | string | Required | Unique reference for each request | | `code` | number | Required | [Response status](errorMessageTransfer.md#error-message) | | `message` | string | Required | Additional information on response status | | `data` | [QueryBetDataV2](#query-bet-data-v2) | Required | Query bet data | ### Query Bet Data | Property | Type | Required | Description | | -------- | ------------- | -------- | --------------------------------------------------------------------------------------- | | `nextId` | string | Optional | Id indicating the start of next chunk. (If not present it means there's no next chunk.) | | `txns` | [Txn\[\]](#txn) | Required | Transactions list. | *** ### Txn | Property | Type | Required | Description | | ---------------- | ------ | -------- | ------------------------------------------- | | `id` | string | Required | Transaction id | | `betId` | string | Required | Unique bet id on each user | | `username` | string | Required | Username | | `currency` | string | Required | ISO 4217 currency code | | `accountingDate` | string | Required | Settlement time | | `updatedDate` | string | Required | Latest update time | | `stake` | number | Required | Stake amount | | `payout` | number | Required | Payout amount (including stake) | | `productId` | string | Required | Product id | | `gameCode` | string | Required | Game code | | `gameName` | string | Required | Game name | | `roundId` | string | Required | Round id | | `betStatus` | string | Required | Bet status (OPEN, SETTLED, UNSETTLED, VOID) | | `payoutStatus` | string | Required | Payout status (LOSE, WIN, DRAW, UNKNOWN) | | `commission` | number | Required | Commission fee | > JSON response example: ```json { "reqId": "afd71177-960f-4669-90ed-8a34eed3d7d3", "code": 0, "message": "Success", "data": { "nextId": "613af94ce2d30c10be22dc6b", "txns": [ { "id": "613af94ce2d30c10be22dc06", "betId": "21352670", "username": "tor0002", "currency": "THB", "accountingDate": "2021-09-10T06:20:06.000+00:00", "updatedDate": "2021-09-10T06:20:06.000+00:00", "stake": 40, "payout": 30, "productId": "SIMPLEPLAY", "gameCode": "EG-SLOT-A044", "gameName": "Bomber Squad", "roundId": "4500052193296", "betStatus": "SETTLED", "payoutStatus": "LOSE", "commission": 0 }, { "id": "613af94ce2d30c10be22dc34", "betId": "21352676", "username": "tor0002", "currency": "THB", "accountingDate": "2021-09-10T06:20:20.000+00:00", "updatedDate": "2021-09-10T06:20:20.000+00:00", "stake": 40, "payout": 15, "productId": "SIMPLEPLAY", "gameCode": "EG-SLOT-A044", "gameName": "Bomber Squad", "roundId": "4500085747728", "betStatus": "SETTLED", "payoutStatus": "LOSE", "commission": 0 } ] } } ``` ### Time range error If `endTime - startTime` is more than 24 hours, you will receive HTTP `400` and the following JSON response: ```json { "reqId": "edba5aca-d6d8-4e10-a55e-971cc3facb0b", "code": 400, "exception": { "response": { "statusCode": 400, "message": "Invalid time range: endTime - startTime must not exceed 24 hours", "error": "Bad Request" }, "status": 400, "message": "Invalid time range: endTime - startTime must not exceed 24 hours" }, "message": { "statusCode": 400, "message": "Invalid time range: endTime - startTime must not exceed 24 hours", "error": "Bad Request" }, "timestamp": 1794197100000, "path": "/betTransactionsV2?productId=SEXY&startTime=2026-11-08T00:00:00Z&endTime=2026-11-09T01:00:00Z" } ``` --- --- url: /transfer/queryTransferBetRecords.md --- ## Query Transfer Bet-records `GET` ### Authorization Transfer uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` GET {{ API_URL }}/betTransactionsTransfer?productId={{ productId }}&startTime={{ startTime }}&endTime={{ endTime }} ``` **Note:** This API support only transfer-wallet integration and data will be available after November 21, 2024 05:00:00.000 UTC
**Limit:** `endTime - startTime` must not exceed 24 hours. A wider range returns HTTP 400 ([Time range error](#time-range-error)).
Due to issue about fetch huge data take a long time, so we implemented the new API to resolve the problem. ### Parameter Description | Property | Type | Required | Description | | ----------- | ------ | -------- | --------------------------------------------------------------------------------------- | | `productId` | string | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists))) (Example : `SEXY`) | | `startTime` | string | Required | Date-time in ISO 8601 format eg 2013-07-16T19:23:51Z | | `endTime` | string | Required | Date-time in ISO 8601 format eg 2013-07-16T19:23:51Z. At most 24 hours after `startTime` | ### Response Description | Property | Type | Required | Description | | --------- | ------------------------------------ | -------- | -------------------------------------------------------- | | `reqId` | string | Required | Unique reference for each request | | `code` | number | Required | [Response status](errorMessageTransfer.md#error-message) | | `message` | string | Required | Additional information on response status | | `data` | [QueryBetDataV2](#query-bet-data-v2) | Required | Query bet data | ### Query Bet Data | Property | Type | Required | Description | | -------- | ------------- | -------- | ----------------- | | `txns` | [Txn\[\]](#txn) | Required | Transactions list | *** ### Txn | Property | Type | Required | Description | | ---------------- | ------ | -------- | ------------------------------------------- | | `id` | string | Required | Transaction id | | `betId` | string | Required | Unique bet id on each user | | `username` | string | Required | Username | | `currency` | string | Required | ISO 4217 currency code | | `accountingDate` | string | Required | Settlement time | | `updatedDate` | string | Required | Latest update time | | `stake` | number | Required | Stake amount | | `payout` | number | Required | Payout amount (including stake) | | `productId` | string | Required | Product id | | `gameCode` | string | Required | Game code | | `gameName` | string | Required | Game name | | `roundId` | string | Required | Round id | | `betStatus` | string | Required | Bet status (OPEN, SETTLED, UNSETTLED, VOID) | | `payoutStatus` | string | Required | Payout status (LOSE, WIN, DRAW, UNKNOWN) | | `commission` | number | Required | Commission fee | > JSON response example: ```json { "reqId": "afd71177-960f-4669-90ed-8a34eed3d7d3", "code": 0, "message": "Success", "data": { "txns": [ { "id": "613af94ce2d30c10be22dc06", "betId": "21352670", "username": "tor0002", "currency": "THB", "accountingDate": "2021-09-10T06:20:06.000+00:00", "updatedDate": "2021-09-10T06:20:06.000+00:00", "stake": 40, "payout": 30, "productId": "SIMPLEPLAY", "gameCode": "EG-SLOT-A044", "gameName": "Bomber Squad", "roundId": "4500052193296", "betStatus": "SETTLED", "payoutStatus": "LOSE", "commission": 0 }, { "id": "613af94ce2d30c10be22dc34", "betId": "21352676", "username": "tor0002", "currency": "THB", "accountingDate": "2021-09-10T06:20:20.000+00:00", "updatedDate": "2021-09-10T06:20:20.000+00:00", "stake": 40, "payout": 15, "productId": "SIMPLEPLAY", "gameCode": "EG-SLOT-A044", "gameName": "Bomber Squad", "roundId": "4500085747728", "betStatus": "SETTLED", "payoutStatus": "LOSE", "commission": 0 } ] } } ``` ### Time range error If `endTime - startTime` is more than 24 hours, you will receive HTTP `400` and the following JSON response: ```json { "reqId": "edba5aca-d6d8-4e10-a55e-971cc3facb0b", "code": 400, "exception": { "response": { "statusCode": 400, "message": "Invalid time range: endTime - startTime must not exceed 24 hours", "error": "Bad Request" }, "status": 400, "message": "Invalid time range: endTime - startTime must not exceed 24 hours" }, "message": { "statusCode": 400, "message": "Invalid time range: endTime - startTime must not exceed 24 hours", "error": "Bad Request" }, "timestamp": 1794197100000, "path": "/betTransactionsTransfer?productId=PGSOFT&startTime=2026-11-08T00:00:00Z&endTime=2026-11-09T01:00:00Z" } ``` --- --- url: /transfer/queryReplay.md --- ## Query Replay `GET` This api is check transactions to be outstanding. ### Authorization Transfer uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` GET {{ API_URL }}/betTransactionReplay?productId={{ productId }}&username={{ username }}&betId={{ betId }} ``` ### Content Type Type: `application/json` ### Parameter Description | Property | Type | Required | Description | | ----------- | ------ | -------- | --------------------------------------------------------------------------------------- | | `productId` | string | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists))) (Example : `SEXY`) | | `betId` | string | Required | Bet ID | | `username` | string | Required | Member username | ### Response Description | Property | Type | Required | Description | | --------- | ---------------------------- | -------- | -------------------------------------------------------- | | `reqId` | string | Required | Unique reference for each request | | `code` | number | Required | [Response status](errorMessageTransfer.md#error-message) | | `message` | string | Required | Additional information on response status | | `data` | [QueryReplay](#query-replay) | Required | Query replay data | ### Query Replay | Property | Type | Required | Description | | -------- | ------ | -------- | ----------- | | `url` | string | Required | Replay url | ### Supported products | ProductId | Description | | --------- | ------------ | | `SPADE` | Spade gaming | > JSON response example: ```json { "reqId": "7ba79e9c-ebaf-4f06-bd73-d8648ec7f8d3", "code": 0, "message": "Success", "data": { "url": "https://ttt.worldcdn-mega.com/page/wallet/replay.jsp?platform=SEXYBCRT&gameType=LIVE&roundId=Mexico-705-GA25440063&path=https%3A%2F%2Fbfsiz6.bikimex.net%2Ftoken%2Fresult%2Freplay.jsp%3Ftoken%3D4i9oFD7dThHHWUNgOxt4BdyvpOsmfZg3vdQmJ0yvDxAYJsQHk%252BABwgJF1rezSA6dnjOsNoqMf9LA3G%252FEMkXUsWQmedAoq7iLO%252F1yrsQbTd%252Fntj4j8ZM2Sk8CHB0u8ME4sHewbWzt5C4D281OlohjBw%253D%253D%26lang%3Den%26reverseBPColor%3Dfalse" } } ``` --- --- url: /transfer/setMemberPassword.md --- ## Set Member Password `POST` ### Authorization Transfer uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` POST {{ API_URL }}/setPassword ``` ### Content Type Type: `application/json` ### Parameter Description | Property | Type | Required | Description | | | ----------- | ------ | -------- | ------------------------ | ------------- | | `username` | string | Required | Member username | | | `productId` | string | Required | Product ID of **SLOTXO** | `Slotxo only` | | `password` | string | Required | password | | ### Response Description | Property | Type | Required | Description | | --------- | ------------------------------------- | -------- | ----------------------------------------- | | `reqId` | string | Required | Unique reference for each request | | `code` | number | Required | Response status | | `message` | string | Required | Additional information on response status | | `data` | [SetPasswordData](#set-password-data) | Required | Set password data | ### Set Password Data | Property | Type | Required | Description | | --------------------- | ------ | -------- | ------------------ | | `applicationUsername` | string | Required | App login username | > Request Body ```json { "username": "u12345", "productId": "SLOTXO", "password": "testp1234" } ``` > JSON response example: ```json { "reqId": "0ffe1434-c931-4ea8-a430-c7fac8bf5a96", "code": 0, "message": "Success", "data": { "applicationUsername": "TFPF.000ful499" } } ``` --- --- url: /transfer/getMemberAlias.md --- ## Get Member Alias `GET` ### Authorization Transfer uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` GET {{ API_URL }}/member/{{ username }}/alias?productId={{ productId }} ``` ### Content Type Type: `application/json` ### Parameter Description | Property | Type | Required | Description | | | ----------- | ------ | -------- | ------------------------ | ------------- | | `username` | string | Required | Member username | | | `productId` | string | Required | Product ID of **SLOTXO** | `Slotxo only` | ### Response Description | Property | Type | Required | Description | | --------- | --------------------------- | -------- | -------------------------------------------------------- | | `reqId` | string | Required | Unique reference for each request | | `code` | number | Required | [Response status](errorMessageTransfer.md#error-message) | | `message` | string | Required | Additional information on response status | | `data` | [GetAlias](#get-alias-data) | Required | Get alias data | ### Get Alias Data | Property | Type | Required | Description | | ------------- | ------ | -------- | ------------------ | | `memberAlias` | string | Required | App login username | > JSON response example: ```json { "reqId": "44b308ec-4235-4c47-82e6-8d370dbf1fc9", "code": 0, "message": "Success", "data": { "memberAlias": "TFPF.000ful499" } } ``` --- --- url: /transfer/freegame.md --- ## Freegame `Optional` This APIs use give a freegame to player under operator.
**Note:** The operator must take full responsibility for this bet themselves.
### Authorization Transfer uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` POST {{ API_URL }}/free-game ``` ### Supported products | Product ID | Product Name | | ---------- | ------------ | | `PGSOFT` | PG Soft | ### Content Type Type: `application/json` ### Request parameter description | Property | Type | Required | Description | | ---------------- | ------ | -------- | ----------------------------------------------- | | `player_name` | string | Required | Player username | | `free_game_name` | string | Required | Freegame name | | `expired_date` | int | Required | number of expire date for freegame unit is hour | | `bet_amount` | int | Required | amount of freegame | | `game_count` | int | Required | count of freegame | | `game_ids` | string | Required | gameid of freegame | | `productId` | string | Required | Product ID (Example: `PGSOFT`) | ### Response parameter description | Property | Type | Required | Description | | --------- | ------ | -------- | ---------------------------------------------------------- | | `reqId` | string | Required | Request ID for each request. | | `code` | number | Required | Code status
`0`: success
`1`: failed. | | `message` | string | Required | Message description | | `data` | object | Required | An array of transaction data description (See more below). | ### Response `data` parameter description | Property | Type | Required | Description | | ------------ | ------ | -------- | ------------------------ | | `freeGameId` | number | Required | freegameId from provider | > JSON example request: ```json { "player_name": "foobar", "free_game_name": "happy day", "expired_date": 24, "game_count": 30, "bet_amount": 100, "game_ids": "87", "productId": "PGSOFT" } ``` > JSON example response: ```json { "reqId": "05e287a6-00a9-4558-9bb2-2e422494ef22", "code": 0, "message": "Success", "data": { "freeGameId": 888 } } ``` --- --- url: /transfer/errorMessageTransfer.md --- ## Error message transfer ### Response Description | Property | Type | Required | Description | | --------- | ------------------------------ | -------- | ----------------------------------------- | | `reqId` | string | Required | Unique reference for each request | | `code` | number | Required | Response status | | `message` | string | Required | Additional information on response status | | `data` | [ErrorMessage](#error-message) | Required | Error message | ### Error message | Code | Response status | | ---- | -------------------------------------------------------------------------------- | | 0 | Success | | 10 | Unauthorized | | 12 | This user is reserved as a special username for system, please choose other name | | 13 | Create user failed (Often an error from the provider API) | | 20 | Invalid request payload | | 21 | Require sessionToken | | 22 | Invalid betLimit | | 23 | Invalid betLimit size | | 40 | Not found | | 800 | Error from cache, please wait before try again | | 900 | Upstream error | | 901 | Request product error | | 910 | Downstream error | | 950 | Http request error | | 960 | Error decoding | | 403 | Game code did not support | | 413 | SessionToken size should not exceed 20 characters | | 1000 | Error, please try again later | | 1001 | Invalid account setting, please contact admin | | 1002 | Currency did not support for this operator | | 2001 | Create with duplicate username, please try other username | | 3000 | Get Balance failed | | 4000 | Deposit Failed | | 4001 | Transaction has duplicate | | 4002 | Deposit Invalid Amount | | 5003 | Not enough credit | | 5000 | Withdraw Failed | | 5001 | Transaction has duplicate | | 5002 | Withdraw Invalid Amount | | 5004 | Transaction not found | | 9001 | Invalid productID | | 9002 | Member not found | | 9004 | Unauthorized ProductID | --- --- url: /transfer/getAgentCredit.md --- ## Get Agent Credit `GET` ### Authorization Seamless uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` GET {{ API_URL }}/getAgentCredit ``` ### Response Description | Property | Type | Required | Description | | --------- | ------------------------------- | -------- | ----------------------------------------- | | `reqId` | string | Required | Unique reference for each request | | `code` | number | Required | Response status | | `message` | string | Required | Additional information on response status | | `data` | [GetAgentCredit](#agent-credit) | Required | Agent credit data | ### Agent Credit | Property | Type | Required | Description | | ---------- | ------ | -------- | ------------- | | `currency` | string | Required | Currency | | `credit` | number | Required | Credit Amount | | `type` | string | Required | Wallet Type | > JSON response example: ```json { "reqId": "7bagg23e9c-ebaf-4f06-bd73-d8a23a221d3", "code": 0, "message": "Success", "data": { "currency": "THB", "credit": 10000.31, "type": "transfer" } } ``` --- --- url: /seamless/introduction.md --- **Let's play** 1. First, Create a member/gambler on the product that you want in the above [Product List](../api-reference.md#product-lists)) 2. Login and get a URL to play the game and turn into a millionire --- --- url: /seamless/getProducts.md --- ## Get Products `GET` ### Authorization Seamless uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` GET {{ API_URL }}/seamless/products ``` ### Content Type Type: `application/json` ### Response Description | Property | Type | Required | Description | | --------- | -------- | -------- | ----------------------------------------- | | `reqId` | string | Required | Unique reference for each request | | `code` | number | Required | Response status | | `message` | string | Required | Additional information on response status | | `data` | string\[] | Required | Query products data | > JSON response example: ```json { "reqId": "4aad4623-a7ff-4757-828b-d396b84f7bb5", "code": 0, "message": "Success", "data": [ "SPADE", "PRETTY", "CG", "MANNA", "JILI", ... ] } ``` --- --- url: /seamless/listGames.md --- ## List Games `GET` This api is use for get game lists. **Please use field `code` to login in field `gameCode`** ### Authorization Seamless uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` GET {{ API_URL }}/seamless/games?productId={{ productId }} ``` ### Content Type Type: `application/json` ### Parameter Description | Property | Type | Required | Description | | ----------- | ------ | -------- | --------------------------------------------------------------------------------------- | | `productId` | string | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists))) (Example : `SEXY`) | ### Response Description | Property | Type | Required | Description | | --------- | ----------------------------- | -------- | ----------------------------------------- | | `reqId` | string | Required | Unique reference for each request | | `code` | number | Required | Response status | | `message` | string | Required | Additional information on response status | | `data` | [GameData](#query-games-data) | Required | Query games data | ### Query Games Data | Property | Type | Required | Description | | -------------- | --------------------------------- | -------- | --------------------- | | `name` | string | Optional | Game Name | | `category` | string | Required | Game Category | | `type` | string | Required | Game Type | | `code` | string | Required | Game Id | | `img` | string | Required | Game Image | | `rank` | number | Required | Rank of game | | `providerCode` | string | Optional | Game Code of Provider | | `locale` | [Language Lists](#language-lists) | Optional | language of names | ### Language Lists | Property | Type | Required | Description | | -------- | ------ | -------- | ----------------- | | `TH` | string | Optional | Thai Game name | | `EN` | string | Optional | English Game name | | `CN` | string | Optional | Chinese Game name | > JSON response example: ```json { "reqId": "bcf4a1d9-2374-460d-bf02-94ae8547851a", "code": 0, "message": "Success", "data": { "games": [ { "name": "Candy’s Bonanza", "category": "EGAMES", "type": "SLOT", "code": "expanse_candysbonanza", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_candysbonanza.png", "rank": 1, "locale": { "en": "Candy’s Bonanza", "th": "Candy’s Bonanza", "cn": "糖果盛宴" } }, { "name": "Wild West Spirit", "category": "EGAMES", "type": "SLOT", "code": "expanse_wildwestspirit", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_wildwestspirit.png", "rank": 2, "locale": { "en": "Wild West Spirit", "th": "Wild West Spirit", "cn": "西部狂野精神" } }, { "name": "Rich Panda", "category": "EGAMES", "type": "SLOT", "code": "expanse_richpanda", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_richpanda.png", "rank": 3, "locale": { "en": "Rich Panda", "th": "Rich Panda", "cn": "财富熊猫" } }, { "name": "Beach Penalties", "category": "EGAMES", "type": "SLOT", "code": "expanse_beachpenalties", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_beachpenalties.png", "rank": 4, "locale": { "en": "Beach Penalties", "th": "Beach Penalties", "cn": "Beach Penalties" } }, { "name": "Maya‘s Treasure", "category": "EGAMES", "type": "SLOT", "code": "expanse_mayastreasure", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_mayastreasure.png", "rank": 5, "locale": { "en": "Maya‘s Treasure", "th": "Maya‘s Treasure", "cn": "玛雅的宝藏" } }, { "name": "Lucky‘s Betting Shop", "category": "EGAMES", "type": "SLOT", "code": "expanse_luckysbettingshop", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_luckysbettingshop.png", "rank": 6, "locale": { "en": "Lucky‘s Betting Shop", "th": "Lucky‘s Betting Shop", "cn": "幸运的博彩店" } }, { "name": "Super Heli", "category": "EGAMES", "type": "SLOT", "code": "expanse_superheli", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_superheli.png", "rank": 7, "locale": { "en": "Super Heli", "th": "Super Heli", "cn": "超级直升机" } }, { "name": "Win & Go", "category": "EGAMES", "type": "SLOT", "code": "expanse_wingo", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_wingo.png", "rank": 8, "locale": { "en": "Win & Go", "th": "Win & Go", "cn": "赢并走" } }, { "name": "Shaolin Crew", "category": "EGAMES", "type": "SLOT", "code": "expanse_shaolincrew", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_shaolincrew.png", "rank": 9, "locale": { "en": "Shaolin Crew", "th": "Shaolin Crew", "cn": "少林团队" } }, { "name": "Zombie Apocalypse", "category": "EGAMES", "type": "SLOT", "code": "expanse_zombieapocalypse", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_zombieapocalypse.png", "rank": 10, "locale": { "en": "Zombie Apocalypse", "th": "Zombie Apocalypse", "cn": "僵尸启示录" } }, { "name": "Veni Vidi Vici", "category": "EGAMES", "type": "SLOT", "code": "expanse_venividivici", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_venividivici.png", "rank": 11, "locale": { "en": "Veni Vidi Vici", "th": "Veni Vidi Vici", "cn": "我来了,我看见了,我征服了" } }, { "name": "Joker Poker", "category": "EGAMES", "type": "SLOT", "code": "expanse_jokerpoker", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_jokerpoker.png", "rank": 12, "locale": { "en": "Joker Poker", "th": "Joker Poker", "cn": "小丑扑克" } }, { "name": "Leprechaun Wish", "category": "EGAMES", "type": "SLOT", "code": "expanse_leprechaunwish", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_leprechaunwish.png", "rank": 13, "locale": { "en": "Leprechaun Wish", "th": "Leprechaun Wish", "cn": "精灵的愿望" } }, { "name": "Bounty Hunters", "category": "EGAMES", "type": "SLOT", "code": "expanse_bountyhunters", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_bountyhunters.png", "rank": 14, "locale": { "en": "Bounty Hunters", "th": "Bounty Hunters", "cn": "赏金猎人" } }, { "name": "Sticky777", "category": "EGAMES", "type": "SLOT", "code": "expanse_sticky777", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_sticky777.png", "rank": 15, "locale": { "en": "Sticky777", "th": "Sticky777", "cn": "粘粘777" } }, { "name": "Pia", "category": "EGAMES", "type": "SLOT", "code": "expanse_pia", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_pia.png", "rank": 16, "locale": { "en": "Pia", "th": "Pia", "cn": "皮娅" } }, { "name": "Wild White Whale", "category": "EGAMES", "type": "SLOT", "code": "expanse_wildwhitewhale", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_wildwhitewhale.png", "rank": 17, "locale": { "en": "Wild White Whale", "th": "Wild White Whale", "cn": "野性白鲸" } }, { "name": "God of Coins", "category": "EGAMES", "type": "SLOT", "code": "expanse_godofcoins", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_godofcoins.png", "rank": 18, "locale": { "en": "God of Coins", "th": "God of Coins", "cn": "硬币之神" } }, { "name": "Spinning Buddha", "category": "EGAMES", "type": "SLOT", "code": "expanse_spinningbuddha", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_spinningbuddha.png", "rank": 19, "locale": { "en": "Spinning Buddha", "th": "Spinning Buddha", "cn": "旋转佛陀" } }, { "name": "Planets Power", "category": "EGAMES", "type": "SLOT", "code": "expanse_planetspower", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_planetspower.png", "rank": 20, "locale": { "en": "Planets Power", "th": "Planets Power", "cn": "行星之力" } }, { "name": "Fortune Farm", "category": "EGAMES", "type": "SLOT", "code": "expanse_fortunefarm", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_fortunefarm.png", "rank": 21, "locale": { "en": "Fortune Farm", "th": "Fortune Farm", "cn": "幸运农场" } }, { "name": "Pirates Power", "category": "EGAMES", "type": "SLOT", "code": "expanse_piratespower", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_piratespower.png", "rank": 22, "locale": { "en": "Pirates Power", "th": "Pirates Power", "cn": "海盗之力" } }, { "name": "Capital City Derby", "category": "EGAMES", "type": "SLOT", "code": "expanse_capitalcityderby", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_capitalcityderby.png", "rank": 23, "locale": { "en": "Capital City Derby", "th": "Capital City Derby", "cn": "首都城市德比" } }, { "name": "Book of Egypt", "category": "EGAMES", "type": "SLOT", "code": "expanse_bookofegypt", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_bookofegypt.png", "rank": 24, "locale": { "en": "Book of Egypt", "th": "Book of Egypt", "cn": "埃及之书" } }, { "name": "Wild Icy Fruits", "category": "EGAMES", "type": "SLOT", "code": "expanse_wildicyfruits", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_wildicyfruits.png", "rank": 25, "locale": { "en": "Wild Icy Fruits", "th": "Wild Icy Fruits", "cn": "冰冷水果" } }, { "name": "The Book of Eskimo", "category": "EGAMES", "type": "SLOT", "code": "expanse_thebookofeskimo", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_thebookofeskimo.png", "rank": 26, "locale": { "en": "The Book of Eskimo", "th": "The Book of Eskimo", "cn": "爱斯基摩之书" } }, { "name": "Battle For The Throne", "category": "EGAMES", "type": "SLOT", "code": "expanse_battleforthethrone", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_battleforthethrone.png", "rank": 27, "locale": { "en": "Battle For The Throne", "th": "Battle For The Throne", "cn": "王座之战" } }, { "name": "Odd One Out", "category": "EGAMES", "type": "SLOT", "code": "expanse_oddoneout", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_oddoneout.png", "rank": 28, "locale": { "en": "Odd One Out", "th": "Odd One Out", "cn": "异类" } }, { "name": "Forest Rock", "category": "EGAMES", "type": "SLOT", "code": "expanse_forestrock", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_forestrock.png", "rank": 29, "locale": { "en": "Forest Rock", "th": "Forest Rock", "cn": "森林摇滚" } }, { "name": "Wild Corrida", "category": "EGAMES", "type": "SLOT", "code": "expanse_wildcorrida", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_wildcorrida.png", "rank": 30, "locale": { "en": "Wild Corrida", "th": "Wild Corrida", "cn": "野牛竞技" } }, { "name": "Piggy Party", "category": "EGAMES", "type": "SLOT", "code": "expanse_piggyparty", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_piggyparty.png", "rank": 31, "locale": { "en": "Piggy Party", "th": "Piggy Party", "cn": "小猪派对" } }, { "name": "Fairy in Wonderland", "category": "EGAMES", "type": "SLOT", "code": "expanse_fairyinwonderland", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_fairyinwonderland.png", "rank": 32, "locale": { "en": "Fairy in Wonderland", "th": "Fairy in Wonderland", "cn": "仙境中的仙女" } }, { "name": "Clown Fever", "category": "EGAMES", "type": "SLOT", "code": "expanse_circusfever", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_circusfever.png", "rank": 33, "locale": { "en": "Clown Fever", "th": "Clown Fever", "cn": "小丑热潮" } }, { "name": "Casino Heist", "category": "EGAMES", "type": "SLOT", "code": "expanse_casinoheist", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_casinoheist.png", "rank": 34, "locale": { "en": "Casino Heist", "th": "Casino Heist", "cn": "赌场抢劫" } }, { "name": "Crazy Horses", "category": "EGAMES", "type": "SLOT", "code": "expanse_crazyhorses", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_crazyhorses.png", "rank": 35, "locale": { "en": "Crazy Horses", "th": "Crazy Horses", "cn": "疯狂的马" } }, { "name": "Swipe", "category": "EGAMES", "type": "SLOT", "code": "expanse_swipe", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_swipe.png", "rank": 36, "locale": { "en": "Swipe", "th": "Swipe", "cn": "滑动" } }, { "name": "Evoji", "category": "EGAMES", "type": "SLOT", "code": "expanse_evoji", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_evoji.png", "rank": 37, "locale": { "en": "Evoji", "th": "Evoji", "cn": "表情符号" } }, { "name": "Digits", "category": "EGAMES", "type": "SLOT", "code": "expanse_digits", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_digits.png", "rank": 38, "locale": { "en": "Digits", "th": "Digits", "cn": "数字" } }, { "name": "Dice Mini", "category": "EGAMES", "type": "SLOT", "code": "expanse_dicemini", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_dicemini.png", "rank": 39, "locale": { "en": "Dice Mini", "th": "Dice Mini", "cn": "迷你骰子" } }, { "name": "Dots Racing", "category": "EGAMES", "type": "SLOT", "code": "expanse_dotsracing", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_dotsracing.png", "rank": 40, "locale": { "en": "Dots Racing", "th": "Dots Racing", "cn": "圆点赛跑" } }, { "name": "Wheel", "category": "EGAMES", "type": "SLOT", "code": "expanse_wheel", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_wheel.png", "rank": 41, "locale": { "en": "Wheel", "th": "Wheel", "cn": "轮盘" } }, { "name": "Keno", "category": "EGAMES", "type": "SLOT", "code": "expanse_keno", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_keno.png", "rank": 42, "locale": { "en": "Keno", "th": "Keno", "cn": "基诺" } }, { "name": "Gem Miner", "category": "EGAMES", "type": "SLOT", "code": "expanse_gemminer", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_gemminer.png", "rank": 43, "locale": { "en": "Gem Miner", "th": "Gem Miner", "cn": "宝石矿工" } }, { "name": "Clown Fever Deluxe", "category": "EGAMES", "type": "SLOT", "code": "expanse_circusfeverdeluxe", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_circusfeverdeluxe.png", "rank": 44, "locale": { "en": "Clown Fever Deluxe", "th": "Clown Fever Deluxe", "cn": "小丑热潮豪华版" } }, { "name": "Magic Wheel", "category": "EGAMES", "type": "SLOT", "code": "expanse_magicwheel", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_magicwheel.png", "rank": 45, "locale": { "en": "Magic Wheel", "th": "Magic Wheel", "cn": "魔法轮盘" } }, { "name": "Sic Bo", "category": "EGAMES", "type": "SLOT", "code": "expanse_sicbo", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_sicbo.png", "rank": 46, "locale": { "en": "Sic Bo", "th": "Sic Bo", "cn": "骰宝" } }, { "name": "HiLo", "category": "EGAMES", "type": "SLOT", "code": "expanse_hilo", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_hilo.png", "rank": 47, "locale": { "en": "HiLo", "th": "HiLo", "cn": "高低" } }, { "name": "Titan Dice", "category": "EGAMES", "type": "SLOT", "code": "expanse_titandice", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_titandice.png", "rank": 48, "locale": { "en": "Titan Dice", "th": "Titan Dice", "cn": "泰坦骰子" } }, { "name": "Diamond Blackjack", "category": "EGAMES", "type": "SLOT", "code": "expanse_diamondblackjack", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_diamondblackjack.png", "rank": 49, "locale": { "en": "Diamond Blackjack", "th": "Diamond Blackjack", "cn": "钻石二十一点" } }, { "name": "Titan Roulette", "category": "EGAMES", "type": "SLOT", "code": "expanse_titanroulette", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_titanroulette.png", "rank": 50, "locale": { "en": "Titan Roulette", "th": "Titan Roulette", "cn": "泰坦轮盘" } }, { "name": "Mini Roulette", "category": "EGAMES", "type": "SLOT", "code": "expanse_miniroulette", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_miniroulette.png", "rank": 51, "locale": { "en": "Mini Roulette", "th": "Mini Roulette", "cn": "迷你轮盘" } }, { "name": "Titan Roulette Deluxe", "category": "EGAMES", "type": "SLOT", "code": "expanse_titanroulettedeluxe", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_titanroulettedeluxe.png", "rank": 52, "locale": { "en": "Titan Roulette Deluxe", "th": "Titan Roulette Deluxe", "cn": "泰坦轮盘豪华版" } }, { "name": "Pixel Poker", "category": "EGAMES", "type": "SLOT", "code": "expanse_pixelpoker", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_pixelpoker.png", "rank": 53, "locale": { "en": "Pixel Poker", "th": "Pixel Poker", "cn": "像素扑克" } }, { "name": "Deuces Wild", "category": "EGAMES", "type": "SLOT", "code": "expanse_deuceswild", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_deuceswild.png", "rank": 54, "locale": { "en": "Deuces Wild", "th": "Deuces Wild", "cn": "两张狂野" } }, { "name": "Pinata Loca", "category": "EGAMES", "type": "SLOT", "code": "expanse_pinataloca", "img": "https://superapi-products.s3-ap-southeast-1.amazonaws.com/EXPANSE/expanse_pinataloca.png", "rank": 55, "locale": { "en": "Pinata Loca", "th": "Pinata Loca", "cn": "疯狂皮纳塔" } } ] } } ``` --- --- url: /seamless/listFreegames.md --- ## List Freegames `GET` This api is use for get free game lists. **Please use field `code` to login in field `gameCode`** ### Authorization Seamless uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` GET {{ API_URL }}/seamless/freeGameList?productId={{ productId }} ``` ### Content Type Type: `application/json` ### Parameter Description | Property | Type | Required | Description | | ----------- | ------ | -------- | ----------------------------------------------------------------------------------------- | | `productId` | string | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists))) (Example : `PGSOFT`) | ### Response Description | Property | Type | Required | Description | | --------- | ----------------------------- | -------- | ----------------------------------------- | | `reqId` | string | Required | Unique reference for each request | | `code` | number | Required | Response status | | `message` | string | Required | Additional information on response status | | `data` | [GameData](#query-games-data) | Required | Query games data | ### Query Games Data | Property | Type | Required | Description | | -------------- | ------ | -------- | --------------------- | | `name` | string | Optional | Game Name | | `category` | string | Required | Game Category | | `type` | string | Required | Game Type | | `code` | string | Required | Game Id | | `img` | string | Required | Game Image | | `rank` | number | Required | Rank of game | | `providerCode` | string | Optional | Game Code of Provider | > JSON response example: ```json { "reqId": "91ffb817-1f8e-4608-a86d-472dddc2eed7", "code": 0, "message": "Success", "data": { "games": [ { "name": "games", "category": "EGAMES", "type": "SLOT", "code": "games", "img": "https://img", "rank": 1, "providerCode": "1" } ] } } ``` --- --- url: /seamless/login.md --- ## Login `POST` This api is use for enter to the game. ### Authorization Seamless uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` POST {{ API_URL }}/seamless/logIn ``` ### Content Type Type: `application/json` ### Parameter Description | Property | Type | Required | Description | | --------------- | ------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `username` | string | Required | Member username | | `productId` | string | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists))) (Example : `SEXY`) | | `gameCode` | string | Required | Game code of product (Example : BAC) | | `isMobileLogin` | boolean | Required | Mobile Mode (Example : true) | | `limit` | number | Optional | Player's bet limits [Betlimit List](./getBetLimits.md) | | `sessionToken` | string | Required | SessionToken generate by Operator. Note: In some products, provider didn't support the same token when player had login many times. So, please try to change the `sessionToken` regulary, if you found an error abnormally.
**Note:** Some products has a maximum length of `sessionToken` if you found some callback remove your `sessionToken` length or sent to your system with some part of your provided `sessionToken`, please try to reduce `sessionToken` length. | | `currency` | string | Optional | Login currency, please specify if you need to select the currency (Default value based on agent) | | `language` | string | Optional | Language Code default `th` [Language List](#language-lists) (Example : th) | | `callbackUrl` | string | Optional | Exit url, url that you need to redirect if player quit the game from Game GUI. | | `betLimit` | any\[] | Optional | Values are depended on productId, please refer to each product in callbacks section for more details | > Request Body ```json { "username": "test00001", "productId": "PRETTY", "gameCode": "BAC", "isMobileLogin": true, "limit": 1, "sessionToken": "d4be70d1-349f-4fc1-a955-35d2a4bff244", "betLimit": [] } ``` > JSON response example: ```json { "reqId": "5557191a-4421-4753-a757-8ca7b45828dc", "code": 0, "message": "Success", "data": { "url": "https://test.ambsuperapi.com/seamless/directLogin?token={{ LOGIN_TOKEN }}" } } ``` --- --- url: /seamless/customBetLimit.md --- ## Custom bet-limit config `Optional`: If you need to custom bet-limit (mostly for Sport-type products), please following this setup parameters. Due to the complexity of setup parameters in some products, we have to separates the custom parameters for your login's parameters request. The following products supports these custom setup: | ProductID | Product name | | -------------- | ------------- | | `AMBSPORTBOOK` | AMB Sportbook | | `LALIKA` | Lalika | | `AFB1188` | AFB1188 Sport | | `SABASPORTS` | Saba Sport | | `SBO` | Sbobet | | `GA28` | GA28 | | `MUAYPAKYOK` | Muaypakyok | | `UFABET` | Ufabet+ | | `UMBET` | Umbet | The description and example for each products: ### Product: LALIKA, AFB1188, SABASPORTS ```json { "betLimit": [ { "sport_type": 0, "market_type": 0, "min_bet": 5, "max_bet": 500, "max_bet_per_match": 100000 } ] } ``` ### Request parameter description | Property | Type | Required | Description | | ------------------- | ------ | -------- | ------------------------------------- | | `sport_type` | number | Required | [Sport type code.](#amb-sport-type) | | `market_type` | number | Required | [Market type code.](#amb-market-type) | | `min_bet` | number | Required | Minimum bet amount daily. | | `max_bet` | number | Required | Maximum bet amount daily. | | `max_bet_per_match` | number | Required | Maximum bet amount per match. | ### Product: GA28 ```json { "betLimit": [ { "max_bet": 500, "draw_max_bet": 500, "limit_num_ticket": null } ] } ``` ### Request parameter description | Property | Type | Required | Description | | ------------------ | ------ | -------- | ------------------------------ | | `max_bet` | number | Required | Maximum bet amount daily. | | `draw_max_bet` | number | Required | Maximum draw bet amount daily. | | `limit_num_ticket` | number | Required | Maximum bet amount per match. | ### Product: SBO ```json { "betLimit": [ { "sport_type": 0, "market_type": 0, "min_bet": 5, "max_bet": 500, "max_bet_per_match": 100000 } ] } ``` ### Request parameter description | Property | Type | Required | Description | | ------------------- | ------ | -------- | ------------------------------------- | | `sport_type` | number | Required | [Sport type code.](#sbo-sport-type) | | `market_type` | number | Required | [Market type code.](#sbo-market-type) | | `min_bet` | number | Required | Minimum bet amount daily. | | `max_bet` | number | Required | Maximum bet amount daily. | | `max_bet_per_match` | number | Required | Maximum bet amount per match. | ### Sport Type {#sbo-sport-type} | SportType | Description | | --------- | ------------------ | | `0` | ALL | | `1` | Soccer | | `2` | Basketball | | `3` | Football | | `4` | Ice Hockey | | `5` | Badminton | | `6` | Pool | | `7` | Motor Sport | | `8` | Tennis | | `9` | Baseball | | `10` | Volleyball | | `11` | Others | | `12` | Golf | | `13` | Boxing | | `14` | Cricket | | `15` | Table Tennis | | `16` | Rugby | | `17` | Handball | | `18` | Cycling | | `19` | Athletics | | `20` | Beach_Soccer | | `21` | Futsal | | `22` | Entertainment | | `23` | Financial | | `24` | Darts | | `25` | Olympic | | `26` | Lacrosse | | `27` | Water Polo | | `28` | Winter Sports | | `29` | Squash | | `30` | Field_Hockey | | `31` | Mixed_Martial_Arts | | `32` | E_Sports | | `33` | Gaelic_Football | | `34` | Hurling | | `35` | Muay_Thai | | `36` | Bandy | | `37` | Winter_Olympics | ### Market Type {#sbo-market-type} | SportTypeId | Description | | ----------- | --------------------- | | `0` | ALL | | `1` | Handicap | | `2` | Odd/Even | | `3` | Over/Under | | `4` | Correct Score | | `5` | 1X2 | | `6` | Total Goal | | `7` | First Half Hdp | | `8` | First Half 1x2 | | `9` | First Half O/U | | `10` | HT/FT | | `11` | Money Line | | `12` | First Half O/E | | `13` | First Goal/Last Goal | | `14` | First Half CS | | `15` | Double Chance | | `16` | Live Score | | `17` | First Half Live Score | | `39` | Outright | | `40` | Mix Parlay | | `666` | In Between | | `800000` | First Half 1X2 & O/U | | `800001` | D/C & First Half O/U | | `900000` | 1X2 & O/U | | `900001` | D/C & O/U | | `800002` | First Half RCS | | `900002` | Reverse Correct Score | ### Product: AMBSPORTBOOK ```json { "betLimit": [ { "sport_type": 0, "market_type": 1, "min_bet": 5, "max_bet": 500, "max_bet_per_match": 100000 } ] } ``` ### Request parameter description | Property | Type | Required | Description | | ------------------- | ------ | -------- | ------------------------------------- | | `sport_type` | number | Required | [Sport type code.](#amb-sport-type) | | `market_type` | number | Required | [Market type code.](#amb-market-type) | | `min_bet` | number | Required | Minimum bet amount daily. | | `max_bet` | number | Required | Maximum bet amount daily. | | `max_bet_per_match` | number | Required | Maximum bet amount per match. | ### Sport Type {#amb-sport-type} | SportType | Description | | --------- | ----------- | | `0` | ALL | ### Market Type {#amb-market-type} | SportTypeId | Description | | ----------- | --------------------- | | `1` | Handicap | | `2` | Odd/Even | | `3` | Over/Under | | `5` | 1X2 | | `7` | First Half Hdp | | `8` | First Half 1x2 | | `9` | First Half O/U | | `10` | Money Line | | `11` | First half Money Line | ### Product: MUAYPAKYOK ```json { "betLimit": [ { "sport_type": 0, "market_type": 0, "min_bet": 5, "max_bet": 500, "max_bet_per_match": 100000, "min_bet_step": 5, "max_bet_step": 500, "max_bet_per_match_step": 100000 } ] } ``` | Property | Type | Required | Description | | ------------------------ | ------ | -------- | ------------------------------------------------------- | | `sport_type` | number | Required | [Sport type code.](#amb-sport-type) | | `market_type` | number | Required | [Market type code.](#amb-market-type) | | `min_bet` | number | Required | Minimum bet amount. (value: 10) | | `max_bet` | number | Required | Maximum bet amount. (value: up to 1,000) | | `max_bet_per_match` | number | Required | Maximum bet amount per match. (value: up to 1,000) | | `min_bet_step` | number | Required | Minimum bet step amount per times. (value: 10) | | `max_bet_step` | number | Required | Maximum bet step amount per times. (value: up to 1,000) | | `max_bet_per_match_step` | number | Required | Maximum bet step amount per bill. (value: up to 1,000) | ### Product: UFABET ```json { "betLimit": [ { "min_bet": 30, "max_bet": 10000 } ] } ``` ### Request parameter description The min/max bet limit settings has to be within the range of product system | Property | Type | Required | Description | | --------- | ------ | -------- | --------------------------------------------- | | `min_bet` | number | Required | Minimum bet of transaction, by default is 30. | | `max_bet` | number | Required | Maximum bet of transaction. | ### Product: UMBET ```json { "betLimit": [ { "max_bet": 10, "max_bet_per_match": 10 } ] } ``` ### Request parameter description The min/max bet limit settings has to be within the range of product system | Property | Type | Required | Description | | ------------------- | ------ | -------- | ---------------------------------------------------- | | `max_bet` | number | Required | Maximum bet of transaction. (value: up to 850,000) | | `max_bet_per_match` | number | Required | Maximum bet amount per match. (value: up to 944,440) | --- --- url: /seamless/queryBetRecords.md --- ## Query Bet Records `GET` ### Authorization Seamless uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` GET {{ API_URL }}/seamless/betTransactionsV2?productId={{ productId }}&date={{ date }}&nextId={{ nextId }} ``` **Note:** there's a high chance of request timeout when using this variant. If there's a request timeout, please consider querying by range instead.
OR ### HTTP Request ``` GET {{ API_URL }}/seamless/betTransactionsV2?productId={{ productId }}&startTime={{ startTime }}&endTime={{ endTime }}&nextId={{ nextId }} ``` **Note:** query range should not be greater than 1 hour. If there's a request timeout, please reduce query range.
### Parameter Description | Property | Type | Required | Description | | ----------- | ------ | -------- | --------------------------------------------------------------------------------------- | | `productId` | string | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists))) (Example : `SEXY`) | | `date` | string | Optional | Date in format yyyy-MM-dd | | `startTime` | string | Optional | Date-time in ISO 8601 format eg 2013-07-16T19:23:51Z | | `endTime` | string | Optional | Date-time in ISO 8601 format eg 2013-07-16T19:23:51Z | | `nextId` | string | Optional | Taken from previous chunk response, indicating the start of requesting chunk | ### Response Description | Property | Type | Required | Description | | --------- | ------------------------------------ | -------- | ----------------------------------------- | | `reqId` | string | Required | Unique reference for each request | | `code` | number | Required | Response status | | `message` | string | Required | Additional information on response status | | `data` | [QueryBetDataV2](#query-bet-data-v2) | Required | Query bet data | ### Query Bet Data V2 | Property | Type | Required | Description | | -------- | ------------- | -------- | ------------------------------------------------------------------------------------- | | `nextId` | string | Optional | Id indicating the start of next chunk (If not present it means there's no next chunk) | | `txns` | [Txn\[\]](#txn) | Required | Payout status (LOSE, WIN, DRAW, UNKNOWN) | *** ### Txn | Property | Type | Required | Description | | ---------------- | ------ | -------- | ------------------------------------------- | | `id` | string | Required | Transaction id | | `betId` | string | Required | Unique bet id on each user | | `username` | string | Required | Username | | `currency` | string | Required | ISO 4217 currency code | | `accountingDate` | string | Required | Settlement time | | `updatedDate` | string | Required | Latest update time | | `stake` | number | Required | Stake amount | | `payout` | number | Required | Payout amount (including stake) | | `productId` | string | Required | Product id | | `gameCode` | string | Required | Game code | | `gameName` | string | Required | Game name | | `roundId` | string | Required | Round id | | `betStatus` | string | Required | Bet status (OPEN, SETTLED, UNSETTLED, VOID) | | `payoutStatus` | string | Required | Payout status (LOSE, WIN, DRAW, UNKNOWN) | > JSON response example: ```json { "reqId": "afd71177-960f-4669-90ed-8a34eed3d7d3", "code": 0, "message": "Success", "data": { "nextId": "613af94ce2d30c10be22dc6b", "txns": [ { "id": "613af94ce2d30c10be22dc06", "betId": "21352670", "username": "tor0002", "currency": "THB", "accountingDate": "2021-09-10T06:20:06.000+00:00", "updatedDate": "2021-09-10T06:20:06.000+00:00", "stake": 40, "payout": 30, "productId": "SIMPLEPLAY", "gameCode": "EG-SLOT-A044", "gameName": "Bomber Squad", "roundId": "4500052193296", "betStatus": "SETTLED", "payoutStatus": "LOSE" }, { "id": "613af94ce2d30c10be22dc34", "betId": "21352676", "username": "tor0002", "currency": "THB", "accountingDate": "2021-09-10T06:20:20.000+00:00", "updatedDate": "2021-09-10T06:20:20.000+00:00", "stake": 40, "payout": 15, "productId": "SIMPLEPLAY", "gameCode": "EG-SLOT-A044", "gameName": "Bomber Squad", "roundId": "4500085747728", "betStatus": "SETTLED", "payoutStatus": "LOSE" } ] } } ``` --- --- url: /seamless/queryReplay.md --- ## Query Replay `GET` ### Authorization Seamless uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` GET {{ API_URL }}/seamless/betTransactionReplay?productId={{ productId }}&username={{ username }}&betId={{ betId }}&parentBetId={{ parentBetId }}&gameCode={{ gameCode }} ``` ### Parameter Description | Property | Type | Required | Description | | ------------- | ------ | -------- | ----------------------------------------------------------------------------------------------------------------------- | | `productId` | string | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists))) (Example : `SEXY`) | | `betId` | string | Required | Bet ID | | `username` | string | Required | Member username | | `parentBetId` | string | Optional | Parent bet ID, if productId: `PGSOFT` this field is required and you need to send `roundId` (in format xxxx-xxxx-106-0) | | `gameCode` | string | Optional | Parent bet ID, if productId: `PGSOFT` this field is required and you need to send `gameCode` (in format `lucky-neko`) | ### Response Description | Property | Type | Required | Description | | --------- | ---------------------------- | -------- | ----------------------------------------- | | `reqId` | string | Required | Unique reference for each request | | `code` | number | Required | Response status | | `message` | string | Required | Additional information on response status | | `data` | [QueryReplay](#query-replay) | Required | Query replay data | ### Query Replay | Property | Type | Required | Description | | -------- | ------ | -------- | ----------- | | `url` | string | Required | Replay url | ### `Note` Products not have Replay | Product ID | Product Name | | ------------ | -------------- | | `SIMPLEPLAY` | Simple Play | | `AGGAME` | Asia Gaming AG | | `EVOPLAY` | Evoplay | | `ALLBET` | Allbet | | `GOLDY` | Goldy | > JSON response example: ```json { "reqId": "7ba79e9c-ebaf-4f06-bd73-d8648ec7f8d3", "code": 0, "message": "Success", "data": { "url": "https://ttt.worldcdn-mega.com/page/wallet/replay.jsp?platform=SEXYBCRT&gameType=LIVE&roundId=Mexico-705-GA25440063&path=https%3A%2F%2Fbfsiz6.bikimex.net%2Ftoken%2Fresult%2Freplay.jsp%3Ftoken%3D4i9oFD7dThHHWUNgOxt4BdyvpOsmfZg3vdQmJ0yvDxAYJsQHk%252BABwgJF1rezSA6dnjOsNoqMf9LA3G%252FEMkXUsWQmedAoq7iLO%252F1yrsQbTd%252Fntj4j8ZM2Sk8CHB0u8ME4sHewbWzt5C4D281OlohjBw%253D%253D%26lang%3Den%26reverseBPColor%3Dfalse" } } ``` --- --- url: /seamless/getBetLimits.md --- ## Get BetLimits `GET` `GET` `Optional` Get bet limit (Live casino only). ### Authorization Seamless uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` GET {{ API_URL }}/seamless/betLimitsV2?productId={{ productId }} ``` ### Content Type Type: `application/json` ### Parameter Description | Property | Type | Required | Description | | ----------- | ------ | -------- | ----------------------------------------------------------------------------------------- | | `productId` | string | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists))) (Example : `PRETTY`) | ### Remark **Product:** SAGAME During the login process, the client can set any bet limit value. However, once entering the game lobby, there are 2 games where the bet limit will revert to the default value set by the game provider due to provider limitations. **Affected Games:** * Carnival Treasure * Deluxe Blackjack > JSON response example: ```json { "reqId": "395e9c4d-be1f-403d-b58a-e3e1ce4b7251", "code": 0, "message": "Success", "data": [ { "productId": "PRETTY", "BetLimit": [ { "limit": 1, "Min": 5, "Max": 2000 }, { "limit": 2, "Min": 50, "Max": 5000 }, { "limit": 3, "Min": 100, "Max": 20000 } ] } ] } ``` --- --- url: /seamless/verifyFishing.md --- ## Verify Deposit/Withdraw Fishing game type transaction `POST` `Optional` For product `SLOTXO` or `JOKER` only.
This API is neccessary if you need to verify the transaction when user playing Fishing game type. ### Authorization Seamless uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request (For `SLOTXO` product) ``` POST {{ API_URL }}/xo_seamless/verify-topup ``` ### HTTP Request (For `JOKER` product) ``` POST {{ API_URL }}/joker_seamless/verify-topup ``` ### Content Type Type: `application/json` ### Request parameter description | Property | Type | Required | Description | | --------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------- | | `username` | string | Required | Player username | | `transactionId` | string | Required | Transaction id that your system got from callback `/deposit` or `/withdraw` on product `SLOTXO`/`JOKER` | ### Response parameter description | Property | Type | Required | Description | | --------- | -------------------- | -------- | ---------------------------------------------------------------------------------------------------------- | | `code` | number | Required | Code status
`0`: success
`1`: failed. | | `message` | string | Required | Message description | | `data` | \[ object ] or `null` | Required | An array of transaction data description (See more below). `null` value if verify failed or an error occur | ### Response `data` parameter description | Property | Type | Required | Description | | ---------- | ------ | -------- | -------------------------------------------------------------------------------------------------------------------------- | | `id` | string | Required | Transaction id (This should be the same id with your input) | | `time` | string | Required | Time when transaction generated (ISO format) | | `amount` | number | Required | Transaction amount (This amount can be negative number when the `type` is `Withdraw`) | | `type` | string | Required | Type of transaction
`TopUp`: Deposit credit to `SLOTXO` or `JOKER` system
`Withdraw`: Withdraw credit back to player | | `username` | string | Required | Player username | > JSON example request: ```json { "username": "foobar", "transactionId": "xe6ns1mycwwwh_xe6gxumgykk3e_795913499644948991" } ``` > JSON example response: ```json /* Verified success transaction */ { "code": 0, "message": "Success", "data": [ { "id": "xe6ns1mycwwwh_xe6gxumgykk3e_795913499644948991", "time": "2021-08-05T15:16:03.982", "amount": 500, "type": "TopUp", "username": "foobar" } ] } /* Verified failed transaction */ { "code": 1, "message": "Can't verify transaction id: xe6ns1mycwwwh_xe6gxumgykk3e_795913499644948991", "data": null } ``` --- --- url: /seamless/checkPlayerStatus.md --- ## Check player status `Optional` This APIs use to check `ACTIVE`/`INACTIVE` status of player. ### Authorization Seamless uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` GET {{ API_URL }}/seamless/checkPlayerStatus?productId={{ productId }}&username={{ username }} ``` ### Supported products | Product ID | Product Name | | ---------- | ------------ | | `PGSOFT` | PG Soft | ### Request parameter description | Property | Type | Required | Description | | ----------- | ------ | -------- | ----------------------------------------------------------------------------------------- | | `username` | string | Required | Player username | | `productId` | string | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists))) (Example : `PGSOFT`) | ### Response parameter description | Property | Type | Required | Description | | --------- | ------ | -------- | ---------------------------------------------------------- | | `reqId` | string | Required | Request ID for each request. | | `code` | number | Required | Code status
`0`: success
`1`: failed. | | `message` | string | Required | Message description | | `data` | object | Required | An array of transaction data description (See more below). | ### Response `data` parameter description | Property | Type | Required | Description | | ---------- | ------ | -------- | ----------------------------------------- | | `status` | string | Required | status description, for example: `ACTIVE` | | `username` | string | Required | Player username | > JSON example request: ```json { "productId": "PGSOFT", "username": "foobar" } ``` > JSON example response: ```json { "reqId": "05e287a6-00a9-4558-9bb2-2e422494ef22", "code": 0, "message": "Success", "data": { "status": "ACTIVE", "username": "foobar" } } ``` --- --- url: /seamless/checkPlayerOnlineStatus.md --- ## Check player online status `Optional` This APIs use to check `ONLINE`/`OFFLINE` status of player. ### Authorization Seamless uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` GET {{ API_URL }}/seamless/checkOnlineStatus?productId={{ productId }}&username={{ username }} ``` ### Supported products | Product ID | Product Name | | ---------- | ------------ | | `PGSOFT` | PG Soft | ### Request parameter description | Property | Type | Required | Description | | ----------- | ------ | -------- | ----------------------------------------------------------------------------------------- | | `username` | string | Required | Player username | | `productId` | string | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists))) (Example : `PGSOFT`) | ### Response parameter description | Property | Type | Required | Description | | --------- | ------ | -------- | ---------------------------------------------------------- | | `reqId` | string | Required | Request ID for each request. | | `code` | number | Required | Code status
`0`: success
`1`: failed. | | `message` | string | Required | Message description | | `data` | object | Required | An array of transaction data description (See more below). | ### Response `data` parameter description | Property | Type | Required | Description | | ---------- | ------ | -------- | -------------------------------------------------------- | | `status` | string | Required | online/offline status description, for example: `ACTIVE` | | `username` | string | Required | Player username | > JSON example request: ```json { "productId": "PGSOFT", "username": "foobar" } ``` > JSON example response: ```json { "reqId": "05e287a6-00a9-4558-9bb2-2e422494ef22", "code": 0, "message": "Success", "data": { "status": "ACTIVE", "username": "foobar" } } ``` --- --- url: /seamless/getPlayersOnlineList.md --- ## Get players online list `Optional` This APIs use to check `ONLINE` (playing) players under your agent. ### Authorization Seamless uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` GET {{ API_URL }}/seamless/checkOnlinePlayerList?productId={{ productId }} ``` ### Supported products | Product ID | Product Name | | ---------- | ------------ | | `PGSOFT` | PG Soft | ### Request parameter description | Property | Type | Required | Description | | ----------- | ------ | -------- | ----------------------------------------------------------------------------------------- | | `productId` | string | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists))) (Example : `PGSOFT`) | ### Response parameter description | Property | Type | Required | Description | | --------- | ------ | -------- | ---------------------------------------------------------- | | `reqId` | string | Required | Request ID for each request. | | `code` | number | Required | Code status
`0`: success
`1`: failed. | | `message` | string | Required | Message description | | `data` | object | Required | An array of transaction data description (See more below). | ### Response `data` parameter description | Property | Type | Required | Description | | -------- | -------- | -------- | ------------------- | | `users` | string\[] | Required | Online players list | > JSON example request: ```json { "productId": "PGSOFT" } ``` > JSON example response: ```json { "reqId": "d3921d76-0488-4ca1-b65d-0093f410ea63", "code": 0, "message": "Success", "data": { "users": ["foobar", "barfoo"] } } ``` --- --- url: /seamless/kickOutPlayer.md --- ## Kick out player `Optional` This APIs use to kick an `ONLINE` player under your agent. If you use this API, the player were kicked out from game temporary. ### Authorization Seamless uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` POST {{ API_URL }}/seamless/kickOutPlayer ``` ### Content Type Type: `application/json` ### Supported products | Product ID | Product Name | | ---------- | ------------ | | `PGSOFT` | PG Soft | ### Request parameter description | Property | Type | Required | Description | | ----------- | ------ | -------- | ----------------------------------------------------------------------------------------- | | `username` | string | Required | Player username | | `productId` | string | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists))) (Example : `PGSOFT`) | ### Response parameter description | Property | Type | Required | Description | | --------- | ------ | -------- | ---------------------------------------------------------- | | `reqId` | string | Required | Request ID for each request. | | `code` | number | Required | Code status
`0`: success
`1`: failed. | | `message` | string | Required | Message description | | `data` | object | Required | An array of transaction data description (See more below). | ### Response `data` parameter description | Property | Type | Required | Description | | ---------- | ------ | -------- | -------------------------------------------------- | | `status` | string | Required | Success status description, for example: `SUCCESS` | | `username` | string | Required | Player username | > JSON example request: ```json { "productId": "PGSOFT", "username": "foobar" } ``` > JSON example response: ```json { "reqId": "05e287a6-00a9-4558-9bb2-2e422494ef22", "code": 0, "message": "Success", "data": { "status": "SUCCESS", "username": "foobar" } } ``` --- --- url: /seamless/suspendPlayer.md --- ## Suspend out player `Optional` This APIs use to suspend player under your agent. If you use this API, the player were suspended from provider system. ### Authorization Seamless uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` POST {{ API_URL }}/seamless/suspendPlayer ``` ### Content Type Type: `application/json` ### Supported products | Product ID | Product Name | | ---------- | ------------ | | `PGSOFT` | PG Soft | ### Request parameter description | Property | Type | Required | Description | | ----------- | ------ | -------- | ----------------------------------------------------------------------------------------- | | `username` | string | Required | Player username | | `productId` | string | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists))) (Example : `PGSOFT`) | ### Response parameter description | Property | Type | Required | Description | | --------- | ------ | -------- | ---------------------------------------------------------- | | `reqId` | string | Required | Request ID for each request. | | `code` | number | Required | Code status
`0`: success
`1`: failed. | | `message` | string | Required | Message description | | `data` | object | Required | An array of transaction data description (See more below). | ### Response `data` parameter description | Property | Type | Required | Description | | ---------- | ------ | -------- | -------------------------------------------------- | | `status` | string | Required | Success status description, for example: `SUCCESS` | | `username` | string | Required | Player username | > JSON example request: ```json { "productId": "PGSOFT", "username": "foobar" } ``` > JSON example response: ```json { "reqId": "05e287a6-00a9-4558-9bb2-2e422494ef22", "code": 0, "message": "Success", "data": { "status": "SUCCESS", "username": "foobar" } } ``` --- --- url: /seamless/resumePlayer.md --- ## Resume out player `Optional` This APIs use to resume suspended status for player under your agent. If you use this API, the player's status will back to `ACTIVE` and can access the provider system. ### Authorization Seamless uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` POST {{ API_URL }}/seamless/resumePlayer ``` ### Content Type Type: `application/json` ### Supported products | Product ID | Product Name | | ---------- | ------------ | | `PGSOFT` | PG Soft | ### Request parameter description | Property | Type | Required | Description | | ----------- | ------ | -------- | ----------------------------------------------------------------------------------------- | | `username` | string | Required | Player username | | `productId` | string | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists))) (Example : `PGSOFT`) | ### Response parameter description | Property | Type | Required | Description | | --------- | ------ | -------- | ---------------------------------------------------------- | | `reqId` | string | Required | Request ID for each request. | | `code` | number | Required | Code status
`0`: success
`1`: failed. | | `message` | string | Required | Message description | | `data` | object | Required | An array of transaction data description (See more below). | ### Response `data` parameter description | Property | Type | Required | Description | | ---------- | ------ | -------- | -------------------------------------------------- | | `status` | string | Required | Success status description, for example: `SUCCESS` | | `username` | string | Required | Player username | > JSON example request: ```json { "productId": "PGSOFT", "username": "foobar" } ``` > JSON example response: ```json { "reqId": "05e287a6-00a9-4558-9bb2-2e422494ef22", "code": 0, "message": "Success", "data": { "status": "SUCCESS", "username": "foobar" } } ``` --- --- url: /seamless/freegame.md --- ## Freegame `Optional` This APIs use give a freegame to player under operator.
**Note:** The operator must take full responsibility for this bet themselves.
### Authorization Seamless uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` POST {{ API_URL }}/seamless/free-game ``` ### Supported products | Product ID | Product Name | | ---------- | ------------ | | `PGSOFT` | PG Soft | ### Content Type Type: `application/json` ### Request parameter description | Property | Type | Required | Description | | ---------------- | ------ | -------- | ----------------------------------------------- | | `player_name` | string | Required | Player username | | `free_game_name` | string | Required | Freegame name | | `expired_date` | int | Required | number of expire date for freegame unit is hour | | `bet_amount` | int | Required | amount of freegame | | `game_count` | int | Required | count of freegame | | `game_ids` | string | Required | gameid of freegame | | `productId` | string | Required | Product ID (Example : `PGSOFT`) | ### Response parameter description | Property | Type | Required | Description | | --------- | ------ | -------- | ---------------------------------------------------------- | | `reqId` | string | Required | Request ID for each request. | | `code` | number | Required | Code status
`0`: success
`1`: failed. | | `message` | string | Required | Message description | | `data` | object | Required | An array of transaction data description (See more below). | ### Response `data` parameter description | Property | Type | Required | Description | | ------------ | ------ | -------- | ------------------------ | | `freeGameId` | number | Required | freegameId from provider | > JSON example request: ```json { "player_name": "foobar", "free_game_name": "happy day", "expired_date": 24, "game_count": 30, "bet_amount": 100, "game_ids": "87", "productId": "PGSOFT" } ``` > JSON example response: ```json { "reqId": "05e287a6-00a9-4558-9bb2-2e422494ef22", "code": 0, "message": "Success", "data": { "freeGameId": 888 } } ``` ### Free game result callback When the player plays the free game, SuperAPI sends the result to your system through [/settleBets](../productCallback/settlement.md). See [Request Example (Free Game)](../productCallback/settlement.md#request-example-free-game) for the request your system will receive and the expected response. --- --- url: /seamless/getAgentCredit.md --- ## Get Agent Credit `GET` ### Authorization Seamless uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format)) ### HTTP Request ``` GET {{ API_URL }}/seamless/getAgentCredit ``` ### Response Description | Property | Type | Required | Description | | --------- | ------------------------------- | -------- | ----------------------------------------- | | `reqId` | string | Required | Unique reference for each request | | `code` | number | Required | Response status | | `message` | string | Required | Additional information on response status | | `data` | [GetAgentCredit](#agent-credit) | Required | Agent credit data | ### Agent Credit | Property | Type | Required | Description | | ---------- | ------ | -------- | ------------- | | `currency` | string | Required | Currency | | `credit` | number | Required | Credit Amount | | `type` | string | Required | Wallet Type | > JSON response example: ```json { "reqId": "7ba79e9c-ebaf-4f06-bd73-d8aa221d3", "code": 0, "message": "Success", "data": { "currency": "THB", "credit": 10000.31, "type": "seamless" } } ``` --- --- url: /productCallback/introduction.md --- # Product Callbacks New workflow diagram This new callback common flow, we simplifies callbacks from provider and standardize it to our own understandable. Please check the following support products. ### Headers Request Signature (Optional) Some callback requests may include the following headers for signature verification: | Header | Description | | ---------------- | ------------------------------------------------------------------------------ | | `sapi-timestamp` | Unix timestamp in milliseconds sent by the system at request time. | | `sapi-signature` | HMAC-SHA256 signature of the request, using your `signatureKey` as the secret. | Verifying the signature is **optional** but recommended. If you choose to verify it, refer to the [API Signature Verification](signature.md) page for the full method and code examples. ### Products to support See all products in the [Product Lists](../api-reference.md#product-lists) section. ### API LIST | Property | Path | Description | | ------------- | ---------------- | ----------------------------------------------- | | GetBalance | `/checkBalance` | [Get Balance](gbl.md#check-balance-post) | | PlaceBets | `/placeBets` | [PlaceBet](placeBet.md#place-bets-post) | | Settle Bets | `/settleBets` | [Settlement](settlement.md#settle-bets-post) | | CancelBets | `/cancelBets` | [CancelBets](refund.md#cancel-bets-post) | | AdjustBets | `/adjustBets` | [AdjustBets](adjustBets.md#adjust-bets-post) | | Rollback | `/rollback` | [Rollback](rollback.md#rollback-post) | | WinRewards | `/winRewards` | [WinRewards](winreward.md#win-rewards-post) | | Tips | `/placeTips` | [Tips](tips.md#pay-tips-post) | | CancelTips | `/cancelTips` | [CancelTips](canceltips.md#cancel-tips-post) | | VoidSettle | `/voidSettled` | [VoidSettle](voidSettled.md#void-settle-post) | | AdjustBalance | `/adjustBalance` | [AdjustBalance](ajb.md#adjust-balance-post) | ### Common Status Code > JSON response fail example: | Code | Description | | ----- | ---------------------------------------- | | 0 | Success | | 10001 | User not found | | 10002 | User has insufficient balance to proceed | | 20001 | Transaction not found | | 20002 | Transaction duplicate | | 30001 | Invalid token | | 30002 | Invalid Signature | | 40003 | Forbidden request | | 50001 | Internal server error | --- --- url: /productCallback/signature.md --- # API Signature Verification When our system sends a callback request to your endpoint, the request will include a signature header so you can verify the request is authentic and has not been tampered with. ## 3.1 Integration Information The system provides the following information to the integrated partner: | Property | Type | Description | | -------------- | ------ | -------------------------------------------------------------------------------------- | | `signatureKey` | string | A secret key (UUID format) used for HMAC-SHA256 signature generation from Back Office. | ## 3.2 Request Headers Each callback request includes the following headers. Use both values to verify the signature on your server: | Header | Type | Description | | ---------------- | ------ | --------------------------------------------------------------------------------- | | `sapi-timestamp` | string | Unix timestamp in **milliseconds** sent by the system at request time. | | `sapi-signature` | string | HMAC-SHA256 hex digest of the signing string, using `signatureKey` as the secret. | ## 3.3 Signature Generation The signature is generated using **HMAC-SHA256**. ### Signing String Build the signing string by concatenating the `sapi-timestamp` header value and the raw JSON body string: ``` signingString = rawBodyString + "." + sapi-timestamp ``` | Part | Type | Description | | ---------------- | ------ | -------------------------------------------------------------- | | `rawBodyString` | string | The raw JSON-serialized request body (before any parsing). | | `sapi-timestamp` | string | Value taken directly from the `sapi-timestamp` request header. | ### HMAC-SHA256 ``` signature = HMAC-SHA256(secret=signatureKey, data=signingString).hex() ``` ## 3.4 Examples ### Raw Data | Property | Value | | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | | `signatureKey` | `xxxxxxxxx-xxxx-xxxx-xxxx-xxxxx` | | `sapi-timestamp` | `1776929280534` | | Request Body (JSON) | `{"id":"1db0f513-a31f-4afa-9def-fdd6d2398c22","currency":"THB","productId":"5G_GAMES","timestampMillis":1776929280534,"username":"testaoo0012"}` | ### Step 1 — Serialize the request body ``` rawBodyString = '{"id":"1db0f513-a31f-4afa-9def-fdd6d2398c22","currency":"THB","productId":"5G_GAMES","timestampMillis":1776929280534,"username":"testaoo0012"}' ``` ### Step 2 — Build the signing string ``` signingString = rawBodyString + "." + "1776929280534" = "{"id":"1db0f513-a31f-4afa-9def-fdd6d2398c22","currency":"THB","productId":"5G_GAMES","timestampMillis":1776929280534,"username":"testaoo0012"}.1776929280534" ``` ### Step 3 — Compute HMAC-SHA256 ``` signature = HMAC-SHA256( secret = "xxxxxxxxx-xxxx-xxxx-xxxx-xxxxx", data = signingString ).hex() ``` ## 3.5 Signature Example Code ### JavaScript / Node.js ```javascript const crypto = require("crypto"); const buildSigningString = (timestamp, rawBody) => { return `${rawBody}.${timestamp}`; }; const generate = (secret, timestamp, rawBody) => { const data = buildSigningString(timestamp, rawBody); return crypto.createHmac("sha256", secret).update(data).digest("hex"); }; // --- Example usage --- const signatureKey = "xxxxxxxxx-xxxx-xxxx-xxxx-xxxxx"; const timestamp = "1776929280534"; const requestBody = { id: "1db0f513-a31f-4afa-9def-fdd6d2398c22", currency: "THB", productId: "5G_GAMES", timestampMillis: 1776929280534, username: "testaoo0012", }; const rawBody = JSON.stringify(requestBody); const signature = generate(signatureKey, timestamp, rawBody); return signature; ``` ### PHP ```php '1db0f513-a31f-4afa-9def-fdd6d2398c22', 'currency' => 'THB', 'productId' => '5G_GAMES', 'timestampMillis' => 1776929280534, 'username' => 'testaoo0012', ]; // Verification: read timestamp from header $timestamp = $_SERVER['HTTP_SAPI_TIMESTAMP']; $received = $_SERVER['HTTP_SAPI_SIGNATURE']; $rawBody = file_get_contents('php://input'); $expected = generateSignature($signatureKey, $timestamp, $rawBody); $valid = hash_equals($expected, $received); if (!$valid) { http_response_code(401); echo json_encode(['message' => 'Invalid signature']); exit; } ``` ## 3.6 Verification Flow When receiving a callback request, follow these steps: 1. Read `sapi-timestamp` and `sapi-signature` from the **request headers**. 2. Get the **raw** (unparsed) request body string. 3. Build the signing string: `rawBody + "." + sapi-timestamp`. 4. Re-compute HMAC-SHA256 using your `signatureKey`. 5. Compare with `sapi-signature` using **constant-time comparison** to prevent timing attacks. 6. If the signatures do not match, respond with `statusCode: 30002` (Invalid Signature). ``` Headers received: sapi-timestamp: 1776929280534 sapi-signature: Verification: signingString = rawBody + ".1776929280534" expected = HMAC-SHA256(signatureKey, signingString).hex() valid = timingSafeEqual(expected, sapi-signature) If not valid → respond with statusCode 30002 ``` > See [Common Status Code](introduction.md#common-status-code) for the full list of status codes. --- --- url: /productCallback/gbl.md --- # Check Balance `POST` Get latest balance from member. ## HTTP Request ``` POST {{ YOUR_API_URL }}/checkBalance ``` #### Content Type Type: `application/json` ## Parameter Description | Property | Type | Required | Description | | ----------------- | ------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------- | | `id` | string | Required | Request id (Unique value) | | `timestampMillis` | number | Required | Requesting time | | `productId` | string | Required | Product id associated with the request [Product](../api-reference.md#product-lists) | | `currency` | string | Required | Player's currency code in ISO 4217 (Example: `"THB"`) | | `username` | string | Required | User id on agent system | | `gameCode` | string | Optional | Game code that input from `/logIn` API (Depend on provider, sometimes this property didn't sent from provider site). | | `sessionToken` | string | Optional | Session token that your system sent when call `/logIn` (Depend on provider, sometimes this property didn't sent from provider site) | ## Response Description | Property | Type | Required | Description | | ----------------- | ------ | -------- | ------------------------------------------------------------------------------------ | | `id` | string | Required | Response ID (No need to response the same request ID) | | `statusCode` | number | Required | Status from [StatusCode](introduction.html#common-status-code) | | `timestampMillis` | number | Required | Responding time | | `productId` | string | Required | Product id associated with the response [Product](../api-reference.md#product-lists) | | `currency` | string | Required | Player's currency codein ISO 4217 (Example: `"THB"`) | | `balance` | number | Required | Player's current balance | | `username` | string | Required | User id on agent system | ## Request Example > Request Body ```json { "id": "2989ccc8-aae3-4ff4-803c-47de52f7c4d5", "currency": "THB", "productId": "{{ ProductID }}", "timestampMillis": 1712641926000, "username": "foobar", "gameCode": "3300", "sessionToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" } ``` > JSON response Success example: ```json { "id": "2989ccc8-aae3-4ff4-803c-47de52f7c4d5", "statusCode": 0, "timestampMillis": 1712641927000, "productId": "{{ ProductID }}", "currency": "THB", "balance": 10000, "username": "foobar" } ``` > JSON response Fail example: ```json { "id": "c7197ce4-5a50-4397-a903-d78b135ade4c", "statusCode": 10001, "productId": "{{ Product ID }}", "timestampMillis": 1631599542878 } ``` --- --- url: /productCallback/placeBet.md --- # Place Bets `POST` When player play or place bet on the Game GUI, system will sent this request to your system callback url (That you set on the Backoffice site) You have to check player's balance. If they have enough balance, please deduct their balance and response success to our system to continue the game flow. ## HTTP Request ``` POST {{ YOUR_API_URL }}/placeBets ``` #### Content Type Type: `application/json` ## Parameter Description | Property | Type | Required | Description | | ----------------- | ------------------------------ | -------- | ----------------------------------------------------------------------------------- | | `id` | string | Required | Request id | | `timestampMillis` | number | Required | Requesting time | | `productId` | string | Required | Product id associated with the request [Product](../api-reference.md#product-lists) | | `currency` | string | Required | Player's currency code in ISO 4217 (Example: `"THB"`) | | `username` | string | Required | User id on agent system | | `txns` | [Txn](#common-place-bet-txn)\[] | Required | Transaction id on agent system | #### Place Bet transaction parameters (`txns`) | Property | Type | Required | Description | | ------------------- | ------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `id` | string | Required | Transaction ID | | `status` | string | Required | Bet status (Usually `OPEN` or `WAITING` (if game is `SPORT` type)) | | `roundId` | string | Required | Round id | | `betAmount` | number | Required | Stake amount | | `gameCode` | string | Required | Game code | | `playInfo` | string | Required | Information regarding the player was chosen. If Live-casino game this should be the position that player wager on that round if system can identified the position (e.g. `player`, `banker`). Other games, the value should be the game name, if we can't identified game name or game code, we will send 'UNKNOWN' into this value. | | `isFeature` | boolean | Optional | The value indicates request is feature spin/game from provider. | | | | | If `isFeature: true` **possibly coming with `betAmount: 0`** (default value: `false`) | | `isFeatureBuy` | boolean | Optional | The value indicates request is **"buying"** feature spin/game from provider. (default value: `false`) | | `skipBalanceUpdate` | boolean | Optional | Flag indicating whether a round is this transaction need to update user's balance or not
`true`: Don't update user's balance
`false`: Update user's balance with `betAmount` or `payoutAmount`. | | | | | Usually occur in `SPORT` game type, when provider considering the player's wagering on the game. | | | | | (default value: `false`) | ## Response Description | Property | Type | Required | Description | | ----------------- | ------ | -------- | ------------------------------------------------------------------------------------ | | `id` | string | Required | Response ID (No need to response the same request ID) | | `statusCode` | number | Required | Status from [StatusCode](introduction.html#common-status-code) | | `timestampMillis` | number | Required | Responding time | | `productId` | string | Required | Product id associated with the response [Product](../api-reference.md#product-lists) | | `currency` | string | Required | Player's currency codein ISO 4217 (Example: `"THB"`) | | `balanceBefore` | number | Required | Player's balance before bet | | `balanceAfter` | number | Required | Player's balance after bet | | `username` | string | Required | User id on agent system | ## Request Example > Request Body ```json { "id": "6849b62b-2b52-472a-88a4-c26c3371a62a", "productId": "{{ Product ID }}", "username": "foobar", "currency": "THB", "timestampMillis": 1712760660000, "txns": [ { "id": "T-001", "gameCode": "10300", "status": "OPEN", "roundId": "R-0001", "betAmount": 200, "playInfo": "Golden Coyote", "isFeature": false, "isFeatureBuy": false } ] } ``` > JSON response Success example: ```json { "id": "279478c1-c870-407e-91be-b70bf6a623f9", "statusCode": 0, "timestampMillis": 1712760660100, "productId": "{{ ProductID }}", "currency": "THB", "balanceBefore": 10000, "balanceAfter": 9800, "username": "foobar" } ``` > JSON response Fail example: ```json { "id": "c7197ce4-5a50-4397-a903-d78b135ade4c", "statusCode": 10001, "productId": "{{ Product ID }}", "timestampMillis": 1631599542878 } ``` --- --- url: /productCallback/settlement.md --- # Settle Bets `POST` This request usually sent to your system after `/placeBets` was called and response success. SuperAPI sent the round result. You can check the `payoutAmount` and increase the player's balance after that please response success to our system to allow player play in a next round. Some product (e.g. `PGSOFT`, etc) has only this request to complete the round, the round do not start by `/placeBets` we will sent both `betAmount` and `payoutAmount` to your system. You have to check player's balance by `betAmount` first. If they have enough balance to player, check the `payoutAmount` to identified is player win or lose (normally, if `betAmount` > 0 and `payoutAmount` > `betAmount`, the player is win) ## Product Single State | Product ID | Product Name | | -------------- | -------------- | | `PGSOFT` | PG Soft | | `BOOMING` | Booming | | `I8` | I8 | | `AFB1188_SLOT` | AFB1188 (Slot) | | `FACHAI` | Fachai | | `759GAMING` | 759 Gaming | | `ASKMEBET` | Askmebet | | `MINILUCK` | Miniluck | | `BOOONGO` | Booongo | | `KAGAME` | KA Gaming | | `HECTICPLAY` | Hectic Play | *** ## HTTP Request ``` POST {{ YOUR_API_URL }}/settleBets ``` #### Content Type Type: `application/json` ## Parameter Description | Property | Type | Required | Description | | ----------------- | ------------------------------- | -------- | ----------------------------------------------------------------------------------- | | `id` | string | Required | Request id | | `timestampMillis` | number | Required | Requesting time | | `productId` | string | Required | Product id associated with the request [Product](../api-reference.md#product-lists) | | `currency` | string | Required | Player's currency code in ISO 4217 (Example: `"THB"`) | | `username` | string | Required | User id on agent system | | `txns` | [Txn](#common-settle-bet-txn)\[] | Required | Transaction Id on agent system | #### Settle Bet transaction parameters (`txns`) | Property | Type | Required | Description | | ------------------- | ------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `id` | string | Required | Transaction ID | | `status` | string | Required | Bet status (Always `SETTLED`) | | `roundId` | string | Required | Round ID | | `betAmount` | number | Required | Stake amount (Sometimes this value equal to `0` because we can't identify the `betAmount` from `/placeBets` request) | | `payoutAmount` | number | Required | Payout amount (stake + win amount) | | `gameCode` | string | Required | Game code | | `playInfo` | string | Required | Information regarding the player was chosen. If Live-casino game this should be the position that player wager on that round if system can identified the position (e.g. `player`, `banker`). Other games, the value should be the game name, if we can't identified game name or game code, we will send 'UNKNOWN' into this value. | | `turnOver` | number | Required | Turn over (some product call valid stake, valid bet, etc.) for each round. | | | | | If system can identify turn-over from provider, this value should not be `0` (Default value is `0`). | | | | | **Note:** Please test each product to check the real turn-over value before use this value. | | `isSingleState` | boolean | Required | Value indicates whether the round for this request is end in single `/settleBets` request (No `/placeBets`, it's mean the round has no `OPEN` status) [Product](#product-single-state) | | `transactionType` | string | Required | The value that indicate transaction action, have 2 values: | | | | | 1. `BY_TRANSACTION`: This type, you have to consider the action is a transaction-level.[Example](#request-example-by-transaction) | | | | | Find the transaction inside your data storage using `id` and action only found transaction. | | | | | 2. `BY_ROUND`: This type, you have to consider the action is a round-level.[Example](#request-example-by-round) | | | | | Find entire transactions that belongs to `roundId` and actions all transactions at once. | | `isEndRound` | boolean | Optional | Value indicates whether a round is end round or not (The default value is `false`) | | `isFeature` | boolean | Optional | The value indicates request is feature spin/game from provider. | | | | | If `isFeature: true` **possibly coming with `betAmount: 0`** (default value: `false`) | | `isFeatureBuy` | boolean | Optional | The value indicates request is **"buying"** feature spin/game from provider. (default value: `false`) | | `skipBalanceUpdate` | boolean | Optional | Flag indicating whether a round is this transaction need to update user's balance or not
`true`: Don't update user's balance
`false`: Update user's balance with `betAmount` or `payoutAmount`. | | | | | Usually occur in `SPORT` game type, when provider considering the player's wagering on the game. | | | | | (default value: `false`) | ## Response Description | Property | Type | Required | Description | | ----------------- | ------ | -------- | ------------------------------------------------------------------------------------ | | `id` | string | Required | Request ID | | `statusCode` | number | Required | Status from [StatusCode](introduction.html#common-status-code) | | `timestampMillis` | number | Required | Responding time | | `productId` | string | Required | Product ID associated with the response [Product](../api-reference.md#product-lists) | | `currency` | string | Required | Player's currency codein ISO 4217 (Example: `"THB"`) | | `balanceBefore` | number | Required | Player's balance before settle | | `balanceAfter` | number | Required | Player's balance after settle | | `username` | string | Required | User id on agent system | *** ## Request Example > Request Body ```json { "id": "26cf1ce1-8ee1-4bbf-9d42-872631054bcf", "productId": "{{ Product ID }}", "username": "foobar", "currency": "THB", "timestampMillis": 1712767012000, "txns": [ { "id": "T-002", "status": "SETTLED", "roundId": "R-0001", "betAmount": 0, "turnOver": 0, "payoutAmount": 5000, "gameCode": "10300", "playInfo": "Golden Coyote", "isEndRound": false, "isSingleState": false, "skipBalanceUpdate": false, "transactionType": "BY_ROUND" } ] } ``` > JSON response example: ```json { "id": "37e10565-ca3f-4367-b3ad-c6aa2f01ffd0", "statusCode": 0, "productId": "{{ Product ID }}", "timestampMillis": 1712767012100, "username": "foobar", "currency": "THB", "balanceBefore": 9800, "balanceAfter": 14800 } ``` > JSON response Fail example: ```json { "id": "c7197ce4-5a50-4397-a903-d78b135ade4c", "statusCode": 10001, "productId": "{{ Product ID }}", "timestampMillis": 1631599542878 } ``` ## Request Example (BY_TRANSACTION) > Request Body ```json { "id": "26cf1ce1-8ee1-4bbf-9d42-872631054bcf", "productId": "{{ Product ID }}", "currency": "THB", "timestampMillis": 1756114564361, "username": "testuser1", "txns": [ { "id": "x425atj33k8psk", "status": "OPEN", "roundId": "j6nfiubzcer1c8", "betAmount": 10, "gameCode": "d5qfgs4amfxf6", "playInfo": "Respin Mania", "skipBalanceUpdate": false } ] } ------------------------------------------------ { "id": "26cf1ce1-8ee1-4bbf-9d42-872631054bcf", "productId": "{{ Product ID }}", "currency": "THB", "timestampMillis": 1756114564453, "username": "testuser1", "txns": [ { "id": "z2l8kx8zzjxrm3", "status": "OPEN", "roundId": "j6nfiubzcer1c8", "betAmount": 5, "gameCode": "d5qfgs4amfxf6", "playInfo": "Respin Mania", "skipBalanceUpdate": false } ] } ------------------------------------------------ { "id": "26cf1ce1-8ee1-4bbf-9d42-872631054bcf", "productId": "{{ Product ID }}", "currency": "THB", "timestampMillis": 1756114564453, "username": "testuser1", "txns": [ { "id": "7f1e0i1lesr9yv", "status": "OPEN", "roundId": "j6nfiubzcer1c8", "betAmount": 20, "gameCode": "d5qfgs4amfxf6", "playInfo": "Respin Mania", "skipBalanceUpdate": false } ] } ------------------------------------------------ { "id": "26cf1ce1-8ee1-4bbf-9d42-872631054bcf", "productId": "{{ Product ID }}", "currency": "THB", "timestampMillis": 1756114564735, "username": "testuser1", "txns": [ { "id": "x425atj33k8psk", "status": "SETTLED", "roundId": "j6nfiubzcer1c8", "betAmount": 0, "payoutAmount": 20, "gameCode": "d5qfgs4amfxf6", "playInfo": "Respin Mania", "isSingleState": false, "transactionType": "BY_TRANSACTION", "turnOver": 0 } ] } ------------------------------------------------ { "id": "26cf1ce1-8ee1-4bbf-9d42-872631054bcf", "productId": "{{ Product ID }}", "currency": "THB", "timestampMillis": 1756114564820, "username": "testuser1", "txns": [ { "id": "z2l8kx8zzjxrm3", "status": "SETTLED", "roundId": "j6nfiubzcer1c8", "betAmount": 0, "payoutAmount": 0, "gameCode": "d5qfgs4amfxf6", "playInfo": "Respin Mania", "isSingleState": false, "transactionType": "BY_TRANSACTION", "turnOver": 0 } ] } ------------------------------------------------ { "id": "26cf1ce1-8ee1-4bbf-9d42-872631054bcf", "productId": "{{ Product ID }}", "currency": "THB", "timestampMillis": 1756114564820, "username": "testuser1", "txns": [ { "id": "7f1e0i1lesr9yv", "status": "SETTLED", "roundId": "j6nfiubzcer1c8", "betAmount": 0, "payoutAmount": 10, "gameCode": "d5qfgs4amfxf6", "playInfo": "Respin Mania", "isSingleState": false, "transactionType": "BY_TRANSACTION", "turnOver": 0 } ] } ``` ## Request Example (BY_ROUND) > Request Body ```json { "id": "26cf1ce1-8ee1-4bbf-9d42-872631054bcf", "productId": "{{ Product ID }}", "currency": "THB", "timestampMillis": 1756114564361, "username": "testuser1", "txns": [ { "id": "x425atj33k8psk", "status": "OPEN", "roundId": "j6nfiubzcer1c8", "betAmount": 10, "gameCode": "d5qfgs4amfxf6", "playInfo": "Respin Mania", "skipBalanceUpdate": false } ] } ------------------------------------------------ { "id": "26cf1ce1-8ee1-4bbf-9d42-872631054bcf", "productId": "{{ Product ID }}", "currency": "THB", "timestampMillis": 1756114564453, "username": "testuser1", "txns": [ { "id": "z2l8kx8zzjxrm3", "status": "OPEN", "roundId": "j6nfiubzcer1c8", "betAmount": 5, "gameCode": "d5qfgs4amfxf6", "playInfo": "Respin Mania", "skipBalanceUpdate": false } ] } ------------------------------------------------ { "id": "26cf1ce1-8ee1-4bbf-9d42-872631054bcf", "productId": "{{ Product ID }}", "currency": "THB", "timestampMillis": 1756114564453, "username": "testuser1", "txns": [ { "id": "7f1e0i1lesr9yv", "status": "OPEN", "roundId": "j6nfiubzcer1c8", "betAmount": 20, "gameCode": "d5qfgs4amfxf6", "playInfo": "Respin Mania", "skipBalanceUpdate": false } ] } ------------------------------------------------ { "id": "26cf1ce1-8ee1-4bbf-9d42-872631054bcf", "productId": "{{ Product ID }}", "currency": "THB", "timestampMillis": 1756114565578, "username": "testuser1", "txns": [ { "id": "zkudwpstubzc3f", "status": "SETTLED", "roundId": "uskpir866lcc6l", "betAmount": 0, "payoutAmount": 50, "gameCode": "d5qfgs4amfxf6", "playInfo": "Respin Mania", "isSingleState": false, "transactionType": "BY_ROUND", "turnOver": 0 } ] } ``` ## Request Example (Free Game) When the player plays a free game given by [Freegame API](../seamless/freegame.md), SuperAPI sends the result to your system with this `/settleBets` request. No `/placeBets` is sent for a free game round. * `txns[].id` starts with `freegame-` followed by the free game ID (`freeGameId` from [Freegame API](../seamless/freegame.md)), e.g. `freegame-{freeGameId}-{betId}`. * `betAmount` is `0` because the player does not pay a stake for a free game. Do not deduct the player's balance. * `payoutAmount` is the amount the player wins from the free game. Increase the player's balance by this value. * `isSingleState` is `true`, so the round ends in this single request. * `isFeature` can be `true` or `false`. > Request Body (`PGSOFT`) ```json { "id": "80873949-97f3-43fa-ab57-64f346001372", "productId": "PGSOFT", "username": "testuser1", "currency": "THB", "timestampMillis": 1795677905806, "txns": [ { "id": "freegame-58305209-2125853332810502657", "status": "SETTLED", "roundId": "2125853332810502657-2125853318239490048-403-0", "betAmount": 0, "payoutAmount": 13.4, "gameCode": "mahjong-ways2", "playInfo": "Mahjong Ways 2", "turnOver": 0, "isEndRound": true, "isSingleState": true, "isFeature": true, "transactionType": "BY_ROUND" } ] } ``` > JSON response example: ```json { "id": "80873949-97f3-43fa-ab57-64f346001372", "statusCode": 0, "timestampMillis": 1795677905866, "productId": "PGSOFT", "currency": "THB", "balanceBefore": 0.19, "balanceAfter": 13.59, "username": "testuser1" } ``` --- --- url: /productCallback/refund.md --- # Cancel Bets `POST` Provider will send the user's cancel information when bet have a problem or timeout. ## HTTP Request ``` POST {{ YOUR_API_URL }}/cancelBets ``` #### Content Type Type: `application/json` ## Parameter Description | Property | Type | Required | Description | | ----------------- | ------------------------------- | -------- | ----------------------------------------------------------------------------------- | | `id` | string | Required | Request ID | | `timestampMillis` | number | Required | Requesting time | | `productId` | string | Required | Product ID associated with the request [Product](../api-reference.md#product-lists) | | `currency` | string | Required | Player's currency code in ISO 4217 (Example: `"THB"`) | | `username` | string | Required | User ID on agent system | | `txns` | [Txn](#common-cancel-bet-txn)\[] | Required | Transaction Id | #### Cancel Bet transaction parameters (`txns`) | Property | Type | Required | Description | | ----------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `id` | string | Required | Transaction ID | | `status` | string | Required | Adjust status, have 2 values: | | | | | 1. `REFUND`: The cancel status, this status come after the `OPEN` status. When your system got this status, you need to cancel the OPEN transaction and refund the balance to the user. | | | | | 2. `REJECT`: The reject status, this status come after the `WAITING` status. This status mean the sport's provider reject the bet.The causes of this status are: | | | | | 2.1. Odds changing before your bet was confirmed. | | | | | 2.2. Market already closed. | | | | | 2.3. System or risk control rejecting the wager. | | `roundId` | string | Required | Round id | | `betAmount` | number | Required | Stake amount, you can use this value to refund to your player's balance. | | `gameCode` | string | Required | Game code | | `playInfo` | string | Required | Information regarding the player was chosen. If Live-casino game this should be the position that player wager on that round if system can identified the position (e.g. `player`, `banker`). Other games, the value should be the game name, if we can't identified game name or game code, we will send 'UNKNOWN' into this value. | | `transactionType` | string | Required | The value that indicate transaction action, have 2 values: | | | | | 1. `BY_TRANSACTION`: This type, you have to consider the action is a transaction-level. | | | | | 2. `BY_ROUND`: This type, you have to consider the action is a round-level. | | | | | Find entire transactions that belongs to `roundId` and actions all transactions at once. | ## Response Description | Property | Type | Required | Description | | ----------------- | ------ | -------- | ------------------------------------------------------------------------------------ | | `id` | string | Required | Request id | | `statusCode` | number | Required | Status from [StatusCode](introduction.html#common-status-code) | | `timestampMillis` | number | Required | Responding time | | `productId` | string | Required | Product id associated with the response [Product](../api-reference.md#product-lists) | | `currency` | string | Required | Player's currency codein ISO 4217 (Example: `"THB"`) | | `balanceBefore` | number | Required | Player's balance before cancel | | `balanceAfter` | number | Required | Player's balance after cancel | | `username` | string | Required | User id on agent system | ## Request Example > Request Body ```json { "id": "c7197ce4-5a50-4397-a903-d78b135ade4v", "productId": "{{ Product ID }}", "username": "foobar", "currency": "THB", "timestampMillis": 1712767745000, "txns": [ { "id": "R-0001", "status": "REFUND", "roundId": "R-0001", "betAmount": 200, "gameCode": "10300", "playInfo": "Golden Coyote", "transactionType": "BY_ROUND" } ] } ``` > JSON response example: ```json { "id": "c7197ce4-5a50-4397-a903-d78b135ade4c", "statusCode": 0, "timestampMillis": 1712767745100, "productId": "{{ Product ID }}", "currency": "THB", "balanceBefore": 14800, "balanceAfter": 10000, "username": "foobar" } ``` > JSON response Fail example: ```json { "id": "c7197ce4-5a50-4397-a903-d78b135ade4c", "statusCode": 10001, "productId": "{{ Product ID }}", "timestampMillis": 1631599542878 } ``` --- --- url: /productCallback/adjustBets.md --- # Adjust Bets `POST` Sometimes the provider need to adjust the wagered amount. If you got this request, you can use the value inside the body to adjust player's balance.
**Adjust bet = (Member Balance + Old Bet Amount) - New Bet Amount
Start Balance = 10000
Bet Amount = 10
Balance = 9990
Adjust Bet = 20
Balance = 9980
calculate Balance = 9990 + 10 - 20** ## HTTP Request ``` POST {{ YOUR_API_URL }}/adjustBets ``` #### Content Type Type: `application/json` ## Parameter Description | Property | Type | Required | Description | | ----------------- | ------------------------------- | -------- | ----------------------------------------------------------------------------------- | | `id` | string | Required | Request id | | `timestampMillis` | number | Required | Requesting time | | `productId` | string | Required | Product id associated with the request [Product](../api-reference.md#product-lists) | | `currency` | string | Required | Player's currency code in ISO 4217 (Example: `"THB"`) | | `username` | string | Required | User id on agent system | | `txns` | [Txn](#allbet-adjust-bet-txn)\[] | Required | Transaction Id on agent system | #### Adjust Bet transaction parameters (`txns`) | Property | Type | Required | Description | | ----------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `id` | string | Required | Transaction ID | | `status` | string | Required | Bet status (Always `OPEN`) | | `roundId` | string | Required | Round id | | `gameCode` | string | Required | Game code | | `playInfo` | string | Required | Information regarding the player was chosen. If Live-casino game this should be the position that player wager on that round if system can identified the position (e.g. `player`, `banker`). Other games, the value should be the game name, if we can't identified game name or game code, we will send 'UNKNOWN' into this value. | | `betAmount` | number | Required | The value that system need to adjust the wagering amount. | | `txnId` | string | Optional | Transaction ID (Usually send the same value as `id`) | ## Response Description | Property | Type | Required | Description | | ----------------- | ------ | -------- | ----------------------------------------------------------------------------------- | | `id` | string | Required | Request id | | `statusCode` | number | Required | Status from [StatusCode](introduction.html#common-status-code) | | `timestampMillis` | number | Required | Responding time | | `productId` | string | Required | Product id associated with the request [Product](../api-reference.md#product-lists) | | `currency` | string | Required | Player's currency codein ISO 4217 (Example: `"THB"`) | | `balanceBefore` | number | Required | Player's balance before unsettle | | `balanceAfter` | number | Required | Player's balance after unsettle | | `username` | string | Required | User id on agent system | ## Request Example > Request Body ```json { "id": "2a561272-df13-4c1e-99d4-06eb7f061fe2", "productId": "{{ Product ID }}", "username": "foobar", "currency": "THB", "timestampMillis": 1724047571704, "txns": [ { "id": "285110bjm7rjvo", "status": "OPEN", "roundId": "2rj3byk76ks4yn", "betAmount": 20, "gameCode": "d5qfgs4amfxf6", "playInfo": "Respin Mania" } ] } ``` > JSON Response Body ```json { "id": "eb62c4bf-32e4-402e-8dc0-a714456bb904", "statusCode": 0, "productId": "{{ Product ID }}", "timestampMillis": 1712768088100, "username": "foobar", "currency": "THB", "balanceBefore": 10000, "balanceAfter": 9980 } ``` > JSON response Fail example: ```json { "id": "c7197ce4-5a50-4397-a903-d78b135ade4c", "statusCode": 10001, "productId": "{{ Product ID }}", "timestampMillis": 1631599542878 } ``` --- --- url: /productCallback/rollback.md --- # Rollback `POST` This request will be sent if the provider need to change the result of the ended round. You have to roll the state of the round status to running again. However, this can action both `REFUND` and `SETTLED` status. When the previous status is `REFUND` you have to roll the canceled round to running again by reduced the balance that refunded. When the previous status is `SETTLED` you have to roll the ended round to running again by reduced the balance that already win/lose. ## HTTP Request ``` POST {{ YOUR_API_URL }}/rollback ``` #### Content Type Type: `application/json` ## Parameter Description | Property | Type | Required | Description | | ----------------- | --------------------------------- | -------- | ----------------------------------------------------------------------------------- | | `id` | string | Required | Request id | | `timestampMillis` | number | Required | Requesting time | | `productId` | string | Required | Product id associated with the request [Product](../api-reference.md#product-lists) | | `currency` | string | Required | Player's currency code in ISO 4217 (Example: `"THB"`) | | `username` | string | Required | User id on agent system | | `txns` | [Txn](#common-unsettle-bet-txn)\[] | Required | Transaction Id on agent system | #### Rollback transaction parameters (`txns`) | Property | Type | Required | Description | | ----------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `id` | string | Required | Bet ID | | `status` | string | Required | Bet status (Will be ROLLBACK) | | `roundId` | string | Required | Round id | | `gameCode` | string | Required | Game code | | `playInfo` | string | Required | Information regarding the player was chosen. If Live-casino game this should be the position that player wager on that round if system can identified the position (e.g. `player`, `banker`). Other games, the value should be the game name, if we can't identified game name or game code, we will send 'UNKNOWN' into this value. | | `payoutAmount` | number | Required | The amount that round need to rollback, use this value to update balance if previous status is `SETTLED`, player's balance will be reduced. | | `betAmount` | number | Required | The amount that round need to rollback, use this value to update balance if previous status is `REFUND`, player's balance will be reduced. | | `transactionType` | string | Required | The value that indicate transaction action, have 2 values: | | | | | 1. `BY_TRANSACTION`: This type, you have to consider the action is a transaction-level. | | | | | Find the transaction inside your data storage using `id` and action only found transaction. | | | | | 2. `BY_ROUND`: This type, you have to consider the action is a round-level. | | | | | Find entire transactions that belongs to `roundId` and actions all transactions at once. | ## Response Description | Property | Type | Required | Description | | ----------------- | ------ | -------- | ------------------------------------------------------------------------------------------------- | | `id` | string | Required | Request id | | `statusCode` | number | Required | Status from [StatusCode](introduction.html#common-status-code) | | `timestampMillis` | number | Required | Responding time | | `productId` | string | Required | Product id associated with the request [Product](../api-reference.md#product-lists) | | `currency` | string | Required | Player's currency codein ISO 4217 (Example: `"THB"`) | | `balanceBefore` | number | Required | Player's balance before unsettle | | `balanceAfter` | number | Required | Player's balance after unsettle (deduct from payoutAmount - betAmount of previous settle request) | | `username` | string | Required | User id on agent system | ## Request Example > Request Body ```json { "id": "e75db240-d519-44dd-8e37-d68ec1c6f9b2", "productId": "{{ Product ID }}", "username": "foobar", "currency": "THB", "timestampMillis": 1645775403311, "txns": [ { "id": "9621055643135717", "status": "ROLLBACK", "roundId": "962105564", "gameCode": "BB001", "playInfo": "Player 1 Double", "payoutAmount": 100, "betAmount": 0, "transactionType": "BY_ROUND" } ] } ``` > JSON response example: ```json { "id": "e75db240-d519-44dd-8e37-d68ec1c6f9b2", "statusCode": 0, "productId": "{{ Product ID }}", "timestampMillis": 1645775403663, "username": "foobar", "currency": "THB", "balanceBefore": 9997.5, "balanceAfter": 9897.5 } ``` > JSON response Fail example: ```json { "id": "c7197ce4-5a50-4397-a903-d78b135ade4c", "statusCode": 10001, "productId": "{{ Product ID }}", "timestampMillis": 1631599542878 } ``` --- --- url: /productCallback/winreward.md --- # Win Rewards `POST` When provider has some event and their need to sent the reward (Jackpot or Bonus) this request will be called. ## HTTP Request ``` POST {{ YOUR_API_URL }}/winRewards ``` #### Content Type Type: `application/json` ## Parameter Description | Property | Type | Required | Description | | ----------------- | -------------------------------- | -------- | ----------------------------------------------------------------------------------- | | `id` | string | Required | Request id | | `timestampMillis` | number | Required | Requesting time | | `productId` | string | Required | Product id associated with the request [Product](../api-reference.md#product-lists) | | `currency` | string | Required | Player's currency code in ISO 4217 (Example: `"THB"`) | | `username` | string | Required | User id on agent system | | `txns` | [Txn\[\]](#common-win-rewards-txn) | Required | Transactions | #### Win Rewards transaction parameters (`txns`) | Property | Type | Required | Description | | -------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `id` | string | Required | Bet id | | `status` | string | Required | Bet status (Should always be SETTLED) | | `roundId` | string | Required | Round id | | `payoutAmount` | number | Required | Win amount | | `gameCode` | string | Required | Game code | | `playInfo` | string | Required | Information regarding the player was chosen. If Live-casino game this should be the position that player wager on that round if system can identified the position (e.g. `player`, `banker`). Other games, the value should be the game name, if we can't identified game name or game code, we will send 'UNKNOWN' into this value. | | `betAmount` | number | Optional | Stake amount. | ## Response Description | Property | Type | Required | Description | | ----------------- | ------ | -------- | ----------------------------------------------------------------------------------- | | `id` | string | Required | Request id | | `statusCode` | number | Required | Status from [StatusCode](introduction.html#common-status-code) | | `timestampMillis` | number | Required | Responding time | | `productId` | string | Required | Product id associated with the request [Product](../api-reference.md#product-lists) | | `currency` | string | Required | Player's currency codein ISO 4217 (Example: `"THB"`) | | `balanceBefore` | number | Required | Player's balance before get rewards | | `balanceAfter` | number | Required | Player's balance after get rewards | | `username` | string | Required | User id on agent system | ## Request Example > Request Body ```json { "id": "c7197ce4-5a50-4397-a903-d78b135ade4c", "productId": "{{ Product ID }}", "username": "foobar", "currency": "THB", "timestampMillis": 1631599542778, "txns": [ { "id": "e723b240-d519-44dd-8e37-d6823c6f9b2", "status": "SETTLED", "roundId": "R-0909", "payoutAmount": 1000, "gameCode": "MX-LIVE-001", "playInfo": "Banker" } ] } ``` > JSON response example: ```json { "id": "c7197ce4-5a50-4397-a903-d78b135ade4c", "statusCode": 0, "timestampMillis": 1631599542821, "productId": "{{ Product ID }}", "currency": "THB", "balanceBefore": 8600, "balanceAfter": 9600, "username": "foobar" } ``` > JSON response Fail example: ```json { "id": "c7197ce4-5a50-4397-a903-d78b135ade4c", "statusCode": 10001, "productId": "{{ Product ID }}", "timestampMillis": 1631599542878 } ``` --- --- url: /productCallback/tips.md --- # Pay Tips `POST` This request will be sent if player tips game provider (usually tips dealer in live-casino game). This callback is an optional callbacks, some product has this callback. Ex. Pretty gaming. ## HTTP Request ``` POST {{ YOUR_API_URL }}/placeTips ``` #### Content Type Type: `application/json` ## Parameter Description | Property | Type | Required | Description | | ----------------- | ----------------------------- | -------- | ----------------------------------------------------------------------------------- | | `id` | string | Required | Request id | | `timestampMillis` | number | Required | Requesting time | | `productId` | string | Required | Product id associated with the request [Product](../api-reference.md#product-lists) | | `currency` | string | Required | Player's currency code in ISO 4217 (Example: `"THB"`) | | `username` | string | Required | User id on agent system | | `txns` | [Txn](#common-pay-tips-txn)\[] | Required | Transaction Id | #### Pay Tips transaction parameters (`txns`) | Property | Type | Required | Description | | ----------- | ------ | -------- | ------------------------------------------------------------------------------ | | `id` | string | Required | Transaction ID | | `status` | string | Required | Bet status (Always `TIPS`) | | `roundId` | string | Required | Round ID | | `betAmount` | number | Required | Stake amount (Sometimes this value is `0` due to no information from provider) | ## Response Description | Property | Type | Required | Description | | ----------------- | ------ | -------- | ----------------------------------------------------------------------------------- | | `id` | string | Required | Request id | | `statusCode` | number | Required | Status from [StatusCode](introduction.html#common-status-code) | | `timestampMillis` | number | Required | Responding time | | `productId` | string | Required | Product id associated with the request [Product](../api-reference.md#product-lists) | | `currency` | string | Required | Player's currency codein ISO 4217 (Example: `"THB"`) | | `balanceBefore` | number | Required | Player's balance before cancel | | `balanceAfter` | number | Required | Player's balance after cancel | | `username` | string | Required | User id on agent system | ## Request Example > Request Body ```json { "id": "26cf1ce1-8ee1-4bbf-9d42-872631054bcf", "productId": "{{ Product ID }}", "username": "foobar", "currency": "THB", "timestampMillis": 1712767012000, "txns": [ { "id": "Tip-001", "status": "TIPS", "roundId": "Tip-R-0001", "betAmount": 1000 } ] } ``` > JSON response example: ```json { "id": "c7197ce4-5a50-4397-a903-d78b135ade4c", "statusCode": 0, "timestampMillis": 1631599542878, "productId": "{{ Product ID }}", "currency": "THB", "balanceBefore": 10000, "balanceAfter": 9000, "username": "foobar" } ``` > JSON response Fail example: ```json { "id": "c7197ce4-5a50-4397-a903-d78b135ade4c", "statusCode": 10001, "productId": "{{ Product ID }}", "timestampMillis": 1631599542878 } ``` --- --- url: /productCallback/canceltips.md --- # Cancel Tips `POST` ## HTTP Request ``` POST {{ YOUR_API_URL }}/cancelTips ``` #### Content Type Type: `application/json` ## Parameter Description | Property | Type | Required | Description | | ----------------- | ------------------------------------ | -------- | ----------------------------------------------------------------------------------- | | `id` | string | Required | Request id | | `timestampMillis` | number | Required | Requesting time | | `productId` | string | Required | Product id associated with the request [Product](../api-reference.md#product-lists) | | `currency` | string | Required | Player's currency code in ISO 4217 (Example: `"THB"`) | | `username` | string | Required | User id on agent system | | `txns` | [Txn](#common-pay-tips-cancel-txn)\[] | Required | Transaction Id | #### Cancel Tips transaction parameters (`txns`) | Property | Type | Required | Description | | ----------- | ------ | -------- | ------------------------------------ | | `id` | string | Required | Bet id | | `status` | string | Required | Bet status (Should always be REFUND) | | `roundId` | string | Required | Round id | | `betAmount` | number | Required | Stake amount | ## Response Description | Property | Type | Required | Description | | ----------------- | ------ | -------- | ----------------------------------------------------------------------------------- | | `id` | string | Required | Request id | | `statusCode` | number | Required | Status from [StatusCode](introduction.html#common-status-code) | | `timestampMillis` | number | Required | Responding time | | `productId` | string | Required | Product id associated with the request [Product](../api-reference.md#product-lists) | | `currency` | string | Required | Player's currency codein ISO 4217 (Example: `"THB"`) | | `balanceBefore` | number | Required | Player's balance before cancel | | `balanceAfter` | number | Required | Player's balance after cancel | | `username` | string | Required | User id on agent system | ## Request Example > Request Body ```json { "id": "26cf1ce1-8ee1-4bbf-9d42-872631054bcf", "productId": "{{ Product ID }}", "username": "foobar", "currency": "THB", "timestampMillis": 1712767012000, "txns": [ { "id": "Tip-001", "status": "REFUND", "roundId": "Tip-R-0001", "betAmount": 1000 } ] } ``` > JSON response example: ```json { "id": "c7197ce4-5a50-4397-a903-d78b135ade4c", "statusCode": 0, "timestampMillis": 1631599542878, "productId": "{{ Product ID }}", "currency": "THB", "balanceBefore": 8600, "balanceAfter": 8700, "username": "testProduct1" } ``` > JSON response Fail example: ```json { "id": "c7197ce4-5a50-4397-a903-d78b135ade4c", "statusCode": 10001, "productId": "{{ Product ID }}", "timestampMillis": 1631599542878 } ``` --- --- url: /productCallback/voidSettled.md --- # Void Settle `POST` Instead of cancel, sometimes provider use `VOID` as a cancel. This mean the round will be completely canceled, usually not revoke the round again. For this request, you have to increase player's balance with `betAmount` - `payoutAmount`.
**For example:**
If player's initial balance is `1000.00`
1. Player bet `100.00` into the game. So, balance equal `900.00`
2. Player win `500.00` into the game. So, balance equal `1400.00`
3. Game provider need to void the above round, our system will send `betAmount: 100.00` and `payoutAmount: 500.00`
4. Your system have to update balance `1400.00 + (100.00 - 500.00)` (Player balance + (betAmount - payoutAmount)), So final balance must equal `1000.00`
In the end of the `/voidSettled`, player's balance must equal `1000.00` like the initial balance. ## HTTP Request ``` POST {{ YOUR_API_URL }}/voidSettled ``` ## Content Type Type: `application/json` ## Parameter Description | Property | Type | Required | Description | | ----------------- | --------------------------------- | -------- | ----------------------------------------------------------------------------------- | | `id` | string | Required | Request id | | `timestampMillis` | number | Required | Requesting time | | `productId` | string | Required | Product id associated with the request [Product](../api-reference.md#product-lists) | | `currency` | string | Required | Player's currency code in ISO 4217 (Example: `"THB"`) | | `username` | string | Required | User id on agent system | | `txns` | [Txn](#common-unsettle-bet-txn)\[] | Required | Transaction Id on agent system | #### Void settle transaction parameters (`txns`) | Property | Type | Required | Description | | ----------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `id` | string | Required | Bet ID | | `status` | string | Required | Bet status (always `VOID`) | | `roundId` | string | Required | Round ID | | `betAmount` | number | Required | Stake amount (Use this value to increase player's balance) | | `payoutAmount` | number | Required | Payout amount (Use this value to decrease player's balance) | | `gameCode` | string | Required | Game code | | `playInfo` | string | Required | Information regarding the player was chosen. If Live-casino game this should be the position that player wager on that round if system can identified the position (e.g. `player`, `banker`). Other games, the value should be the game name, if we can't identified game name or game code, we will send 'UNKNOWN' into this value. | | `transactionType` | string | Required | The value that indicate transaction action, have 2 values: | | | | | 1. `BY_TRANSACTION`: This type, you have to consider the action is a transaction-level. | | | | | Find the transaction inside your data storage using `id` and action only found transaction. | | | | | 2. `BY_ROUND`: This type, you have to consider the action is a round-level. | | | | | Find entire transactions that belongs to `roundId` and actions all transactions at once. | ## Response Description | Property | Type | Required | Description | | ----------------- | ------ | -------- | ------------------------------------------------------------------------------------------------- | | `id` | string | Required | Request id | | `statusCode` | number | Required | Status from [StatusCode](introduction.html#common-status-code) | | `timestampMillis` | number | Required | Responding time | | `productId` | string | Required | Product id associated with the request [Product](../api-reference.md#product-lists) | | `currency` | string | Required | Player's currency codein ISO 4217 (Example: `"THB"`) | | `balanceBefore` | number | Required | Player's balance before unsettle | | `balanceAfter` | number | Required | Player's balance after unsettle (deduct from payoutAmount - betAmount of previous settle request) | | `username` | string | Required | User id on agent system | ## Request Example > Request Body ```json { "id": "c7197ce4-5a50-4397-a903-d78b135ade4c", "productId": "{{ Product ID }}", "username": "foobar", "currency": "THB", "timestampMillis": 1631599542778, "txns": [ { "id": "VB-T-001", "status": "VOID", "roundId": "R-001", "betAmount": 100, "payoutAmount": 1000, "gameCode": "108", "playInfo": "Magic Lamp", "transactionType": "BY_ROUND" } ] } ``` > JSON response example: ```json { "id": "c7197ce4-5a50-4397-a903-d78b135ade4c", "statusCode": 0, "timestampMillis": 1631599542821, "productId": "{{ Product ID }}", "currency": "THB", "balanceBefore": 10000, "balanceAfter": 9100, "username": "foobar" } ``` --- --- url: /productCallback/ajb.md --- # Adjust balance `POST` In a game that have to deposit/withdraw credit before play the game (e.g. Fishing type). We uses this callback to operates an action. Please carefully check the `refId` as a duplicates reference. Sometimes this callback can call to your side concurrenry, you have to check player's balance before send the success to our system. ## HTTP Request ``` POST {{ YOUR_API_URL }}/adjustBalance ``` #### Content Type Type: `application/json` ## Parameter Description | Property | Type | Required | Description | | ----------------- | ----------------------------------- | -------- | ----------------------------------------------------------------------------------- | | `id` | string | Required | Request id | | `timestampMillis` | number | Required | Requesting time | | `productId` | string | Required | Product id associated with the request [Product](../api-reference.md#product-lists) | | `currency` | string | Required | Player's currency code in ISO 4217 (Example: `"THB"`) | | `username` | string | Required | User id on agent system | | `txns` | [Txn](#common-adjust-balance-txn)\[] | Required | Transaction Id on agent system | #### Adjust balance transaction parameters (`txns`) | Property | Type | Required | Description | | -------- | ------ | -------- | --------------------------------------------------- | | `refId` | string | Required | Transaction reference ID | | `status` | string | Required | Adjust status, have 2 values: | | | | | 1. `DEBIT`: You have to deduct player's balance. | | | | | 2. `CREDIT`: You have to increase player's balance. | | `amount` | number | Required | Balance amount to calculate the player's balance. | ## Response Description | Property | Type | Required | Description | | ----------------- | ------ | -------- | ------------------------------------------------------------------------------------------------- | | `id` | string | Required | Request id | | `statusCode` | number | Required | Status from [StatusCode](introduction.html#common-status-code) | | `timestampMillis` | number | Required | Responding time | | `productId` | string | Required | Product id associated with the request [Product](../api-reference.md#product-lists) | | `currency` | string | Required | Player's currency codein ISO 4217 (Example: `"THB"`) | | `balanceBefore` | number | Required | Player's balance before unsettle | | `balanceAfter` | number | Required | Player's balance after unsettle (deduct from payoutAmount - betAmount of previous settle request) | | `username` | string | Required | User id on agent system | ## Request Example > Request Body ```json { "id": "46a0a0da-22c9-4016-94bd-d80ab6d97026", "productId": "{{ Product ID }}", "username": "foobar", "currency": "THB", "timestampMillis": 1631599542778, "txns": [ { "refId": "e7de2c76-f534-473d-b8fb-f5c901a3c582", "status": "DEBIT", "amount": 1500 } ] } ``` > JSON response example: ```json { "id": "c7197ce4-5a50-4397-a903-d78b135ade4c", "statusCode": 0, "timestampMillis": 1631599542821, "productId": "{{ Product ID }}", "currency": "THB", "balanceBefore": 10000, "balanceAfter": 8500, "username": "foobar" } ``` --- --- url: /betDetails/sagame.md --- # SA Game - Bet Details Bet detail fields returned from **SA Gaming** (Product ID: `SAGAME`) when querying bet records. ## Bet Detail Fields ### Game Type | Type ID | Game | |--------------------|-------------------| | `bac` | Baccarat | | `dtx` | Dragon & Tiger | | `sicbo` | Sic Bo | | `rot` | Roulette | | `moneywheel` | Money Wheel | | `tip` | Tips | | `pokdeng` | Pok Deng | | `andarbahar` | Andar Bahar` | |`teenpatti2020` | Teen Patti 20-20 | |`xocdia\` | Xoc Dia | ### CardDetail For Baccarat | ID | Description | |----|-----------------------------------------------------------------| | s | suit of card by detail code will have `♠️ = C ♥️ = H ♣️ = S ♦️ = D` | | r | rank of card such 1-10, K (King), Q (Queen), J (Jack) | ### Bet Type For Baccarat | Bet ID | Description | |--------|--------------------| | `0` | Tie | | `1` | Player | | `2` | Banker | | `3` | Player Pair | | `4` | Banker Pair | | `54` | LuckySix | | `25` | NC. Tie | | `26` | NC. Player | | `27` | NC. Banker | | `28` | NC. Player Pair | | `29` | NC. Banker Pair | | `53` | NC. LuckySix | | `30` | SuperSix | | `36` | Player Natural | | `37` | Banker Natural | | `40` | NC. Player Natural | | `41` | NC. Banker Natural | | `42` | Cow Cow Player | | `43` | Cow Cow Banker | | `44` | Cow Cow Tie | | `53` | NC. LuckySix | | `54` | LuckySix | ### ResultDetail for Baccarat | Name | Description | |-------------------|--------------------| | BRTie | Tie | | BRPlayerWin | Player | | BRBankerWin | Banker | | BRPlayerPair | Player Pair | | BRBankerPair | Banker Pair | | BRSLuckySix | Lucky Six | | BRSSTie | NC. Tie | | BRSSPlayerWin | NC. Player | | BRSSBankerWin | NC. Bander | | BRSSPlayerPair | NC. Player Pair | | BRSSBankerPair | NC. Banker Pair | | BRSSSLuckySix | NC. Lucky Six | | BRSSSuperSix | SuperSix | | BRPlayerNatural | Player Natural | | BRBankerNatural | Banker Natural | | BRSSPlayerNatural | NC. Player Natural | | BRSSBankerNatural | NC. Banker Natural | | BRCowPlayerWin | Cow Cow Player | | BRCowBankerWin | Cow Cow Banker | | BRCowTie | Cow Cow Tie | ### Bet Type For Dragon Tiger | Bet ID | Description | |--------|-------------| | `0` | Tie | | `1` | Dragon | | `2` | Tiger | ### ResultDetail For Dragon Tiger | Name | Description | |--------------|-------------| | DTRTie | Tie game | | DTRDragonWin | Dragon win | | DTRTigerWin | Tiger win | ### Bet Type For Sicbo | Bet ID | Description | |--------|----------------------| | `0` | Small | | `1` | Big | | `2` | Odd | | `3` | Even | | `4` | Number 1 | | `5` | Number 2 | | `6` | Number 3 | | `7` | Number 4 | | `8` | Number 5 | | `9` | Number 6 | | `10` | All 1 | | `11` | All 2 | | `12` | All 3 | | `13` | All 4 | | `14` | All 5 | | `15` | All 6 | | `16` | All same | | `17` | Point 4 | | `18` | Point 5 | | `19` | Point 6 | | `20` | Point 7 | | `21` | Point 8 | | `22` | Point 9 | | `23` | Point 10 | | `24` | Point 11 | | `25` | Point 12 | | `26` | Point 13 | | `27` | Point 14 | | `28` | Point 15 | | `29` | Point 16 | | `30` | Point 17 | | `31` | Specific double 1, 2 | | `32` | Specific double 1, 3 | | `33` | Specific double 1, 4 | | `34` | Specific double 1, 5 | | `35` | Specific double 1, 6 | | `36` | Specific double 2, 3 | | `37` | Specific double 2, 4 | | `38` | Specific double 2, 5 | | `39` | Specific double 2, 6 | | `40` | Specific double 3, 4 | | `41` | Specific double 3, 5 | | `42` | Specific double 3, 6 | | `43` | Specific double 4, 5 | | `44` | Specific double 4, 6 | | `45` | Specific double 5, 6 | | `46` | Pair 1 | | `47` | Pair 2 | | `48` | Pair 3 | | `49` | Pair 4 | | `50` | Pair 5 | | `51` | Pair 6 | | `52` | Three Odd | | `53` | Two Odd One Even | | `54` | Two Even One Odd | ### ResultDetail For Sic Bo | Name | Description | |----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | SRBigSmall | 0 - Triple
1 - Big
2 - Small | | SROddEven | 0 - Triple
1 - Odd
- Even | | SRTripleArmyOne | Triple army 1 | | SRTripleArmyTwo | Triple army 2 | | SRTripleArmyThree | Triple army 3 | | SRTripleArmyFour | Triple army 4 | | SRTripleArmyFive | Triple army 5 | | SRTripleArmySix | Triple army 6 | | SRTriple | 0 - NA
1 - Triple 1
2 - Triple 2
3 - Triple 3
4 - Triple 4
5 - Triple 5
6 - Triple 6 | | SRAllTriple | All triple | | SRPoint | 0 - NA
4 - Point 4
5 - Point 5
6 - Point 6
7 - Point 7
8 - Point 8
9 - Point 9
10 - Point 10
11 - Point 11
12 - Point 12
13 - Point 13
14 - Point 14
15 - Point 15
16 - Point 16
17 - Point 17 | | SRLongOneTwo | Long 1 2 | | SRLongOneThree | Long 1 3 | | SRLongOneFour | Long 1 4 | | SRLongOneFive | Long 1 5 | | SRLongOneSix | Long 1 6 | | SRLongTwoThree | Long 2 3 | | SRLongTwoFour | Long 2 4 | | SRLongTwoFive | Long 2 5 | | SRLongTwoSix | Long 2 6 | | SRLongThreeFour | Long 3 4 | | SRLongThreeFive | Long 3 5 | | SRLongThreeSix | Long 3 6 | | SRLongFourFive | Long 4 5 | | SRLongFourSix | Long 4 6 | | SRLongFiveSix | Long 5 6 | | SRShort | 0 - NA
1 - Short 1
2 - Short 2
3 - Short 3
4 - Short 4
5 - Short 5
6 - Short 6 | | SROddEvenCombination | 0 - Three Odd
1 - Two Odd One Even
- Two Even One Odd
3 - Three Even | | SR_1_2_3_4 | 1 2 3 4 | | SR_2_3_4_5 | 2 3 4 5 | | SR_2_3_5_6 | 2 3 5 6 | | SR_3_4_5_6 | 3 4 5 6 | | SRCombination | 0 - NA
1 - 112
2 - 113
3 - 114
4 - 115
5 - 116
6 - 221
7 - 223
8 - 224
9 - 225
10 - 226
11 - 331
12 - 332
13 - 334
14 - 335
15 - 336
16 - 441
17 - 442
18 - 443
19 - 445
20 - 446
21 - 551
22 - 552
23 - 553
24 - 554
25 - 556
26 - 661
27 - 662
28 - 663
29 - 664
30 - 665
31 - 126
32 - 135
33 - 234
34 - 256
35 - 346
36 - 123
37 - 136
38 - 145
39 - 235
40 - 356
41 - 124
42 - 146
43 - 236
44 - 245
45 - 456
46 - 125
47 - 134
48 - 156
49 - 246
50 - 345 | ### Bet Type For Fan Tan | Bet ID | Description | |--------|-------------| | `0` | Odd | | `1` | Even | | `2` | 1 Zheng | | `3` | 2 Zheng | | `4` | 3 Zheng | | `5` | 4 Zheng | | `6` | 1 Fan | | `7` | 2 Fan | | `8` | 3 Fan | | `9` | 4 Fan | | `10` | 1 Nim 2 | | `11` | 1 Nim 3 | | `12` | 1 Nim 4 | | `13` | 2 Nim 1 | | `14` | 2 Nim 3 | | `15` | 2 Nim 4 | | `16` | 3 Nim 1 | | `17` | 3 Nim 2 | | `18` | 3 Nim 4 | | `19` | 4 Nim 1 | | `20` | 4 Nim 2 | ### ResultDetail for Fan Tan | Name | Description | |---------------------|-------------| | FTROdd | Odd | | FTREven | Even | | FTRZhengOne | 1 Zheng | | FTRZhengTwo | 2 Zheng | | FTRZhengThree | 3 Zheng | | FTRZhengFour | 4 Zheng | | FTRFanOne | 1 Fan | | FTRFanTwo | 2 Fan | | FTRFanThree | 3 Fan | | FTRFanFour | 4 Fan | | FTROneNimTwo | 1 Nim 2 | | FTROneNimThree | 1 Nim 3 | | FTROneNimFour | 1 Nim 4 | | FTRTwoNimOne | 2 Nim 1 | | FTRTwoNimThree | 2 Nim 3 | | FTRTwoNimFour | 2 Nim 4 | | FTRThreeNimOne | 3 Nim 1 | | FTRThreeNimTwo | 3 Nim 2 | | FTRThreeNimFour | 3 Nim 4 | | FTRFourNimOne | 4 Nim 1 | | FTRFourNimTwo | 4 Nim 2 | | FTRFourNimThree | 4 Nim 3 | | FTRKwokOneTwo | 12 Kwok | | FTRKwokOneFour | 41 Kwok | | FTRKwokTwoThree | 23 Kwok | | FTRKwokThreeFour | 34 Kwok | | FTROneTongTwoThree | 23 Tong 1 | | FTROneTongTwoFour | 24 Tong 1 | | FTROneTongThreeFour | 34 Tong 1 | | FTRTwoTongOneThree | 13 Tong 2 | | FTRTwoTongOneFour | 14 Tong 2 | | FTRTwoTongThreeFour | 34 Tong 2 | | FTRThreeTongOneTwo | 12 Tong 3 | | FTRThreeTongOneFour | 14 Tong 3 | | FTRThreeTongTwoFour | 24 Tong 3 | | FTRFourTongOneTwo | 12 Tong 4 | | FTRFourTongOneThree | 13 Tong 4 | | FTRFourTongTwoThree | 23 Tong 4 | | FTRChunOneTwoThree | 123 Chun | | FTRChunOneTwoFour | 124 Chun | | FTRChunOneThreeFour | 134 Chun | | FTRChunTwoThreeFour | 234 Chun | ### Bet Type Roulette | Bet ID | Description | Bet ID | Description | |--------|-------------|--------|-------------------| | `0~36` | 0~36 | `97` | 0,1,2 | | `37` | 0,1 | `98` | 0,2,3 | | `38` | 0,2 | `99` | 1,2,3 | | `39` | 0,3 | `100` | 4,5,6 | | `40` | 1,2 | `101` | 7,8,9 | | `41` | 1,4 | `102` | 10,11,12 | | `42` | 2,3 | `103` | 13,14,15 | | `43` | 2,5 | `104` | 16,17,18 | | `44` | 3,6 | `105` | 19,20,21 | | `45` | 4,5 | `106` | 22,23,24 | | `46` | 4,7 | `107` | 25,26,27 | | `47` | 5,6 | `108` | 28,29,30 | | `48` | 5,8 | `109` | 31,32,33 | | `49` | 6,9 | `110` | 34,35,36 | | `50` | 7,8 | `111` | 1,2,4,5 | | `51` | 7,10 | `112` | 2,3,5,6 | | `52` | 8,9 | `113` | 4,5,7,8 | | `53` | 8,11 | `114` | 5,6,8,9 | | `54` | 9,12 | `115` | 7,8,10,11 | | `55` | 10,11 | `116` | 8,9,11,12 | | `56` | 10,13 | `117` | 10,11,13,14 | | `57` | 11,12 | `118` | 11,12,14,15 | | `58` | 11,14 | `119` | 13,14,16,17 | | `59` | 12,15 | `120` | 14,15,17,18 | | `60` | 13,14 | `121` | 16,17,19,20 | | `61` | 13,16 | `122` | 17,18,20,21 | | `62` | 14,15 | `123` | 19,20,22,23 | | `63` | 14,17 | `124` | 20,21,23,24 | | `64` | 15,18 | `125` | 22,23,25,26 | | `65` | 16,17 | `126` | 23,24,26,27 | | `66` | 16,19 | `127` | 25,26,28,29 | | `67` | 17,18 | `128` | 26,27,29,30 | | `68` | 17,20 | `129` | 28,29,31,32 | | `69` | 18,21 | `130` | 29,30,32,33 | | `70` | 19,20 | `131` | 31,32,34,35 | | `71` | 19,22 | `132` | 32,33,35,36 | | `72` | 20,21 | `133` | 1,2,3,4,5,6 | | `73` | 20,23 | `134` | 4,5,6,7,8,9 | | `74` | 21,24 | `135` | 7,8,9,10,11,12 | | `75` | 22,23 | `136` | 10,11,12,13,14,15 | | `76` | 22,25 | `137` | 13,14,15,16,17,18 | | `77` | 23,24 | `138` | 16,17,18,19,20,21 | | `78` | 23,26 | `139` | 19,20,21,22,23,24 | | `79` | 24,27 | `140` | 22,23,24,25,26,27 | | `80` | 25,26 | `141` | 25,26,27,28,29,30 | | `81` | 25,28 | `142` | 28,29,30,31,32,33 | | `82` | 26,27 | `143` | 31,32,33,34,35,36 | | `83` | 26,29 | `144` | 1st 12 (1~12) | | `84` | 27,30 | `145` | 2nd 12 (13~24) | | `85` | 28.29 | `146` | 3rd 12 (25~36) | | `86` | 28,31 | `147` | 1st Row | | `87` | 29,30 | `148` | 2nd Row | | `88` | 29,32 | `149` | 3rd Row | | `89` | 30,33 | `150` | 1~18 (Small) | | `90` | 31,32 | `151` | 19~36 (Big) | | `91` | 31,34 | `152` | Odd | | `92` | 32,33 | `153` | Even | | `93` | 32,35 | `154` | Red | | `94` | 33,36 | `155` | Black | | `95` | 34,35 | `156` | 0,1,2,3 | | `96` | 35,36 | | | ### ResultDetail for Roulette | Name | Description | |---------------|----------------| | RRZero | 0 | | RROne | 1 | | RRTwo | 2 | | RRThree | 3 | | RRFour | 4 | | RRFive | 5 | | RRSix | 6 | | RRSeven | 7 | | RREight | 8 | | RRNine | 9 | | RRTen | 10 | | RREleven | 11 | | RRTwelve | 12 | | RRThirteen | 13 | | RRForteen | 14 | | RRFifthteen | 15 | | RRSixteen | 16 | | RRSeventeen | 17 | | RREighteen | 18 | | RRNineteen | 19 | | RRTwenty | 20 | | RRTwentyOne | 21 | | RRTwentyTwo | 22 | | RRTwentyThree | 23 | | RRTwentyFour | 24 | | RRTwentyFive | 25 | | RRTwentySix | 26 | | RRTwentySeven | 27 | | RRTwentyEight | 28 | | RRTwentyNine | 29 | | RRThirty | 30 | | RRThirtyOne | 31 | | RRThirtyTwo | 32 | | RRThirtyThree | 33 | | RRThirtyFour | 34 | | RRThirtyFive | 35 | | RRThirtySix | 36 | | RRSet1 | 1st 12 (1~12) | | RRSet2 | 2nd 12 (13~24) | | RRSet3 | 3rd 12 (25~36) | | RRRow1 | 1st Row | | RRRow2 | 2nd Row | | RRRow3 | 3rd Row | | RR1To18 | Small | | RR19To36 | Big | | RROdd | Odd | | RREven | Even | | RRRed | Red | | RRBlack | Black | ### Bet Type Pok Deng | ID | Description | |----|---------------| | 0 | Player 1 | | 1 | Player 2 | | 2 | Player 3 | | 3 | Player 4 | | 4 | Player 5 | | 5 | Player 1 Pair | | 6 | Player 2 Pair | | 7 | Player 3 Pair | | 8 | Player 4 Pair | | 9 | Player 5 Pair | ### ResultDetail for Pok Deng | Name | Description | |-------------------|-----------------------| | PDR_BankerPoint | Banker total point | | PDR_BankerPair | Banker pair | | PDR_Player1Point | Player 1 total point | | PDR_Player1Result | Player 1 result state | | PDR_Player1Pair | Player 1 pair | | PDR_Player2Point | Player 2 total point | | PDR_Player2Result | Player 2 result state | | PDR_Player2Pair | Player 2 pair | | PDR_Player3Point | Player 3 total point | | PDR_Player3Result | Player 3 result state | | PDR_Player3Pair | Player 3 pair | | PDR_Player4Point | Player 4 total point | | PDR_Player4Result | Player 4 result state | | PDR_Player4Pair | Player 4 pair | | PDR_Player5Point | Player 5 total point | | PDR_Player5Result | Player 5 result state | | PDR_Player5Pair | Player 5 pair | ### Result state for Pok Deng | ID | Description | |----|-------------| | 0 | No Result | | 1 | Player Win | | 2 | Banker Win | | 3 | Tie | ### GameResult of Andar Bahar | Name | Description | |----------|--------------------------------------| | GameCard | CardDetail Structure | | Andar | CardDetail (may be more than 1 card) | | Bahar | CardDetail (may be more than 1 card) | ### BetType for Andar Bahar | ID | Description | |----|-------------| | 0 | Andar | | 1 | Bahar | | 2 | 1-5 | | 3 | 6-10 | | 4 | 11-15 | | 5 | 16-20 | | 6 | 21-25 | | 7 | 26-30 | | 8 | 31-35 | | 10 | 36-40 | | 11 | 41-45 | | 12 | 46-49 | | 13 | First 3 | | 14 | 1st Andar | | 15 | 1st Bahar | | 16 | NC. Andar | | 17 | NC. Bahar | | 18 | NC. 1-5 | | 19 | NC. 6-10 | | 20 | NC. 11-15 | | 21 | NC. 16-20 | | 22 | NC. 21-25 | | 23 | NC. 26-30 | | 24 | NC. 31-35 | | 25 | NC. 36-40 | | 26 | NC. 41-45 | | 27 | NC. 46-49 | ### GameResult of Teen Patti 20-20 | Name | Description | |--------------|---------------------------------------------------------------| | PlayerACard1 | [CardDetail](#carddetail-for-baccarat) (Player A first card) | | PlayerACard2 | [CardDetail](#carddetail-for-baccarat) (Player A second card) | | PlayerACard3 | [CardDetail](#carddetail-for-baccarat) (Player A third card) | | PlayerBCard1 | [CardDetail](#carddetail-for-baccarat) (Player B first card) | | PlayerBCard2 | [CardDetail](#carddetail-for-baccarat) (Player B second card) | | PlayerBCard3 | [CardDetail](#carddetail-for-baccarat) (Player B third card) | ### BetType for Teen Patti 20-20 | ID | Description | |----|-----------------| | 0 | Tie | | 1 | Player A | | 2 | Player B | | 3 | Player A Pair + | | 4 | Player B Pair + | | 5 | 6 Card Bonus | ### GameResult of Xoc Dia | Name | Description | |--------------|-------------------------------------------| | NoOfRed | Number of red token in game outcome (0-4) | | ResultDetail | Details of the result | ### BetType for Xoc Dia | ID | Description | |----|------------------| | 0 | 4 Red | | 1 | 1 White 3 Red | | 2 | 2 White 2 Red | | 3 | 3 White 1 Red | | 4 | 4 White | | 5 | 4 White or 4 Red | | 6 | Big | | 7 | Small | | 8 | Odd | | 9 | Even | --- --- url: /api-reference.md --- # API Referance ## Category Lists | Value | Description | | ---------- | ----------- | | EGAMES | Games Slot | | LIVECASINO | Live Casino | | SPORT | Sportbook | | POKER | Poker | | TRADING | Trading | ## Product Lists ### Games Slot | Product ID | Product Name | Description | Seamless | Transfer | Release | | ------------------ | -------------------------- | -------------------------- | -------- | -------- | -------- | | 1UP_SPIN | 1Up Spin | 1Up Spin | ✔ | - | | | 5G_GAMES | 5G Games | 5G Games | ✔ | - | | | 759GAMING | 759 Gaming | 759 Gaming | ✔ | - | | | 918KISS | 918Kiss | 918Kiss | ✔ | - | | | ACE333 | Ace333 | Ace333 | ✔ | - | | | ADVANT | Advant Play | Advant Play | ✔ | - | | | AFB1188_SLOT | AFB1188 Slot | AFB1188 (Slot) | ✔ | - | | | AMBGAMING | SpinGo | SpinGo | ✔ | - | | | AMEBA | Ameba | Ameba | ✔ | - | | | ASKMEBET | Askmebet | Askmebet | ✔ | ✔ | | | ASKMESLOT | Askmeslot | Askmeslot | ✔ | - | | | BIGPOT | Bigpot | Bigpot | ✔ | - | | | BIGTIME | BigTime Gaming | BigTime Gaming | ✔ | - | | | BOOMING | Booming | Booming | ✔ | - | | | BOOONGO | Booongo | Booongo | ✔ | - | | | CG | Creative Gaming | Creative Gaming | ✔ | - | | | CLOTPLAY | ClotPlay | ClotPlay | ✔ | - | | | CQ9 | CQ9 | CQ9 (Slot) | ✔ | ✔ | | | DRAGONGAMING | Dragon Gaming | Dragon Gaming | ✔ | - | | | EAZYGAMING | Eazy Gaming | Eazy Gaming | ✔ | - | | | ENDORPHINA | Endorphina | Endorphina | ✔ | - | | | EVOPLAY | Evoplay | Evoplay | ✔ | ✔ | | | EXPANSE | Expanse | Expanse | ✔ | - | | | FACHAI | Fachai | Fachai | ✔ | - | | | FUNKY | Funky Games | Funky Games | ✔ | - | | | FUNTA | Funta | Funta | ✔ | - | | | GOLDY | Goldy | Goldy | ✔ | - | | | HABANERO | Habanero | Habanero | ✔ | ✔ | | | HACKSAW | Hacksaw | Hacksaw | ✔ | - | | | HECTICPLAY | Hectic Play | Hectic Play | ✔ | - | | | HOTDOG | Hotdog | Hotdog | ✔ | ✔ | | | I8 | I8 | I8 | ✔ | - | | | JILI | Jili | Jili | ✔ | - | | | JIMI | Jimi Gaming | Jimi Gaming | ✔ | - | | | JOKER | Joker123 | Joker123 | ✔ | ✔ | | | KAGAME | KA Gaming | KA Gaming | ✔ | - | | | LIVE22 | Live22 | Live22 | ✔ | - | | | MANCALA | Mancala Gaming | Mancala Gaming | ✔ | - | | | MANNA | Mannaplay | Mannaplay | ✔ | ✔ | | | MICRO | Micro Gaming | Micro Gaming | ✔ | ✔ | | | MIMI | Mimi gaming | Mimi gaming | ✔ | - | | | NETENT | Netent | Netent | ✔ | - | | | NEXTSPIN | Nextspin | Nextspin | ✔ | - | | | NINESGAME | Nines Game | Nines Game | ✔ | - | | | NINJA | Ninja slot | Ninja slot | ✔ | - | | | NOLIMIT | Nolimit city | Nolimit city | ✔ | - | | | OCTOPLAY | Penguin King | Penguin King | ✔ | - | | | PETERNSONS | Peter & Sons | Peter & Sons | ✔ | - | | | PGSOFT | PG Soft | PG Soft | ✔ | ✔ | | | PRAGMATICPLAY_SLOT | Pragmatic Play Slot | Pragmatic Play Slot | ✔ | - | | | PRAGMATIC_SLOT | Pragmatic Play Slot Global | Pragmatic Play Slot Global | ✔ | ✔ | | | REDTIGER | Red Tiger | Red Tiger | ✔ | - | | | RELAX | Relax Gaming | Relax Gaming | ✔ | - | | | RICH88 | Rich88 | Rich88 | ✔ | - | | | ROYAL | Royal Slot Gaming | Royal Slot Gaming | ✔ | ✔ | | | SEXY_SLOT | Sexy Slot | Sexy Slot | ✔ | - | | | SIMPLEPLAY | Simple Play | Simple Play | ✔ | ✔ | | | SLOTOPIA | Slotopia | Slotopia | ✔ | - | | | SLOTXO | Slotxo | Slotxo | ✔ | ✔ | | | SPADE | Spade Gaming | Spade Gaming | ✔ | ✔ | | | SUNNI | Sunni Games | Sunni Games | ✔ | - | | | WAZDAN | Wazdan | Wazdan | ✔ | - | | | WMSLOT | WMSlot | Wmslot | ✔ | - | | | YGGDRASIL | Yggdrasil Gaming | Yggdrasil Gaming | ✔ | - | | | YGR | Ygr | Ygr | ✔ | - | | ### Live Casino | Product ID | Product Name | Description | Seamless | Transfer | Release | | -------------------- | ------------------------- | ---------------------------- | -------- | -------- | ------- | | AFB1188_LIVECASINO | AFB1188 Livecasino | AFB1188 (Live Casino) | ✔ | - | | | AGGAME | Choice | Choice | ✔ | - | | | ALLBET | AllBet | AllBet | ✔ | ✔ | | | BETGAME | BetgamesTV | BetgamesTV | ✔ | - | | | BIGGAME | Big Gaming | Big Gaming | ✔ | ✔ | | | CQ9_LIVECASINO | Motivation Gaming | Motivation Gaming | ✔ | - | | | DREAM | Dream Gaming | Dream Gaming | ✔ | ✔ | | | EVOLUTION | Evolution | Evolution | ✔ | ✔ | | | MICRO_LIVECASINO | Micro Gaming LiveCasino | Micro Gaming (Live Casino) | ✔ | - | | | OFALIVE | MT Live | MT Live | ✔ | - | | | ONCASINO | ONLive | ONLive | ✔ | - | | | ONEPOWER | One Power | One Power | ✔ | - | | | PRAGMATIC_LIVECASINO | Pragmatic Play LiveCasino | Pragmatic Play (Live Casino) | ✔ | ✔ | | | PRETTY | Pretty Gaming | Pretty Gaming | ✔ | ✔ | | | SAGAME | SA Gaming | SA Gaming | ✔ | ✔ | | | SEXY | Sexy Gaming | Sexy Gaming | ✔ | ✔ | | | VIVO | Vivo Gaming | Vivo Gaming | ✔ | - | | | WECASINO | WE Casino | WE Casino | ✔ | - | | | WINFINITY | Winfinity | Winfinity | ✔ | - | | | WM | WM Casino | WM Casino | ✔ | - | | | YEEBET | Yeebet | Yeebet | ✔ | - | | ### Sportbook | Product ID | Product Name | Description | Seamless | Transfer | Release | | ------------ | ------------ | ------------ | -------- | -------- | ------- | | AFB1188 | AFB1188 | AFB1188 | ✔ | - | | | AMBSPORTBOOK | AmbSportbook | AmbSportbook | ✔ | - | | | AOG | AOG | AOG | ✔ | - | | | COCKFIGHT | Cockfight | Cockfight | ✔ | - | | | DBSPORT | DB Sport | DB Sport | ✔ | - | | | FB_SPORT | FB Sport | FB Sport | ✔ | - | | | GA28 | GA28 | GA28 | ✔ | - | | | LALIKA | Lalika | Lalika | ✔ | - | | | MSPORT | M-Sport | M-Sport | - | ✔ | | | MUAYPAKYOK | Muaypakyok | Muaypakyok | ✔ | - | | | SABASPORTS | Saba Sport | Saba Sport | ✔ | - | | | SBO | Sbobet | Sbobet | ✔ | - | | | TFGAME | TF Gaming | TF Gaming | ✔ | - | | | UFABET | Ufabet+ | Ufabet+ | ✔ | - | | | UMBET | Umbet | Umbet | ✔ | - | | ### Game Card | Product ID | Product Name | Description | Seamless | Transfer | Release | | ---------- | ------------ | ----------- | -------- | -------- | ------- | | AMBPOKER | Ambpoker | Ambpoker | ✔ | ✔ | | | KINGMAKER | King Midas | King Midas | ✔ | - | | | KINGPOKER | KingPoker | KingPoker | ✔ | - | | | KSGAME | KS Game | KS Game | ✔ | ✔ | | | MIKIWORLD | Miki Worlds | Miki Worlds | ✔ | - | | | MINILUCK | Miniluck | Miniluck | ✔ | - | | ### Keno | Product ID | Product Name | Description | Seamless | Transfer | Release | | ---------- | ------------ | ----------- | -------- | -------- | ------- | | KENO | Keno | Keno | ✔ | - | | ## Language Lists | Value | Description | | ----- | ------------------ | | th | Thai | | en | English | | id | Bahasa Indonesia | | ja | Japanese | | ko | Korean | | ms | Malaysian | | my | Burmese | | vi | Vietnamese | | zh | Simplified Chinese | ## Supported currency | Currency | API | Report | Description | | -------- | --- | ------ | ----------------- | | THB | 1:1 | 1:1 | Thai Baht | | AUD | 1:1 | 1:1 | Australian Dollar | | BDT | 1:1 | 1:1 | Bangladeshi Taka | | CNY | 1:1 | 1:1 | Chinese Yuan | | EUR | 1:1 | 1:1 | Euro | | GBP | 1:1 | 1:1 | Pound sterling | | HKD | 1:1 | 1:1 | Hong Kong Dollar | | IDR | 1:1 | 1:1000 | Indonesian Rupiah | | INR | 1:1 | 1:1 | Indian Rupee | | JPY | 1:1 | 1:1 | Japanese Yen | | KHR | 1:1 | 1:1 | Cambodian Riel | | KRW | 1:1 | 1:1 | South Korean won | | LAK | 1:1 | 1:1000 | Laotian Kip | | MMK | 1:1 | 1:1000 | Myanmar Kyat | | MYR | 1:1 | 1:1 | Malaysian Ringgit | | PHP | 1:1 | 1:1 | Philippine Peso | | TWD | 1:1 | 1:1 | New Taiwan Dollar | | USD | 1:1 | 1:1 | US Dollar | | USDT | 1:1 | 1:1 | Tether (USDT) | | VND | 1:1 | 1:1000 | Vietnamese Dong | ## Supported turnOver | Product ID | Product Name | | -------------- | ------------- | | AFB1188 | AFB1188 | | ALLBET | AllBet | | AMBPOKER | Ambpoker | | AMBSPORTBOOK | AmbSportbook | | AOG | AOG | | BIGGAME | Big Gaming | | COCKFIGHT | Cockfight | | DBSPORT | DB Sport | | DREAM | Dream Gaming | | FB_SPORT | FB Sport | | GA28 | GA28 | | KINGMAKER | King Midas | | LALIKA | Lalika | | MIKIWORLD | Miki Worlds | | MUAYPAKYOK | Muaypakyok | | ONCASINO | ONLive | | PRETTY | Pretty Gaming | | SABASPORTS | Saba Sport | | SAGAME | SA Gaming | | SBO | Sbobet | | SEXY | Sexy Gaming | | TFGAME | TF Gaming | | UFABET | Ufabet+ | | UMBET | Umbet | | YEEBET | Yeebet |