# AMBSuperAPI — Transfer Wallet Integration Guide

> Everything needed to integrate the Transfer Wallet: create members, deposit, log in to games, withdraw, and query bet records.
>
> Generated from the AMBSuperAPI documentation on 2026-12-01. Links starting with `/` are pages of the documentation site.

---

# Part 1 — Getting started

---

<!-- source: /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)

---

<!-- source: /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"
  }
}
```

---

# Part 2 — Transfer APIs

---

<!-- source: /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

---

<!-- source: /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",
    ...
  ]
}
```

---

<!-- source: /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](/transfer/errorMessageTransfer.md#error-message) |
| `message` | string                 | Required | Additional information on response status                |
| `data`    | [GameData](/transfer/listGames.md#game-data) | Required | Game list data                                           |

### Game Data

| Property | Type            | Required | Description   |
| -------- | --------------- | -------- | ------------- |
| `games`  | [Game\[\]](/transfer/listGames.md#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](/transfer/listGames.md#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": "泰国博丁"
        }
      }
    ]
  }
}
```

---

<!-- source: /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](/transfer/errorMessageTransfer.md#error-message) |
| `message` | string                                  | Required | Additional information on response status                |
| `data`    | [CreateMemberData](/transfer/createmember.md#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](/transfer/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"
  }
}
```

---

<!-- source: /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](/transfer/errorMessageTransfer.md#error-message) |
| `message` | string                              | Required | Additional information on response status                |
| `data`    | [GetBalanceData](/transfer/getBalance.md#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](/transfer/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"
  }
}
```

---

<!-- source: /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](/transfer/errorMessageTransfer.md#error-message)         |
| `message` | string                       | Required | Additional information on response status |
| `data`    | [DepositData](/transfer/deposit.md#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](/transfer/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"
  }
}
```

---

<!-- source: /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](/transfer/errorMessageTransfer.md#error-message) |
| `message` | string                         | Required | Additional information on response status                |
| `data`    | [WithdrawData](/transfer/withdraw.md#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](/transfer/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"
  }
}
```

---

<!-- source: /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](/transfer/errorMessageTransfer.md#error-message) |
| `message` | string                                                     | Required | Additional information on response status                |
| `data`    | [VerifyDepositWithdrawData](/transfer/verify.md#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 <br>`true`: transaction has success<br>`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"
  }
}
```

---

<!-- source: /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.md#language-lists) (Example : th) |
| `betLimit`      | [BetLimits](/transfer/login.md#custom-bet-limit-config-for-transfer) | Optional | Player's bet limits                                                                             |
| `limit`         | number [See more](/transfer/login.md#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](/transfer/errorMessageTransfer.md#error-message) |
| `message` | string                   | Required | Additional information on response status                |
| `data`    | [LoginData](/transfer/login.md#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&currencySymbol=&isApp=false&gameCode=MX-LIVE-001&platform=SEXYBCRT&gameType=LIVE&isLaunchGame=true&language=&isNewGameHall=false",
    "username": "test00001"
  }
}
```

---

<!-- source: /transfer/getBetLimits.md -->

## Get BetLimits `GET` <a name="get-betlimitsv2-transfer"></a>

`GET` `Optional` Get bet limit setting symbol<br/>

### 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 }}&currency={{ 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](/transfer/errorMessageTransfer.md#error-message) |
| `message` | string                              | Required | Additional information on response status                |
| `data`    | [BetLimits\[\]](/transfer/getBetLimits.md#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\[\]](/transfer/getBetLimits.md#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
        }
      ]
    }
  ]
}
```

---

<!-- source: /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.](/transfer/customBetLimit.md#sport-type)                                          |
| `market_type`       | number | Required | [Market type code.](/transfer/customBetLimit.md#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         |

***

---

<!-- source: /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](/transfer/errorMessageTransfer.md#error-message) |
| `message` | string                        | Required | Additional information on response status                |
| `data`    | [Outstanding\[\]](/transfer/queryOutstanding.md#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\[\]](/transfer/queryOutstanding.md#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\[\]](/transfer/queryOutstanding.md#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](/transfer/queryOutstanding.md#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](/transfer/queryOutstanding.md#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
    }
  ]
}
```

---

<!-- source: /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 }}
```

<span style="color:red">**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.</span><br>

`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 }}
```

<span style="color:red">**Note:** query range should not be greater than 1 hour. If there's a request timeout, please reduce query range.</span><br>

<span style="color:red">**Limit:** `endTime - startTime` must not exceed 24 hours. A wider range returns HTTP 400 ([Time range error](/transfer/queryBetRecords.md#time-range-error)).</span><br>

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](/transfer/errorMessageTransfer.md#error-message) |
| `message` | string                               | Required | Additional information on response status                |
| `data`    | [QueryBetDataV2](/transfer/queryBetRecords.md#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\[\]](/transfer/queryBetRecords.md#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"
}
```

---

<!-- source: /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 }}
```

<span style="color:red">**Note:** This API support only transfer-wallet integration and data will be available after November 21, 2024 05:00:00.000 UTC </span><br>

<span style="color:red">**Limit:** `endTime - startTime` must not exceed 24 hours. A wider range returns HTTP 400 ([Time range error](/transfer/queryTransferBetRecords.md#time-range-error)).</span><br>

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](/transfer/errorMessageTransfer.md#error-message) |
| `message` | string                               | Required | Additional information on response status                |
| `data`    | [QueryBetDataV2](/transfer/queryTransferBetRecords.md#query-bet-data-v2) | Required | Query bet data                                           |

### Query Bet Data

| Property | Type          | Required | Description       |
| -------- | ------------- | -------- | ----------------- |
| `txns`   | [Txn\[\]](/transfer/queryTransferBetRecords.md#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"
}
```

---

<!-- source: /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](/transfer/errorMessageTransfer.md#error-message) |
| `message` | string                       | Required | Additional information on response status                |
| `data`    | [QueryReplay](/transfer/queryReplay.md#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"
  }
}
```

---

<!-- source: /transfer/setMemberPassword.md -->

## Set Member Password `POST`

<aside class="notice">Optional API: Product Slotxo only</aside>

### 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](/transfer/setMemberPassword.md#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"
  }
}
```

---

<!-- source: /transfer/getMemberAlias.md -->

## Get Member Alias `GET`

<aside class="notice">Optional API: Product Slotxo only</aside>

### 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](/transfer/errorMessageTransfer.md#error-message) |
| `message` | string                      | Required | Additional information on response status                |
| `data`    | [GetAlias](/transfer/getMemberAlias.md#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"
  }
}
```

---

<!-- source: /transfer/freegame.md -->

## Freegame

`Optional` This APIs use give a freegame to player under operator. <br/>
<span style="color:red">**Note:** The operator must take full responsibility for this bet themselves.</span><br>

### 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<br>`0`: success<br>`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
  }
}
```

---

<!-- source: /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](/transfer/errorMessageTransfer.md#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                                                           |

---

<!-- source: /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](/transfer/getAgentCredit.md#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"
  }
}
```

---

# Part 3 — Reference (products, currencies, languages)

---

<!-- source: /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        |
