WSPN
Language
  • English
Version
  • V1.0
HomeWallet
Language
  • English
Version
  • V1.0
HomeWallet
Twitter
Telegram
Linkedin
  1. Core Functionality
  • 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
        • 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
  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.
To obtain an API key for the sandbox environment, simply create an account and generate a new key in settings - it only takes a few seconds.
GET AN API KEY
Once you have generated your API key, record it in a secure place.

2. 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
  }
}

3. 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"
  }
}

4. 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.
Previous
Quickstart: Deposit via Funds Transfer
Next
Get Access Token
Built with