curl --request POST \
--url https://api-test.paiera.com/v1/file/upload \
--header 'Authorization: Basic YOUR_BASE64_CREDENTIALS' \
--form file=@YOUR_LOCAL_FILE_PATH \
--form purpose=PAYMENT
{
"code": "success",
"message": "success",
"timestamp": 1793145600000,
"success": true,
"data": {
"file_id": "file_example_001",
"file_name": "invoice.pdf"
}
}
File
Upload File
Upload binary supporting documents.
curl --request POST \
--url https://api-test.paiera.com/v1/file/upload \
--header 'Authorization: Basic YOUR_BASE64_CREDENTIALS' \
--form file=@YOUR_LOCAL_FILE_PATH \
--form purpose=PAYMENT
{
"code": "success",
"message": "success",
"timestamp": 1793145600000,
"success": true,
"data": {
"file_id": "file_example_001",
"file_name": "invoice.pdf"
}
}
Upload binary files using
See Error codes and Webhooks.
multipart/form-data. The default request limit is 12 MB; deployment may increase it with extension-specific limits. Batch-payment file policies also apply.
Default file extensions are subject to configured limits and MIME checks:
| File category | Extensions |
|---|---|
| Images | jpg, jpeg, png, bmp |
| Documents | pdf, txt, md, doc, docx, xls, xlsx, ppt, pptx |
| Videos | mp4, mov, avi, mkv, webm, m4v |
Multipart Form Data
string
required
Upload a non-empty binary file. The default limit is 10 MB per file; deployment may override it by extension.
string(32)
Default PAYMENT
Upload purpose:
PAYOUT, WITHDRAW, KYB, KYC, PAYMENT or BATCH_PAYMENT.Response
The standard response envelope contains an object indata. See Upload result for all item fields. Check success and code even on HTTP 200.
string
Business result code. Use this value for programmatic handling.
string
Result description; do not parse the message to classify failures.
string
Included when tracing context exists.
integer
Response time as Unix epoch milliseconds.
boolean
Whether the operation succeeded; check this even on HTTP 200.
object
curl --request POST \
--url https://api-test.paiera.com/v1/file/upload \
--header 'Authorization: Basic YOUR_BASE64_CREDENTIALS' \
--form file=@YOUR_LOCAL_FILE_PATH \
--form purpose=PAYMENT
{
"code": "success",
"message": "success",
"timestamp": 1793145600000,
"success": true,
"data": {
"file_id": "file_example_001",
"file_name": "invoice.pdf"
}
}
