Upload File
Uploads a document/file to the storage system and associates it with a customer.
This endpoint is used for uploading various types of documents including identity verification, financial statements, operation documents, and other customer-related files.
Endpoint
POST/v2/storage
Link
Request
Headers
Key
Value
Required
Authorization
123
Yes
Accept
application/json
Yes
Content-Type
multipart/form-data
Yes
Form Data Parameters
Parameter
Type
Description
Required
Example
customerId
string
Customer ID to associate the file with.
Yes
"cust_12345"
attach
file
File to upload (document, image, etc.)
Yes
document.pdf
Response (200 OK)
Returns the uploaded file metadata including storage details and identifiers.
Response Fields
File Object
Field
Type
Description
Example
partnerId
string
Partner ID associated with the file.
"partner_abc"
customerId
string
Customer ID the file is linked to.
"cust_12345"
id
string
Unique file ID in the storage system.
"file_78901"
name
string
Original file name.
"passport_scan.pdf"
size
integer
File size in bytes.
2048576
mime
string
MIME type of the file.
"application/pdf"
isLock
boolean
Lock status (if file is locked from modifications).
false
createAt
string
Creation timestamp.
"2024-05-20T10:30:00Z"
deletedAt
string
Deletion timestamp (if applicable).
"2019-08-24T14:15:22Z"
Examples
Request
bash
Response
json
Alternative Request using form-data
bash
Alternative Response
json
Error Responses
Invalid Customer ID:
json
File Too Large:
json
Unsupported File Type:
json
Unauthorized:
json
Missing Required Field:
json
Notes
File Size Limits: Typically supports files up to 50MB (check specific implementation limits)
Supported Formats: Common document and image formats (PDF, JPG, PNG, DOC, DOCX, etc.)
Security: Files are stored securely with access controls based on customer association
Metadata: File metadata is preserved and returned in the response
Locking: Files can be locked to prevent modifications or deletions
Deletion: Soft deletion is supported with
deletedAttimestamp
Common Use Cases:
Identity verification documents (passports, driver's licenses)
Financial statements and bank documents
Operation-related documentation
Customer onboarding materials
Compliance and regulatory documents
File Processing:
Files are validated for type and size
Virus scanning may be performed on upload
Metadata extraction (for supported formats)
Secure storage with backup and retention policies
Last updated

