Get started
Integrations
Use cases
API reference
- Accounting
- Overview
- Accounts
- Async Task
- Bills
- Bookings
- Booking Proposals
- Contacts
- Customers
- Dimensions
- Expenses
- Files
- Invoices
- Invoice Lines
- Items
- Journals
- Journal Entries
- Offers
- Offer Lines
- Payments
- Payment Terms
- Projects
- Sales Orders
- Sales Order Lines
- Suppliers
- Tax Rates
- Transactions
- Vendor Credits
- 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 'documentDate= 2021-01-01T00:00:00Z' \
--form 'documentId= b5e624e5-fb9e-4836-a443-87a3820f5b48' \
--form 'documentType= Ausgangsrechnung' \
--form 'integrationSource= Third party app' \
--form 'note= Invoice 02-03-2023'
{
"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
Please ensure the query parameter companyId
is accurately populated with the appropriate company ID.
You can obtain this value by using the GET Companies
endpoint available under the Authentication section.
Supported Request Parameters:
Please ensure the query parameter companyId
is accurately populated with the appropriate company ID.
You can obtain this value by using the GET Companies
endpoint available under the Authentication section.
Supported Request Parameters:
Query Parameters
Company Id
Body
multipart/form-data
Example:
" Ausgangsrechnung"
Example:
" 2021-01-01T00:00:00Z"
Example:
" b5e624e5-fb9e-4836-a443-87a3820f5b48"
Example:
" Third party app"
Example:
" Invoice 02-03-2023"
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 'documentDate= 2021-01-01T00:00:00Z' \
--form 'documentId= b5e624e5-fb9e-4836-a443-87a3820f5b48' \
--form 'documentType= Ausgangsrechnung' \
--form 'integrationSource= Third party app' \
--form 'note= Invoice 02-03-2023'
{
"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"
}
}