Skip to main content
GET
/
accounting
/
invoices
/
{invoiceId}
/
lineItems
cURL
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": "987a2b3c-4d5e-6f7g-8h9i-0j1k2l3m4n5o",
      "accountId": "6733a433-9662-4a40-8e36-e38ebda94fe1",
      "createdDate": "2021-01-01T00:00:00Z",
      "description": "SEOUL Guest Chair, red",
      "dimensions": [
        {
          "id": "c1d2e3f4-5678-9abc-def0-1234567890ab",
          "categoryName": "CostCenter",
          "name": "C1"
        }
      ],
      "discountItemAmount": 10,
      "discountItemPercentage": 10,
      "grossAmount": 109,
      "itemsAmount": 100,
      "itemId": "9fc4f3a2-5b8e-4d1b-8a0c-9f6e7d2f3e4b",
      "name": "RED CHAIR",
      "quantity": 1,
      "taxCode": "03",
      "taxRatePercentage": 19,
      "unitAmount": 100,
      "updatedDate": "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: trueSupport rawData: true
Supported Response Fields:
lineItemId
string
itemId
string
description
string
discountItemAmount
number
discountItemPercentage
number
grossAmount
number
itemsAmount
number
quantity
number
Note that quantity can be a decimal numeral.
taxCode
string
taxRatePercentage
number
unitAmount
number
Supported filters: noneSupport pagination: trueSupport rawData: true
Supported Response Fields:
lineItemId
string
description
string
discountItemPercentage
number
grossAmount
number
itemsAmount
number
name
string
quantity
number
Note that quantity can be a decimal numeral.
taxRatePercentage
number
unitAmount
number
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: trueSupport rawData: true
Supported Response Fields:
lineItemId
string
itemId
string
discountItemPercentage
number
grossAmount
number
itemsAmount
number
name
string
quantity
number
Note that quantity can be a decimal numeral.
taxRatePercentage
number
unitAmount
number
updatedDate
string
ISO-8601 date format, e.g., 2024-01-01T00:00:00Z
createdDate
string
ISO-8601 date format, e.g., 2024-01-01T00:00:00Z
Supported filters: noneSupport pagination: trueSupport rawData: true
Supported Response Fields:
lineItemId
string
itemId
string
description
string
discountItemAmount
number
grossAmount
number
itemsAmount
number
name
string
quantity
number
Note that quantity can be a decimal numeral.
taxRatePercentage
number
unitAmount
number
updatedDate
string
ISO-8601 date format, e.g., 2024-01-01T00:00:00Z
createdDate
string
ISO-8601 date format, e.g., 2024-01-01T00:00:00Z
Supported filters: noneSupport pagination: trueSupport rawData: true
Supported Response Fields:
lineItemId
string
itemId
string
description
string
discountItemPercentage
number
grossAmount
number
itemsAmount
number
quantity
number
Note that quantity can be a decimal numeral.
taxRatePercentage
number
createdDate
string
ISO-8601 date format, e.g., 2024-01-01T00:00:00Z
Supported filters: noneSupport pagination: trueSupport rawData: true
Supported Response Fields:
lineItemId
string
description
string
dimensions
Dimension[]
discountItemAmount
number
discountItemPercentage
number
grossAmount
number
itemsAmount
number
itemId
string
name
string
quantity
number
Note that quantity can be a decimal numeral.
taxRatePercentage
number
unitAmount
number

Headers

X-API-KEY
string
required

API key

X-ACCOUNT-KEY
string
required

Account key

Path Parameters

invoiceId
string
required

Query Parameters

page
number
limit
enum<number>
Available options:
5,
10,
20,
50,
100
companyId
string
environmentName
string
rawData
boolean

Response

200 - application/json
meta
object
data
object[]
I