Uploading Files

Uploading Files

Sometimes, customers may want to upload files to accompany a transaction they're creating or as part of the account verification documents. Using this endpoint allows a customer upload such file to our storage system and then return the file url which can be further sent to the transaction creation endpoint to save the file alongside the other transaction details or the account verification endpoint . Files in this endpoint are photos .png, .jpg, .jpeg and documents .pdf, .doc, .docx, .xls.

post
Upload a file

https://api.vesicash.com/v1/upload/file
These are the parameters needed to make a transaction
Request
Response
Request
Headers
Accept
required
string
application/json
V-PRIVATE-KEY
required
string
your vesicash private key
Response
200: OK

This endpoint accepts only form request, not json data.

Send a form post request to this endpoint, passing in an array of form parameters files. For example, the image below shows how to upload multiple files using a form post data:

The response is shown below:

The urls in the response data can then be sent to the transaction endpoint when creating a transaction that requires file upload.