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

Confirm Withdraw

Developing
开发环境
https://mmaster.casual-tnl01.quantum-web-platform.com
开发环境
https://mmaster.casual-tnl01.quantum-web-platform.com
POST
/wallet/confirmWithdrawal
A /confirmWithdrawal request is need after every successful withdrawal to correctly finalize the transaction.
In case of no successful response - for whatever reason - the /confirmWithdrawal request MUST be retried for a configurable period of time.
We suggest following retry pattern:
Immediately, 5s, 10s, 20s, 40s, 2min, 5min, 10min, 30min and then every hour for 48 hours. After the 48 hours no further retry will be tried automatically. But the Quantum Web Backend will use the Integration API to ask/query the final state (confirmed or rolled-back) of a withdrawal by providing its mmTransactionId.
The reference between the /confirmWithdrawal and the former /withdraw request, is the mmTransactionId.

Request

Body Params application/json

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

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/confirmWithdrawal' \
--header 'Content-Type: application/json' \
--data '{
    "token": "0fabcdc4-fe07-44f2-b968-93da3b324898",
    "mmTransactionId": "1234abcd",
    "amount": {
        "amount": 230.00,
        "currencyCode": "XAG"
    }
}'

Responses

🟢200OK
application/json
Bodyapplication/json

Example
{
    "mmTransactionId": "1234abcd",
    "balance": {
        "amount": 51800,
        "currencyCode": "XAG"
    }
}
🔴500服务器错误
Modified at 2023-08-24 13:42:54
Previous
Withdraw
Next
Rollback Withdraw
Built with