MG+ K2 Common Wallet API Integration Quick Guide
Breadcrumbs

FAQ

Common Wallet API

Which countries have restrictions on gameplay?

MG Asia exclusively caters to the Asian region, with restrictions placed on IP addresses from Taiwan and Singapore.

What features require IP whitelisting?

Whitelisting is required for API usage. There are no specific restrictions imposed on MG+ Backoffice.

Why am I receiving a 401 response?

If you are getting a 401 response, it is important to ensure that the authorization header of your API calls includes a valid authorization token.

Why am I receiving a 403 response?

If you are receiving a 403 response, it could be due to your IP address not being whitelisted. Please verify whether your IP address has been added to the whitelist.

Why am I receiving a 404 response?

If you are encountering a 404 response, please make sure to verify the following:

  1. Confirm that the API URL is accurate and includes /api/v1 in the path

  2. Ensure that the STS URL includes /connect/token

By checking these aspects, you can identify and resolve any issues related to the 404 response.

What time zone does the API use?

The API operates on the UTC+0 time zone by default, unless any other specific time zone is specified.

What is the content type needed for API calls?

For API calls, the required content type is application/x-www-form-urlencoded

Additionally, please set the Accept header to application/json to specify that you expect JSON content in the response.

STS Token

Can the token be used more than once?

Yes, the token can be reused until it expires, which occurs after 1 hour. We suggest refreshing the token after approximately 45-50 minutes to ensure uninterrupted access.

Does the previous token become invalid once a new token is requested?

No, the previous token remains valid until its own expiration time.

Games

Where can I find a list of games along with their game codes?

You have two options to obtain a list of games and their corresponding game codes:

  1. The Master Games List excel spreadsheet: You can refer to this spreadsheet to access a comprehensive list of games and their respective game codes.

  2. By calling the /agents/{agentCode}/games endpoint: You can make an API call to this endpoint with your agent code to retrieve a list of games and their associated game codes.

Wallet Transactions

How do I withdraw the entire balance in a wallet?

To withdraw the entire balance, use the POST /agents/{agentCode}/WalletTransactions endpoint. Ensure that the type is set to Withdraw and leave the amount parameter in the request body empty, or omit the amount parameter from the request.

Is there a transfer limit?

There is no transfer limit.