Paycools API Docs
Version
Version
  • v1
  • v2
Languages
Languages
  • English
  • 简体中文
Version
Version
  • v1
  • v2
Languages
Languages
  • English
  • 简体中文
  1. 2. Payment
  • Unified API Request Param
  • Unified Async Notification Param
  • Open API Common Code List
  • 1. Account
    • Country Code
    • 1.1 Balance Inquiry
      POST
    • 1.2 Report Download
      POST
    • 1.2 Balance Detail
      POST
  • 2. Payment
    • Payment Channel List
    • Wechat Webpage Authorization Reference
    • Wechat Calls Payment Reference
    • 2.1 Create Payment
      POST
    • 2.2 Check Payment Status
      POST
    • 2.3 Close Payment
      POST
    • 2.5 Payment Void
      POST
    • 2.4 Asynchronous Notification Of Payment Results
      POST
    • 2.6 Logistics Upload
      POST
    • 2.7 File Upload
      POST
  • 3. Payout
    • Payout Channel List
    • Account Verification Related Enum List
    • 3.1 Account Validation
      POST
    • 3.2 Check Account Validation Order Status
      POST
    • 3.3 Create Payout
      POST
    • 3.4 Check Payout Status
      POST
    • 3.5 Asynchronous Notification Of Payout Results
      POST
    • 3.6 Create Payout Batch
      POST
    • 3.7 Payout Batch Query
      POST
    • 3.8 Payout Batch Query Detail
      POST
    • 3.9 payout Batch Call Back
      POST
  • 4. Checkout
    • Checkout Payment Channel Code List
    • 4.1 Create Checkout Order
    • 4.5 Asynchronous Notification Of Checkout Payment Results
    • 4.2 Check Checkout Order status
    • 4.3 Get Checkout Order Available Channels
    • 4.4 Close Checkout Order
  • 5. Refund
    • Refund Support Channel List
    • Refund Status Enum
    • 5.1 Refund
    • 5.2 Get Refund Payments
    • 5.3 Asynchronous Notification Of Refund Results
  • 6. Direct Debit
    • Direct Debit Channel List
    • 6.1 Create Authorization Url
    • 6.2 Check Authorization Status
    • 6.3 Cancel Authorization
    • 6.4 Asynchronous Notification Of Authorization Results
  • 7. Split Payment
    • Split Payment Enumeration
    • 1. Relationship Proof File Upload
    • 2. Add Split Payment Receiver
    • 3. Query Split Payment Receiver
    • 4. Delete Split Payment Receiver
    • 5. Query Unsplit Amount
    • 6. Split Payment
    • 7. Query Split Payment Result
    • 8. Split Payment Return
    • 9. Query Split Payment Return Result API
  • 8. Validation Product
    • Payment Slip Validation
    • Payment Slip Validation Query
  • 9. cross-border payment
    • Query exchange rate quotation
  1. 2. Payment

2.7 File Upload

POST
/open-api/v1/file/upload

Description#

General file upload API. Files are uploaded as Base64-encoded content. On success, the file path filePath is returned for use by other business APIs.

Supported businessType#

businessTypeDescriptionUsage
SPLIT_PAYMENT_RECEIVER_RELATIONSplit payment receiver relationship proof fileUsed as relationProofUrl when adding a split payment receiver
LOGISTICS_ORDERLogistics order attachmentUsed as filePath in 2.6 Logistics Upload

Notes#

Supported file types: jpg, jpeg, png, pdf; maximum 5 MB per file.
The real file type is detected from the file content. If the content type differs from the file name extension, the detected type is used for storage.
A successful upload only returns the file path. It does not change any order or business status; call the corresponding business API to complete the submission.
The returned filePath is a relative OSS path. Pass it to the business API unchanged; do not prepend a domain or encode it again.

Request

Body Params application/jsonRequired

Example
{
    "appId": "733bxxxxxx6ded",
    "sign": "sign by param",
    "param": "{\"countryCode\":\"SA\",\"timestamp\":\"1762761600000\",\"businessType\":\"LOGISTICS_ORDER\",\"fileName\":\"logistics-20261110.pdf\",\"file\":\"JVBERi0xLjQK...\"}"
}

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 '/open-api/v1/file/upload' \
--header 'Content-Type: application/json' \
--data '{
    "appId": "733bxxxxxx6ded",
    "sign": "sign by param",
    "param": "{\"countryCode\":\"SA\",\"timestamp\":\"1762761600000\",\"businessType\":\"LOGISTICS_ORDER\",\"fileName\":\"logistics-20261110.pdf\",\"file\":\"JVBERi0xLjQK...\"}"
}'

Responses

🟢200Success
application/json
Bodyapplication/json

Example
{
    "code": 10000,
    "message": "Success",
    "data": {
        "filePath": "money/logistics/order/0bc0d889bf838875573d1241800a8f1b.pdf"
    }
}
Previous
2.6 Logistics Upload
Next
Payout Channel List
Built with