Get started
Integrations
Use cases
API reference
- Accounting
- Overview
- Accounts
- Async Task
- Bills
- 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
Journal Entries
Create journalentry attachment
POST
/
accounting
/
journalEntries
/
{journalEntryId}
/
Attachments
curl --request POST \
--url https://api.maesn.dev/accounting/journalEntries/{journalEntryId}/Attachments \
--header 'Content-Type: multipart/form-data' \
--header 'X-ACCOUNT-KEY: <x-account-key>' \
--header 'X-API-KEY: <x-api-key>'
{
"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
If you’re not using the Interactive Authentication Flow, make sure the query parameters environmentName
and companyId
are correctly populated.
You can obtain these values by using the GET Environments
and GET Companies
endpoints available under the Authentication section.
Supported Request Parameters:
Headers
API key
Example:
"example value"
Account key
Example:
"example value"
Path Parameters
Body
multipart/form-data
Response
200 - application/json
Was this page helpful?
curl --request POST \
--url https://api.maesn.dev/accounting/journalEntries/{journalEntryId}/Attachments \
--header 'Content-Type: multipart/form-data' \
--header 'X-ACCOUNT-KEY: <x-account-key>' \
--header 'X-API-KEY: <x-api-key>'
{
"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"
}
]
}