Read transaction lines
Read a list of transaction lines for a defined period, based on various filtering criteria.
Query parameters
-
The starting date (inclusive) from which transactions will be retrieved.
-
The ending date (exclusive) until which transactions will be retrieved. If set to 2024-01-01, the latest result will be retrieved before 23:59 on 2023-12-31.
-
transactionNumber number
The unique number representing the transaction.
-
transactionTypeId number
ID representing the type of transaction.
-
customerId number
ID of the customer involved in the transaction.
-
accountId number
ID of the account involved in the transaction.
-
accountNumber number
The number of the account involved in the transaction.
-
invoiceNumber string
The invoice number associated with the transaction.
-
currencyCode string
The currency code used in the transaction.
-
limit integer
The maximum number of transactions to retrieve.
Default value is
50
. -
page integer
The page number of the results to retrieve.
Default value is
1
.
curl \
-X GET https://rest.api.24sevenoffice.com/v1/transactionlines?dateFrom=2024-05-04&dateTo=2024-05-04 \
-H "Authorization: string"
[
{
"id": 7001,
"tax": {
"id": 2001,
"rate": 25
},
"date": "2022-07-01",
"amount": 1500,
"account": {
"id": 1000001,
"name": "Cash, NOK",
"number": 1900
},
"comment": "Payment for services",
"invoice": {
"number": "INV-2022-001",
"dueDate": "2022-08-01",
"remittanceReference": "OCR-123456789"
},
"currency": {
"code": "USD",
"rate": 10
},
"customer": {
"id": 6001
},
"createdAt": "2022-01-01T18:00:00Z",
"modifiedAt": "2023-12-31T18:00:00Z",
"transaction": {
"id": 3001,
"number": 1010
},
"transactionType": {
"id": 5001
}
},
{
"id": 7002,
"tax": {
"id": 2002,
"rate": 20
},
"date": "2022-07-15",
"amount": 2500,
"account": {
"id": 1000002,
"name": "Accounts Receivable",
"number": 1800
},
"comment": "Consulting fees",
"invoice": {
"number": "INV-2022-002",
"dueDate": "2022-08-15",
"remittanceReference": "OCR-987654321"
},
"currency": {
"code": "NOK",
"rate": 1
},
"customer": {
"id": 6002
},
"createdAt": "2022-02-01T12:00:00Z",
"modifiedAt": "2023-11-30T14:30:00Z",
"transaction": {
"id": 3002,
"number": 1020
},
"transactionType": {
"id": 5002
}
},
{
"id": 7003,
"tax": {
"id": 2003,
"rate": 15
},
"date": "2022-07-20",
"amount": 3000,
"account": {
"id": 1000003,
"name": "Inventory",
"number": 2000
},
"comment": "Product sales",
"invoice": {
"number": "INV-2022-003",
"dueDate": "2022-08-20",
"remittanceReference": "OCR-543216789"
},
"currency": {
"code": "NOK",
"rate": 1
},
"customer": {
"id": 6003
},
"createdAt": "2022-03-01T10:30:00Z",
"modifiedAt": "2023-10-31T16:45:00Z",
"transaction": {
"id": 3003,
"number": 1030
},
"transactionType": {
"id": 5003
}
}
]
[
{
"id": 7001,
"tax": {
"id": 2001,
"rate": 25
},
"date": "2022-07-01",
"amount": 1500,
"account": {
"id": 1000001,
"name": "Cash, NOK",
"number": 1900
},
"comment": "Payment for services",
"invoice": {
"number": "INV-2022-001",
"dueDate": "2022-08-01",
"remittanceReference": "OCR-123456789"
},
"currency": {
"code": "USD",
"rate": 10
},
"customer": {
"id": 6001
},
"createdAt": "2022-01-01T18:00:00Z",
"modifiedAt": "2023-12-31T18:00:00Z",
"transaction": {
"id": 3001,
"number": 1010
},
"transactionType": {
"id": 5001
}
},
{
"id": 7002,
"tax": {
"id": 2002,
"rate": 20
},
"date": "2022-07-15",
"amount": 2500,
"account": {
"id": 1000002,
"name": "Accounts Receivable",
"number": 1800
},
"comment": "Consulting fees",
"invoice": {
"number": "INV-2022-002",
"dueDate": "2022-08-15",
"remittanceReference": "OCR-987654321"
},
"currency": {
"code": "NOK",
"rate": 1
},
"customer": {
"id": 6002
},
"createdAt": "2022-02-01T12:00:00Z",
"modifiedAt": "2023-11-30T14:30:00Z",
"transaction": {
"id": 3002,
"number": 1020
},
"transactionType": {
"id": 5002
}
},
{
"id": 7003,
"tax": {
"id": 2003,
"rate": 15
},
"date": "2022-07-20",
"amount": 3000,
"account": {
"id": 1000003,
"name": "Inventory",
"number": 2000
},
"comment": "Product sales",
"invoice": {
"number": "INV-2022-003",
"dueDate": "2022-08-20",
"remittanceReference": "OCR-543216789"
},
"currency": {
"code": "NOK",
"rate": 1
},
"customer": {
"id": 6003
},
"createdAt": "2022-03-01T10:30:00Z",
"modifiedAt": "2023-10-31T16:45:00Z",
"transaction": {
"id": 3003,
"number": 1030
},
"transactionType": {
"id": 5003
}
}
]