Get started
Integrations
Use cases
API reference
- Accounting
- Overview
- Accounts
- Async Task
- Contacts
- Customers
- Expenses
- Files
- Invoices
- Invoice Lines
- Items
- Journals
- Offers
- Offer Lines
- Projects
- Sales Orders
- Sales Order Lines
- Suppliers
- Tracking categories
- Transactions
- Authentication
- Tenant Management
- User
Files
Upload file
POST
/
accounting
/
files
curl --request POST \
--url https://api.maesn.dev/accounting/files \
--header 'Content-Type: multipart/form-data' \
--header 'X-ACCOUNT-KEY: <x-account-key>' \
--header 'X-API-KEY: <x-api-key>' \
--form 'note=<string>' \
--form 'documentType=<string>'
{
"meta": {
"warnings": [
"Field not used by target system"
],
"pagination": {
"total": 123,
"perPage": 123,
"currentPage": 123,
"totalPages": 123
}
},
"data": {
"id": "document id",
"fileName": "invoice.pdf",
"contentType": "application/pdf",
"base64Encoded": true,
"content": "content"
}
}
Test Api token:
663222ee
Test Account token:
85b30b51
Field support per integration
Response
200 - application/json
Was this page helpful?
curl --request POST \
--url https://api.maesn.dev/accounting/files \
--header 'Content-Type: multipart/form-data' \
--header 'X-ACCOUNT-KEY: <x-account-key>' \
--header 'X-API-KEY: <x-api-key>' \
--form 'note=<string>' \
--form 'documentType=<string>'
{
"meta": {
"warnings": [
"Field not used by target system"
],
"pagination": {
"total": 123,
"perPage": 123,
"currentPage": 123,
"totalPages": 123
}
},
"data": {
"id": "document id",
"fileName": "invoice.pdf",
"contentType": "application/pdf",
"base64Encoded": true,
"content": "content"
}
}