Upload Invoice
const form = new FormData();
form.append('file', '<string>');
const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
options.body = form;
fetch('https://sandboxapi.me-cash.com/v1/file/invoice', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Operation completed successfully.",
"data": {
"id": "059c23af-eb87-4dc1-8518-8e335c98af30",
"name": "Bar Deco.jpeg"
}
}Payout
Upload Invoice
Uploads an invoice file for use with payout operations. The returned ID is used as the invoice identifier in subsequent payout requests.
POST
/
v1
/
file
/
invoice
Upload Invoice
const form = new FormData();
form.append('file', '<string>');
const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
options.body = form;
fetch('https://sandboxapi.me-cash.com/v1/file/invoice', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Operation completed successfully.",
"data": {
"id": "059c23af-eb87-4dc1-8518-8e335c98af30",
"name": "Bar Deco.jpeg"
}
}Documentation Index
Fetch the complete documentation index at: https://developer.me-cash.com/llms.txt
Use this file to discover all available pages before exploring further.
File Upload
The File Upload API allows you to upload documents such as invoices or receipts that may be required for certain types of payouts or compliance purposes.Use Case
When creating a payout, some corridors or transaction types might require supporting documentation (e.g., a business invoice). You can use this endpoint to upload the invoice first, and then reference the returnedid as the optional invoice field in your payout request.
Request Example
curl --location 'https://{{baseURL}}/v1/file/invoice' \
--header 'x-api-key: API_KEY_HERE' \
--form 'file=@"/path/to/your/invoice.jpeg"'
The endpoint expects a
multipart/form-data request with the file attached to the file field.Response
A successful upload returns anid which is used as the optional invoice field in subsequent payout requests.
{
"message": "File uploaded successfully",
"status": "success",
"data": {
"id": "059c23af-eb87-4dc1-8518-8e335c98af30",
"name": "Bar Deco.jpeg"
}
}
Authorizations
Body
multipart/form-data
The invoice file to be uploaded.
Was this page helpful?
⌘I

