OnlinePay API
V2
V1
V2
V1
  1. Card
  • Introduction
    • Introduction
    • How to Start
    • Country Code
    • Country Info
    • Currency Code
    • Error Code
    • Transfer Order Info Type
    • Transfer Order File Type
    • Per Bank
    • Spei Bank
    • Vietnam Bank
    • V2 Signature Specification
  • Payin
    • Credit Card API
      POST
    • Alipay API
      POST
    • GCash API
      POST
    • WeChat API
      POST
    • PIX API
      POST
    • Crypto API
      POST
    • Union Pay API
      POST
    • SPEI API
      POST
    • SEPA API
      POST
    • Per Transfer API
      POST
    • Cash App API
      POST
    • Google Pay API
      POST
    • Apple Pay API
      POST
    • MONO API
      POST
    • Vietnam Bank API
      POST
    • CheckOut API
      POST
    • CheckOut Payment API
      POST
    • OnRamps API
      GET
  • Payout
    • PER Transfer Payout API
    • Checkout Payout API
    • Card Payout API
    • Bank Account Payout API
    • PIX Payout API
    • PER Transfer Payout API
    • SPEI Payout API
    • CashApp Payout API
    • Checkout Payout API
    • Query Payout Order API
    • Upload SEPA File API
  • Refund
    • Refund API
  • Card
    • Create Cardholder API
      POST
    • Create Card API
      POST
    • Active Card API
      POST
    • Freeze Card API
      POST
    • UnFreeze Card API
      POST
    • Cancel Card API
      POST
    • TopUp Card API
      POST
    • Card Withdraw API
      POST
    • Query Card Balance API
      POST
    • Query Card Info API
      POST
    • Query Card Transaction API
      POST
    • Add VPA Scene API
      POST
    • UploadFile API
      POST
  • Query
    • Query Payout Order API
    • Query Order API
    • QueryOrderList API
    • QueryBalance API
    • QueryOrderAmount API
  • Notify
    • Pay Notify WebHook API
    • Card Notify WebHook API
    • Refund Notify WebHook API
    • Chargeback Notify WebHook API
  • Schemas
    • UserArray
    • CheckStandV2Request
    • ApiResponse
    • PayoutCheckStandV2Request
    • QueryPayOutV2Request
    • V2EncryptedEnvelope
    • V2EncryptedNotification
    • PaymentNotificationPayload
    • ProductParams
    • Category
    • PayoutCheckStandV2Response
    • PaymentNotification
    • QueryPayOutV2Response
    • PayoutQueryResult
    • Pet
    • OrderQueryV2Data
    • PayoutCheckStandV2Data
    • CheckStandV2Response
    • RefundNotificationPayload
    • CheckStandV2Data
    • ChargebackNotificationPayload
    • Tag
    • OrderQueryV2Request
    • OrderQueryV2Response
    • Order
    • User
  1. Card

UploadFile API

Testing Env
https://testpay.onlinepay.ai
Testing Env
https://testpay.onlinepay.ai
POST
/v2/file/upload
V2 File Upload endpoint. Uses multipart/form-data with V2 signing rules.

Differences from V1#

signType is NOT a request parameter — resolved from merchant DB config (encryption field)
version field is required and must be V2.0.0
file field does NOT participate in signing
Signing parameters: merNo, type, version
Response does NOT include sign/signType (consistent with V1)

Note#

Access to this endpoint is restricted. Please contact us to request the necessary permissions before integration.

Request

Body Params multipart/form-data

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://testpay.onlinepay.ai/v2/file/upload' \
--form 'file=@""' \
--form 'type=""' \
--form 'merNo=""' \
--form 'sign=""' \
--form 'version=""'

Responses

🟢200
application/json
Bodyapplication/json

Example
{
    "code": "00000",
    "message": "SUCCESS",
    "data": "1727235173391.jpg"
}
Modified at 2026-05-26 04:16:58
Previous
Add VPA Scene API
Next
Query Payout Order API
Built with