WSPN
Language
  • English
Version
  • V1.0
HomeWallet
Language
  • English
Version
  • V1.0
HomeWallet
Twitter
Telegram
Linkedin
  1. Transaction
  • Introduction
  • Get Started
  • Signature
  • What is WUSD
  • Webhook Service
  • Sandbox Environment
  • Blockchain Confirmations
  • Appendix
  • API Keys
  • Core Functionality
    • Core Functionality
    • Quickstart: Deposit via Blockchain Wallet
    • Quickstart: Withdraw via Blockchain Wallet
    • Quickstart: Deposit via Funds Transfer
    • Quickstart: Withdraw to Bank
  • Api Reference
    • Authentication
      • Get Access Token
      • Refresh Access Token
    • Wallet
      • Address
        • Get Deposit Address
        • Add Whitelist Address
        • Get Whitelist Address
        • Delete Whitelist Address
      • Remit Info
        • Get Deposit Remit Info
        • Add Remit Info
        • Edit Remit Info
        • Get Remit Info
        • Delete Remit Info
      • Transaction
        • Get Balance
          POST
        • Create Fiat Deposit
          POST
        • Create Fiat Withdraw
          POST
        • Create Crypto Withdraw
          POST
        • Get Fiat Transaction
          GET
        • Get Exchange Rate
          POST
        • Create Mint/Redeem
          POST
        • Mint/Redeem History
          POST
        • Get Mint Redeem Receipt
          POST
        • Get Fiat Transaction Receipt
          POST
        • Get Crypto Transaction Receipt
          POST
  1. Transaction

Create Fiat Withdraw

Developing
POST
/openapi/v1/fiat-transaction/withdraw
API to create fiat withdraw transaction record.
Will initiate a transfer of all the user's balance to the designated bank account
and notify the user once the transaction is completed.
Before creating the transaction, the corresponding fiat withdrawal bank account
must be added(3.2.2 Add Remit Info).

Request

Body Params text/plain
Example
FieldTypeRequiredMax LengthDescription
queryObjectY
currencyStringYcurrency of the remit bank account must be the same Currency
amountStringY20withdraw currency account all balance, decimal scale: 2, JPY: 0
remitInfoIdNumberY2^63 - 1From Get Remit Info Api Result Id
referenceNoStringN255This will be shown in your bank statement for reconciliation
purposeStringN255purpose of Transfer
requestIdStringY64A unique identifier for the request.
If the same request is sent again with the same requestId, it will be rejected to prevent duplicate processing.
Example:{ "query": { "currency": "USD", "amount": "1", "remitInfoId": 1205, "referenceNo": "This will be shown in your bank statement for reconciliation", "purpose": "purpose of Transfer", "requestId": "af5152a-4719-4b17b-v218a-b111bc21" } }

Request 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 --request POST 'https://wallet.test.wspn.io/openapi/v1/fiat-transaction/withdraw' \
--header 'Content-Type: text/plain' \
--data-raw '{
    "query": {
        "currency": "USD",
        "amount": "1",
        "remitInfoId": 1205, 
        "referenceNo": "This will be shown in your bank statement for reconciliation",  
        "purpose": "purpose of Transfer",
        "requestId": "af5152a-4719-4b17b-v218a-b111bc21"  
    }
}'

Responses

🟢200成功
application/json
Body
header
object 
required
success
boolean 
required
result
object 
required
id
integer 
required
currency
string 
required
amount
string 
required
type
string 
required
status
string 
required
transactionFee
string 
required
remitInfoId
integer 
required
referenceNo
string 
required
purpose
string 
required
createdTime
string 
required
Example
{
  "header": {
    "success": true
  },
  "result": {
    "id": 250103163226537,
    "currency": "USD",
    "amount": "1000.00",
    "type": "WITHDRAW",
    "status": "TO_BE_PROCESSED",
    "transactionFee": "0.00",
    "remitInfoId": 1216,
    "referenceNo": "623058099345455",
    "purpose": "purpose of Transfer",
    "createdTime": "2025-01-03 16:32:26"
  }
}
Previous
Create Fiat Deposit
Next
Create Crypto Withdraw
Built with