Invoices
Get Invoice Line Items
Retrieves line items for an invoice (paginated; default page size 100, max 1000 to stay under API Gateway 10 MB limit).
GET
/
invoices
/
{clientId}
/
{invoiceId}
/
line-items
Get Invoice Line Items
curl --request GET \
--url https://api.sandbox.flowpayroll.ai/v1/billing/invoices/{clientId}/{invoiceId}/line-items \
--header 'X-Auth-Token: <api-key>'{
"content": {
"data": {
"lineItems": [
{
"id": "<string>",
"invoiceId": "<string>",
"organisationId": "<string>",
"clientId": "<string>",
"employeeId": "<string>",
"employeeName": "<string>",
"description": "<string>",
"amount": 123,
"payElementId": "<string>",
"units": 123,
"chargeRate": 123,
"chargeUnits": 123,
"chargeValue": 123,
"date": "<string>",
"tags": [
{
"name": "<string>",
"group": "<string>",
"value": "<string>"
}
],
"createdDate": "<string>",
"createdBy": "<string>",
"attachments": [
{
"id": "<string>",
"lineItemId": "<string>",
"filename": "<string>",
"contentType": "<string>",
"fileSize": 123,
"uploadedDate": "<string>",
"uploadedBy": "<string>",
"s3Key": "<string>",
"source": "<string>",
"downloadUrl": "<string>",
"downloadUrlExpiresAt": "<string>"
}
],
"payElementDescription": "<string>",
"accountCode": "<string>",
"taxType": "<string>",
"quantity": 123,
"unitAmount": 123,
"lineAmount": 123,
"taxAmount": 123,
"poNumber": "<string>"
}
],
"paginationToken": "<string>",
"hasMorePages": true,
"pageSize": 123
},
"metadata": {
"dateFormat": "<string>",
"dateTimeFormat": "<string>"
}
},
"metadata": {
"dateFormat": "<string>",
"dateTimeFormat": "<string>"
},
"errors": [
{
"field": "<string>",
"reasonText": "<string>",
"reasonId": "<string>",
"reasonParameters": [
{
"key": "<string>",
"value": "<string>"
}
]
}
],
"message": {
"text": "<string>",
"textId": "<string>",
"textParameters": [
{
"key": "<string>",
"value": "<string>"
}
]
}
}Documentation Index
Fetch the complete documentation index at: https://docs.flowpayroll.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Authentication token for API access
Query Parameters
Was this page helpful?
⌘I
Get Invoice Line Items
curl --request GET \
--url https://api.sandbox.flowpayroll.ai/v1/billing/invoices/{clientId}/{invoiceId}/line-items \
--header 'X-Auth-Token: <api-key>'{
"content": {
"data": {
"lineItems": [
{
"id": "<string>",
"invoiceId": "<string>",
"organisationId": "<string>",
"clientId": "<string>",
"employeeId": "<string>",
"employeeName": "<string>",
"description": "<string>",
"amount": 123,
"payElementId": "<string>",
"units": 123,
"chargeRate": 123,
"chargeUnits": 123,
"chargeValue": 123,
"date": "<string>",
"tags": [
{
"name": "<string>",
"group": "<string>",
"value": "<string>"
}
],
"createdDate": "<string>",
"createdBy": "<string>",
"attachments": [
{
"id": "<string>",
"lineItemId": "<string>",
"filename": "<string>",
"contentType": "<string>",
"fileSize": 123,
"uploadedDate": "<string>",
"uploadedBy": "<string>",
"s3Key": "<string>",
"source": "<string>",
"downloadUrl": "<string>",
"downloadUrlExpiresAt": "<string>"
}
],
"payElementDescription": "<string>",
"accountCode": "<string>",
"taxType": "<string>",
"quantity": 123,
"unitAmount": 123,
"lineAmount": 123,
"taxAmount": 123,
"poNumber": "<string>"
}
],
"paginationToken": "<string>",
"hasMorePages": true,
"pageSize": 123
},
"metadata": {
"dateFormat": "<string>",
"dateTimeFormat": "<string>"
}
},
"metadata": {
"dateFormat": "<string>",
"dateTimeFormat": "<string>"
},
"errors": [
{
"field": "<string>",
"reasonText": "<string>",
"reasonId": "<string>",
"reasonParameters": [
{
"key": "<string>",
"value": "<string>"
}
]
}
],
"message": {
"text": "<string>",
"textId": "<string>",
"textParameters": [
{
"key": "<string>",
"value": "<string>"
}
]
}
}