WSPN
Language
  • English
Version
  • V1.0
Wallet
Language
  • English
Version
  • V1.0
Wallet
Twitter
Telegram
Linkedin
  1. File Upload
  • 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
          POST
  1. File Upload

File Upload

Sandbox
https://wallet.test.wspn.io
Sandbox
https://wallet.test.wspn.io
POST
/openapi/v1/file/upload
This api is currently used to upload proof of transfer documents.
It's a pre-interface for Create Fiat Deposit.

Request

Body Params multipart/form-data
scene
integer 
required
At the moment, it's only 4.
Default:
4
Example:
4
documentType
integer 
required
At the moment, it's only 1.
Default:
1
Example:
1
file
file 
required
Support file format JPG/JPEG/PNG/PDF, file size can not be greater than 5M

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/file/upload' \
--form 'scene="4"' \
--form 'documentType="1"' \
--form 'file=@""'

Responses

🟢200成功
application/json
Body
header
object 
required
success
boolean 
required
result
object 
required
id
integer 
required
Example
{
    "header": {
        "success": true
    },
    "result": {
        "id": 620
    }
}
Modified at 2025-06-11 13:52:52
Previous
Sub Account/Api Key
Built with