Get started
Integrations
Use cases
API reference
- Accounting
- Overview
- Accounts
- Async Task
- Bills
- Bill Lines
- 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
Invoices
Get invoice document
GET
/
accounting
/
invoices
/
{invoiceId}
/
document
curl --request GET \
--url https://api.maesn.dev/accounting/invoices/{invoiceId}/document \
--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"
}
}
Field support per integration
Please note that the content in output is base64-encoded.
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 Companies
endpoint available under the Authentication section. Please use the id field as the companyId and the environmentId field as the environmentName.
Supported Response Fields:
Path Parameters
Query Parameters
Response
200 - application/json
The response is of type object
.
Was this page helpful?
curl --request GET \
--url https://api.maesn.dev/accounting/invoices/{invoiceId}/document \
--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"
}
}