WSPN
Language
  • English
Version
  • V1.0
Wallet
Language
  • English
Version
  • V1.0
Wallet
Twitter
Telegram
Linkedin
  1. Core Functionality
  • Introduction
  • Get Started
  • Signature
  • About WUSD
  • Webhook Service
  • Sandbox Environment
  • Blockchain Confirmations
  • Appendix
  • API Keys
  • 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
        • Create Fiat Deposit
        • Create Fiat Withdraw
        • Create Crypto Withdraw
        • Get Fiat Transaction
        • Get Exchange Rate
        • Create Mint/Redeem
        • Mint/Redeem History
        • Get Mint Redeem Receipt
        • Get Fiat Transaction Receipt
        • Get Crypto Transaction Receipt
      • User Account
        • Country List
        • Create
        • Batch Create
        • Kyb Submit
        • Kyb Batch Submit
        • Sub Account
        • Sub Account/Api Key
      • File Upload
        • File Upload
  1. Core Functionality

Quickstart: Withdraw to Bank

Learn the basics of sending funds from your WSPN account to an external bank account.
Sending funds from your WSPN Account to an external bank account is one of the most basic primitives (building blocks) enabled by the APIs. This quickstart walks through sending USD externally. You can follow the same steps when sending EUR as well.

1. Get an API key#

WSPN's APIs use API Keys as the mechanism to authenticate client requests. The API key must be set in the Authorization header of the request sent from your backend server, The format of the header is Bearer access_token.

2.Redeem Your USD#

If you have only WUSD but no USD in your account, you need to redeem your WUSD to USD before you can withdraw. If you have USD in your account, you can skip step 2 and proceed to the following operation.
You can use the Create Mint/Redeem API endpoint,Convert your WUSD into USD.
Request:
Response
{
    "header": {
        "success": true
    },
    "result": {
        "id": 250103125,
        "status": "COMPLETED",
        "sellCurrency": "USD",
        "buyCurrency": "WUSD",
        "sellAmount": "1000.00",
        "buyAmount": "900.00",
        "rate": "0.9000",
        "quoteId": "8598890293453060261",
        "createdTime": "2025-01-03 17:48:35",
        "completedTime": "2025-01-03 17:48:36"
    }
}

3. Add Remit Bank Info#

Before withdrawing fiat currency, you need to add your withdrawal bank account information to your WSPN account. To that end, you can use the Add Remit Info API endpoint.
In the following example make substitutions for the following placeholder keys:
Replace ${YOUR SIGNATURE DATA} with your signature data. To that end,you can use the Signature algorithm to get your signature data.
Replace ${YOUR Authorization DATA} with your access_token data.
Request:
Response
{
  "header": {
    "success": true
  },
  "result": {
    "id": 1216
  }
}

4. Create Fait withdraw request#

When your WSPN account has sufficient fiat funds available for withdraw, you can initiate a withdrawal request. Once approved by the administrator, you will receive the withdrawal funds. You can create a withdrawal request through the Create Fiat Withdraw API.
Request:
Response
{
  "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"
  }
}

5. Get Fiat Transaction Receipt#

After completing the fait withdrawal, you can generate a PDF format withdrawal report through the Get Fiat Transaction Receipt API.
Request:
Response
Content-Type: application/pdf
Content-Disposition: attachment; filename="Fiat-Withdraw-241105144643074
20241211001505.pdf"
content-length: 349724
šŸŽ‰ Congratulations. You have successfully withdrawal fiat using WSPN's APIs.
Modified atĀ 2025-05-27 14:24:53
Previous
Quickstart: Deposit via Funds Transfer
Next
Get Access Token
Built with