Download File
Get file download URL by file ID.
HTTP Request
- GET
/api/v3/fiat/downloadFile
Required Permission: P2P Deal Order, P2P Deal Ad
Request Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| fileId | string | yes | File ID |
Response Parameters
| Name | Type | Description |
|---|---|---|
| fileUrl | string | File download URL |
Special Code Notes
| Code | Description | Action |
|---|---|---|
| 0 | Success | Use fileUrl normally |
| 80014 | File not yet security scanned | Retry after 10 seconds |
| 80015 | File security scan in progress | Retry after 10 seconds |
| 80016 | File unsafe | File blocked; cannot download |
Response
{
"msg": "success",
"code": 0,
"data": {
"fileUrl": "https://public.mocortech.com/banner/F202606111154155770Y69T5nuSFc5Tg.png"
}
}