文件上传
Endpoint
Sandbox
POST https://preapi.futurepay-develop.com/api/v1/reference/uploadProduction
POST https://api.futurepay.global/api/v1/reference/uploadContent-Type
multipart/form-dataRequest Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| merchantId | string | Yes | Merchant ID |
| evenType | string | Yes | Upload type (PAYER、EXPAND、TRADE_ORDER:货贸订单附件支持格式PNG/JPEG/JPG/PDF/DOCX/ZIP/RAR, 单个文件大小不超过20MB) |
| file | file | Yes | File to upload |
Request Example
form-data
| Key | Value |
|---|---|
| merchantId | 10000001 |
| evenType | PAYER |
| file | Netbank.png |
Response
| Field | Type | Description |
|---|---|---|
| materialId | string | Material ID |
| name | string | File name |
| path | string | File path |
| evenType | string | Upload type |
Response Example
{
"code": "0",
"msg": "succeeded",
"serverTime": 1755513374696,
"success": true,
"data": {
"materialId": "175551337469126061022",
"name": "Netbank.png",
"path": "business/acount/ee3bc1ced11548818cbba5aa4501803b.png",
"evenType": "PAYER"
}
}Updated 8 days ago
Did this page help you?