AMBSlot API Document
  • Seamless API Document
    • Table of Contents
    • Change Logs
    • Notice
    • Encryption & Decryption
    • AMBSlot Seamless Integration APIs
      • Seamless API - Create Member
      • Seamless API - Change Password
      • Seamless API - Get Game List
      • Seamless API - Get Online User
      • Seamless API - Launch Lobby Client
      • Seamless API – Launch Selected Game Client
      • Seamless API – Get Round Result
    • Operator Seamless Integration APIs
      • Seamless API – Get Balance
      • Seamless API – Bet
      • Seamless API – Payout
      • Seamless API – Settle
      • Seamless API – Cancel
  • Transfer API Document
    • Table of Contents
    • Change Logs
    • Notice
    • Encryption & Decryption
    • AMBSlot Transfer Integration APIs
      • Transfer API - Create Member
      • Transfer API - Change Password
      • Transfer API - Get Game List
      • Transfer API - Deposit
      • Transfer API - Withdraw
      • Transfer API - Check Available Balance
      • Transfer API - Launch Selected Game Client
      • Transfer API - Launch Lobby Client
      • Transfer API - Get Round Result
      • Transfer API - Get Key Transfer
      • Transfer API - Get Report By Date And Time
      • Transfer API - Get Report By Date
      • Transfer API - Get Report 10 Minutes
      • Transfer API - Report Time 10 Minutes
Powered by GitBook
On this page
  • Request URL
  • Request Body Parameters
  • Request Body Example
  • Response Parameters
  • Response Example
  1. Seamless API Document
  2. Operator Seamless Integration APIs

Seamless API – Settle

Settlement api was created to improve bet and payout performance by combined them together (Slot only). Operator need to prepare this api as well. If you have completed Settlement api, please inform us to set up.

“Please make sure the response is less than 5 seconds“

"Please make sure the received ip address was from AMBSlot only"

Request URL

[POST] [OPERATOR-API-Domain]/settle

Request Body Parameters

Parameter
Description
Type
Required?

username

Member username

String

Y

agent

Agent id that AMBSlot has provided

String

Y

game

Game name that user played

String

Y

gameId

Game code that user played

String

Y

roundId

Round id for each bet transaction

String

Y

amount

Payout Amount number that received

Double

Y

bet

Amount number that user bet (+)

Double

Y

winlose

Amount that player win

Number

Y

currency

Currency of amount

String

Y

transactionId

Reference id that refer to this transaction (unique)

String

Y

timestamp

Timestamp of this transaction

String

Y

turnover

Amount that user bet

Double

Y

isEndRound

If true. It’s last payout of current round

Boolean

Y

featureBuy

Feature buy freespin

Boolean

Y

Request Body Example

{
    "username": "member001",
    "agent": "agentId",
    "game": "Ghost House",
    "gameId": "GH",
    "roundId": "xxxxxxxxxx",
    "amount": 50,
    "bet": 50,
    "winlose": 50,
    "turnover": 250,
    "currency": "THB",
    "transactionId": "5e84b48e-7393-4789-ad96-f1429e783068",
    "timestamp": "2019-12-11T19:57:28.431",
    "isEndRound": true,
    "featureBuy": true,
}

Response Parameters

Status Object

Parameter
Description
Type
Required?

code

0: Success 800: Balance insufficient 900: Duplicate round id

908: Invalid username or token 995: Invalid game id 997: Invalid request data 998: Invalid agent id 999: Service not available 1600: Response error via axios 1601: Response error via axios timeout (Retry) 1602: Retry settle from AMBSlot

Number

Y

message

Error message

String

Y

Data Object

Parameter
Description
Type
Required?

username

Username that deduct balance to bet

String

Y

wallet

Contain latest balance and last update time

Object

Y

balance

Contain before and after transaction balance

Object

Y

refId

Reference id that refer to this transaction

String

Y

Response Example

{
    "status": {
        "code":0,
        "message": "Success"
    },
    "data": {
        "username": "member001",
        "wallet": {
            "balance": 0,
            "lastUpdate": "2019-12-01T18:01:51.686Z"
        },
        "balance": {
            "before": 10000,
            "after": 0
        },
        "refId": "5e84b48e-7393-4789-ad96-f1429e783068"
    }
}
PreviousSeamless API – PayoutNextSeamless API – Cancel

Last updated 2 years ago