1. Integration Service
<Quantum> Milf Master
  • API
  • General Information
    • Change Log
    • Server Structure
  • Integration Service
    • 1. Version History
    • 2. Introduction
    • 3. Launching MilfMasters Game Client
    • 4. Wallet API
    • Verify Session
      POST
    • Get Balance
      POST
    • Withdraw
      POST
    • Confirm Withdraw
      POST
    • Rollback Withdraw
      POST
  • Entry Point
    • Entry Sequence
    • Entry Point
  • Payment
    • Payment Sequence
    • Payment Initiation
    • Payment Callback
    • Payment Callback API
      POST
    • Query Withdrawal
      POST
  • Data Types
    • Data Types
  • Schemas
    • Error Response Body
    • Balance Amount
  1. Integration Service

Withdraw

Developing
开发环境
https://mmaster.casual-tnl01.quantum-web-platform.com
开发环境
https://mmaster.casual-tnl01.quantum-web-platform.com
POST
/wallet/withdraw
A /withdraw request is sent whenever MilfMasters Game Client requests to withdraw (spend) money from players wallet.
The same /withdraw request must NOT be called multiple times, but ONLY once!
If the /withdraw request fails for ANY reason, a /rollbackWithdrawal request must be sent, to ensure that also Quantum Web Backend cancels the withdrawal.
If the /withdraw request succeed, the caller = MilfMasters Backend, must do any follow-up actions and finalize withdrawal with either /confirmWithdrawal = withdrawal succeed or /rollbackWithdrawal = withdrawal not finished successfully.

Request

Body Params application/json

Example
{
    "token": "0fabcdc4-fe07-44f2-b968-93da3b324898",
    "mmTransactionId": "1234abcd",
    "amount": {
        "amount": 230.00,
        "currencyCode": "XAG"
    },
    "txDescription": "Test Shopping."
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://mmaster.casual-tnl01.quantum-web-platform.com/wallet/withdraw' \
--header 'Content-Type: application/json' \
--data '{
    "token": "0fabcdc4-fe07-44f2-b968-93da3b324898",
    "mmTransactionId": "1234abcd",
    "amount": {
        "amount": 230.00,
        "currencyCode": "XAG"
    },
    "txDescription": "Test Shopping."
}'

Responses

🟢200OK
application/json
Bodyapplication/json

Example
{
    "mmTransactionId": "1234abcd",
    "qwTransactionId": "ef05411d-6c78-484c-910f-79d2aab8ccab",
    "balance": {
        "amount": 51800,
        "currencyCode": "XAG"
    }
}
🔴500服务器错误
Modified at 2023-08-24 13:42:28
Previous
Get Balance
Next
Confirm Withdraw
Built with