Skip to main content

Backend integration

Transfer Wallet API introduction

note

Provider - side which provides games (Aviatrix).

Partner - side which integrates games.

Brand - partner's casino website where users playing games and making bets.

Current document describes methods implemented by provider. Methods allow the partner to manage the player's balance on the provider's side.

important

Can not be combined with Seamless Wallet API

Transfer Wallet API methods

good to know

All POST requests contain the X-Auth-Signature HTTP header required to authenticate the host. That allows to refuse IP whitelisting during integration process. Otherwise, it deprives the provider of the ability to scale quickly (horizontally) without notifying the platform.

tip

Ask your integration manager for the base URL.

/transferwallet/launchGame

The method is used to get an URL for iFrame embedding.

Example of the request

POST /transferwallet/launchGame HTTP/1.1
Content-Type: application/json
Accept: application/json
X-Auth-Signature: <signature>

{
"cid": "someplatform",
"playerId": "john",
"productId": "nft-aviatrix",
"currency": "EUR",
"lang": "en",
"lobbyUrl": "https://someplatform.com",
"isDemo": false
}
ParameterDescriptionTypeRequirementsExplanation
cidunique brand identifierstringmandatoryvalue from URL parameters of games provider during integration
productIdgame identifierstringmandatoryavailable identifiers: nft-aviatrix, second-chance, aviatrix-fruits
playerIduser identifierstringmandatoryunique for a brand
currencybet currencystringmandatory3-5 symbols
langlanguage codestringoptionalformat code ISO 639-1. Default value is en
lobbyUrllobby urlstringoptionalneeded for redirects to brand homepage
isDemoisDemo= value true or falsestringoptionalneeded to enable the demo mode of the game. Required parameter for demo mode

Example of a response from the server

HTTP/1.1 200 OK

{
"url": "https://domain.com?cid=someplatform&productId=nft-aviatrix&sessionToken=abcd1234&lang=en&lobbyUrl=https://someplatform.com"
}
ParameterDescriptionTypeRequirementsExplanation
urlurl for iFrame embeddingstringmandatoryurl for front-end integration

/transferwallet/checkTx

The method is used to get a previously sent transaction.

Example of the request

POST /transferwallet/checkTx HTTP/1.1
Content-Type: application/json
Accept: application/json
X-Auth-Signature: <signature>

{
"cid": "someplatform",
"txId": "4df40f77-2b38-43f4-b264-1d850f5a6715"
}
ParameterDescriptionTypeRequirementsExplanation
cidunique brand identifierstringmandatoryvalue from URL parameters of games provider during integration
txIdtransaction identifierstringmandatoryidentifier from /transferwallet/deposit or /transferwallet/withdrawal requests

Example of a response from the server

HTTP/1.1 200 OK
{
"txId": "4df40f77-2b38-43f4-b264-1d850f5a6715",
"playerId": "john",
"type": "deposit",
"currency": "EUR",
"amount": 1234,
"createdAt": "2020-12-03T12:15:30.000Z",
"postTransactionBalance": 5678
}
ParameterDescriptionTypeRequirementsExplanation
txIdtransaction identifierstringmandatoryidentifier from /transferwallet/deposit or /transferwallet/withdrawal requests
playerIduser identifierstringmandatoryunique for a brand
typetransaction typestringmandatorypossible values: deposit or withdrawal
currencytransaction currencystringmandatory3-5 symbols
amounttransaction amountintegermandatoryamount in the format minor currency unit (given the cents, i.e. the number multiplied by 100)
createdAtcreation timestamptimestampmandatoryformat: yyyy-MM-dd’T’HH:mm:ss.SSSZ
postTransactionBalancecurrent balance after transactionintegermandatoryuser balance after transaction in the format minor currency unit (given the cents, i.e. the number multiplied by 100)

/transferwallet/getBalance

The method is used to get player's balances on the partner's side.

Example of the request

POST /transferwallet/getBalance HTTP/1.1
Content-Type: application/json
Accept: application/json
X-Auth-Signature: <signature>

{
"cid": "someplatform",
"playerId": "john"
}
ParameterDescriptionTypeRequirementsExplanation
cidunique brand identifierstringmandatoryvalue from URL parameters of games provider during integration
playerIduser identifierstringmandatoryunique for a brand

Example of a response from the server

HTTP/1.1 200 OK
{
"EUR": 1234,
"USD": 5678
}
ParameterDescriptionTypeRequirementsExplanation
Currency codeplayer's balance in the certain countintegermandatoryISO-4217-3 format.

/transferwallet/getHistory

The method is used to get list of deposit and withdrawal transactions. Response is sorted by createdAt in descending order.

Example of the request

POST /transferwallet/getHistory HTTP/1.1
Content-Type: application/json
Accept: application/json
X-Auth-Signature: <signature>

{
"cid": "someplatform",
"playerId": "john",
"limit": 20,
"from": "2020-12-03T12:15:30.000Z"
}
ParameterDescriptionTypeRequirementsExplanation
cidunique brand identifierstringmandatoryvalue from URL parameters of games provider during integration
playerIduser identifierstringmandatoryunique for a brand
limittransctions count limitstringoptional0 < limit < 100, default value: 20
fromtransactions with createdAt lower than from will be returnedtimestampoptionalformat: yyyy-MM-dd’T’HH:mm:ss.SSSZ

Example of a response from the server

HTTP/1.1 200 OK
[
{
"txId": "4df40f77-2b38-43f4-b264-1d850f5a6715",
"playerId": "john",
"type": "deposit",
"currency": "EUR",
"amount": 1234,
"createdAt": "2020-12-03T12:15:30.000Z",
"postTransactionBalance": 5678
}
]
ParameterDescriptionTypeRequirementsExplanation
txIdtransaction identifierstringmandatoryidentifier from /transferwallet/deposit or /transferwallet/withdrawal requests
playerIduser identifierstringmandatoryunique for a brand
typetransaction typestringmandatorydeposit or withdrawal
currencytransaction currencystringmandatory3-5 symbols
amounttransaction amountintegermandatoryamount in the format minor currency unit (given the cents, i.e. the number multiplied by 100)
createdAtcreation timestamptimestampmandatoryformat: yyyy-MM-dd’T’HH:mm:ss.SSSZ
postTransactionBalancecurrent balance after transactionintegermandatoryuser balance after transaction in the format minor currency unit (given the cents, i.e. the number multiplied by 100)

/transferwallet/getGameHistory

The method is used to get list of game transactions. Response is sorted by createdAt in descending order.

Example of the request

POST /transferwallet/getGameHistory HTTP/1.1
Content-Type: application/json
Accept: application/json
X-Auth-Signature: <signature>

{
"cid": "someplatform",
"productId": "nft-aviatrix",
"limit": 20,
"from": "2020-12-03T12:15:30.000Z"
}
ParameterDescriptionTypeRequirementsExplanation
cidunique brand identifierstringmandatoryvalue from URL parameters of games provider during integration
productIdgame identifierstringmandatoryavailable identifiers: nft-aviatrix, second-chance, aviatrix-fruits
limittransctions count limitstringoptional0 < limit < 100, default value: 50
fromtransactions with createdAt lower than from will be returnedtimestampoptionalformat: yyyy-MM-dd’T’HH:mm:ss.SSSZ

Example of a response from the server

HTTP/1.1 200 OK
[
{
"betId": "1a2b3c4d-6f5e-4d3c-b2a1-f6e5d4c3b2a1",
"playerId": "john",
"txId": "4df40f77-2b38-43f4-b264-1d850f5a6715",
"type": "bet",
"currency": "EUR",
"amount": 1234,
"createdAt": "2020-12-03T12:15:30.000Z",
"postTransactionBalance": 5678
}
]
ParameterDescriptionTypeRequirementsExplanation
betIdbet identifierstringmandatorycreated on the provider side
playerIduser identifierstringmandatoryunique for a brand
txIdtransaction identifierstringmandatoryin-game transaction identifier, generated on the provider side
typetransaction typestringmandatorybet, win, cancel or promoWin
currencytransaction currencystringmandatory3-5 symbols
amounttransaction amountintegermandatoryamount in the format minor currency unit (given the cents, i.e. the number multiplied by 100)
createdAtcreation timestamptimestampmandatoryformat: yyyy-MM-dd’T’HH:mm:ss.SSSZ
postTransactionBalancecurrent balance after transactionintegermandatoryuser balance after transaction in the format minor currency unit (given the cents, i.e. the number multiplied by 100)

/transferwallet/deposit

The method is used to deposit assets to player's balance.

Example of the request

POST /transferwallet/deposit HTTP/1.1
Content-Type: application/json
Accept: application/json
X-Auth-Signature: <signature>

{
"cid": "someplatform",
"playerId": "john",
"txId": "4df40f77-2b38-43f4-b264-1d850f5a6715",
"currency": "EUR",
"amount": 1234
}
ParameterDescriptionTypeRequirementsExplanation
cidunique brand identifierstringmandatoryvalue from URL parameters of games provider during integration
playerIduser identifierstringmandatoryunique for a brand
txIdtransaction identifierstringmandatoryidentifier from /transferwallet/deposit or /transferwallet/withdrawal requests
currencydeposit currencystringmandatory3-5 symbols
amountdeposit amountintegermandatoryISO-4217-3 format.

Example of a response from the server

HTTP/1.1 200 OK
{
"txId": "4df40f77-2b38-43f4-b264-1d850f5a6715",
"playerId": "john",
"currency": "EUR",
"balance": 1234
}
ParameterDescriptionTypeRequirementsExplanation
txIdtransaction identifierstringmandatoryidentifier from /transferwallet/deposit or /transferwallet/withdrawal requests
playerIduser identifierstringmandatoryunique for a brand
currencyplayer's balance currencystringmandatory3-5 symbols
balanceplayr's balance in the chosen currencyintegermandatoryISO-4217-3 format.

/transferwallet/withdraw

The method is used to withdraw assets from player's balance.

Example of the request

POST /transferwallet/withdraw HTTP/1.1
Content-Type: application/json
Accept: application/json
X-Auth-Signature: <signature>

{
"cid": "someplatform",
"playerId": "john",
"txId": "4df40f77-2b38-43f4-b264-1d850f5a6715",
"currency": "EUR",
"amount": 1234
}
ParameterDescriptionTypeRequirementsExplanation
cidunique brand identifierstringmandatoryvalue from URL parameters of games provider during integration
playerIduser identifierstringmandatoryunique for a brand
txIdtransaction identifierstringmandatoryidentifier from /transferwallet/deposit or /transferwallet/withdrawal requests
currencywithdrawal currencystringmandatory3-5 symbols
amountwithdrawal amountintegermandatoryISO-4217-3 format.

Example of a response from the server

HTTP/1.1 200 OK
{
"txId": "4df40f77-2b38-43f4-b264-1d850f5a6715",
"playerId": "john",
"currency": "EUR",
"balance": 1234
}
ParameterDescriptionTypeRequirementsExplanation
txIdtransaction identifierstringmandatoryidentifier from /transferwallet/deposit or /transferwallet/withdrawal requests
playerIduser identifierstringmandatoryunique for a brand
currencyplayer's balance currencystringmandatory3-5 symbols
balanceplayr's balance in the chosen currencyintegermandatoryISO-4217-3 format.