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
Get invoicelines
curl --request GET \
--url https://api.maesn.dev/accounting/invoices/{invoiceId}/lineItems \
--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": [
{
"lineItemId": "1",
"itemId": "item id",
"description": "Line item description",
"discountItemAmount": 10,
"discountItemPercentage": 10,
"grossAmount": 119,
"itemsAmount": 100,
"name": "Line item name",
"quantity": 1,
"taxCode": "tax code",
"taxRatePercentage": 19,
"unitAmount": 100,
"updatedDate": "2021-01-01T00:00:00Z",
"createdDate": "2021-01-01T00:00:00Z"
}
]
}
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 filters:
lastModifiedAt
Support pagination: true
Support rawData: true
Supported Response Fields:
Note that quantity can be a decimal numeral.
Supported filters:
none
Support pagination: true
Support rawData: true
Supported Response Fields:
Note that quantity can be a decimal numeral.
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 filters:
lastModifiedAt
Support pagination: true
Support rawData: true
Supported Response Fields:
Note that quantity can be a decimal numeral.
ISO-8601 date format, e.g., 2024-01-01T00:00:00Z
ISO-8601 date format, e.g., 2024-01-01T00:00:00Z
Supported filters:
none
Support pagination: true
Support rawData: true
Supported Response Fields:
Note that quantity can be a decimal numeral.
ISO-8601 date format, e.g., 2024-01-01T00:00:00Z
ISO-8601 date format, e.g., 2024-01-01T00:00:00Z
Supported filters:
none
Support pagination: true
Support rawData: true
Supported Response Fields:
Note that quantity can be a decimal numeral.
ISO-8601 date format, e.g., 2024-01-01T00:00:00Z
Supported filters:
none
Support pagination: true
Support rawData: true
Supported Response Fields:
Note that quantity can be a decimal numeral.
Path Parameters
Query Parameters
5
, 10
, 20
, 50
, 100
Response
The response is of type object
.
Was this page helpful?
curl --request GET \
--url https://api.maesn.dev/accounting/invoices/{invoiceId}/lineItems \
--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": [
{
"lineItemId": "1",
"itemId": "item id",
"description": "Line item description",
"discountItemAmount": 10,
"discountItemPercentage": 10,
"grossAmount": 119,
"itemsAmount": 100,
"name": "Line item name",
"quantity": 1,
"taxCode": "tax code",
"taxRatePercentage": 19,
"unitAmount": 100,
"updatedDate": "2021-01-01T00:00:00Z",
"createdDate": "2021-01-01T00:00:00Z"
}
]
}