Businesses
- Business
- Financial Accounts
- Documents
- Scoped Authentication
- Configuration
- Tasks & Notifications
Financial Activity
- Accounts Receivable
- Accounts Payable
- Bank Transactions
- General Ledger
- Account Identifier
- Chart of Accounts object
- GETRetrieve Chart of Accounts
- GETList Account Balances
- Accounts
- Journal Entries
- Custom Journal Entries
- GETFetch Journal Entry
- GETList Journal Entries
- POSTReverse Journal Entry
- Tags
Accounting Reports
- Profit and Loss
- Balance Sheet
- Cash Flow Statement
Platform Configuration
- Plaid
- SMS
Activity Metrics
- Platform wide activity
- Business Activity
List Journal Entries
This endpoint retrieves all journal entries within a business’s general ledger.
curl https://sandbox.layerfi.com/v1/businesses/d2f6d97f-3345-4299-9ec2-468738c5d536/ledger/entries/ \
-H "Authorization: Bearer <access_token>"
{
"data": [
{
"type": "Ledger_Entry",
"id": "dda5d244-e04a-478a-bf84-c8328896d225",
"business_id": "f9baa8fd-9413-4bcf-810b-6d32604de649",
"ledger_id": "0f4bb90e-1c43-4994-81e8-aac4dcd6e380",
"agent": null,
"entry_type": "MATCH",
"date": "2024-05-23T03:54:44.991823Z",
"entry_at": "2024-05-10T19:00:00Z",
"reversal_of_id": null,
"reversal_id": null,
"line_items": [
{
"id": "fa6b8f20-cae0-4aaf-a3ec-c973dc9671a8",
"entry_id": "dda5d244-e04a-478a-bf84-c8328896d225",
"account": {
"id": "d7958e0f-770b-4389-8f14-aa48a72838d7",
"name": "Undeposited Funds",
"stable_name": "UNDEPOSITED_FUNDS",
"normality": "DEBIT",
"account_type": {
"value": "ASSET",
"display_name": "Assets"
},
"account_subtype": {
"value": "UNDEPOSITED_FUNDS",
"display_name": "Undeposited Funds"
}
},
"amount": 705000,
"direction": "CREDIT",
"entry_at": "2024-05-10T19:00:00Z",
"createdAt": "2024-05-23T03:54:44.991823Z"
},
{
"id": "69d848c9-37fe-4681-bcaa-7c65b44b2be2",
"entry_id": "dda5d244-e04a-478a-bf84-c8328896d225",
"account": {
"id": "5c114ae2-0e6f-4798-8e9a-f7e1c892e2fa",
"name": "Layer Demo Banking",
"stable_name": null,
"normality": "DEBIT",
"account_type": {
"value": "ASSET",
"display_name": "Assets"
},
"account_subtype": {
"value": "BANK_ACCOUNTS",
"display_name": "Bank Accounts"
}
},
"amount": 705000,
"direction": "DEBIT",
"entry_at": "2024-05-10T19:00:00Z",
"createdAt": "2024-05-23T03:54:44.991823Z"
}
]
},
],
"meta": {}
}
Path Parameters
ID of the Business to retrieve the Journal Entries for.
Query String Parameters
Filter for entries applied on or after the specified time. This filters the entry_at
field, not the created_at
time.
Filter for entries on or before the specified time. This filters the entry_at
field, not the created_at
time.
Filter for entries with a specific tag key. Both tag_key
and tag_values
must be specified to filter by tags.
Filter for entries with specific tag values. Multiple values for a specific key can be specified, separated by commas.
Both tag_key
and tag_values
must be specified to filter by tags.
Filter for entries associated with the customer specified by the given ID.
Filter for entries associated with the customer specified by the given external ID.
Filter for entries associated with the vendor specified by the given ID.
Filter for entries associated with the vendor specified by the given external ID.
Response
An array of retrieved Journal Entry objects
curl https://sandbox.layerfi.com/v1/businesses/d2f6d97f-3345-4299-9ec2-468738c5d536/ledger/entries/ \
-H "Authorization: Bearer <access_token>"
{
"data": [
{
"type": "Ledger_Entry",
"id": "dda5d244-e04a-478a-bf84-c8328896d225",
"business_id": "f9baa8fd-9413-4bcf-810b-6d32604de649",
"ledger_id": "0f4bb90e-1c43-4994-81e8-aac4dcd6e380",
"agent": null,
"entry_type": "MATCH",
"date": "2024-05-23T03:54:44.991823Z",
"entry_at": "2024-05-10T19:00:00Z",
"reversal_of_id": null,
"reversal_id": null,
"line_items": [
{
"id": "fa6b8f20-cae0-4aaf-a3ec-c973dc9671a8",
"entry_id": "dda5d244-e04a-478a-bf84-c8328896d225",
"account": {
"id": "d7958e0f-770b-4389-8f14-aa48a72838d7",
"name": "Undeposited Funds",
"stable_name": "UNDEPOSITED_FUNDS",
"normality": "DEBIT",
"account_type": {
"value": "ASSET",
"display_name": "Assets"
},
"account_subtype": {
"value": "UNDEPOSITED_FUNDS",
"display_name": "Undeposited Funds"
}
},
"amount": 705000,
"direction": "CREDIT",
"entry_at": "2024-05-10T19:00:00Z",
"createdAt": "2024-05-23T03:54:44.991823Z"
},
{
"id": "69d848c9-37fe-4681-bcaa-7c65b44b2be2",
"entry_id": "dda5d244-e04a-478a-bf84-c8328896d225",
"account": {
"id": "5c114ae2-0e6f-4798-8e9a-f7e1c892e2fa",
"name": "Layer Demo Banking",
"stable_name": null,
"normality": "DEBIT",
"account_type": {
"value": "ASSET",
"display_name": "Assets"
},
"account_subtype": {
"value": "BANK_ACCOUNTS",
"display_name": "Bank Accounts"
}
},
"amount": 705000,
"direction": "DEBIT",
"entry_at": "2024-05-10T19:00:00Z",
"createdAt": "2024-05-23T03:54:44.991823Z"
}
]
},
],
"meta": {}
}
curl https://sandbox.layerfi.com/v1/businesses/d2f6d97f-3345-4299-9ec2-468738c5d536/ledger/entries/ \
-H "Authorization: Bearer <access_token>"
{
"data": [
{
"type": "Ledger_Entry",
"id": "dda5d244-e04a-478a-bf84-c8328896d225",
"business_id": "f9baa8fd-9413-4bcf-810b-6d32604de649",
"ledger_id": "0f4bb90e-1c43-4994-81e8-aac4dcd6e380",
"agent": null,
"entry_type": "MATCH",
"date": "2024-05-23T03:54:44.991823Z",
"entry_at": "2024-05-10T19:00:00Z",
"reversal_of_id": null,
"reversal_id": null,
"line_items": [
{
"id": "fa6b8f20-cae0-4aaf-a3ec-c973dc9671a8",
"entry_id": "dda5d244-e04a-478a-bf84-c8328896d225",
"account": {
"id": "d7958e0f-770b-4389-8f14-aa48a72838d7",
"name": "Undeposited Funds",
"stable_name": "UNDEPOSITED_FUNDS",
"normality": "DEBIT",
"account_type": {
"value": "ASSET",
"display_name": "Assets"
},
"account_subtype": {
"value": "UNDEPOSITED_FUNDS",
"display_name": "Undeposited Funds"
}
},
"amount": 705000,
"direction": "CREDIT",
"entry_at": "2024-05-10T19:00:00Z",
"createdAt": "2024-05-23T03:54:44.991823Z"
},
{
"id": "69d848c9-37fe-4681-bcaa-7c65b44b2be2",
"entry_id": "dda5d244-e04a-478a-bf84-c8328896d225",
"account": {
"id": "5c114ae2-0e6f-4798-8e9a-f7e1c892e2fa",
"name": "Layer Demo Banking",
"stable_name": null,
"normality": "DEBIT",
"account_type": {
"value": "ASSET",
"display_name": "Assets"
},
"account_subtype": {
"value": "BANK_ACCOUNTS",
"display_name": "Bank Accounts"
}
},
"amount": 705000,
"direction": "DEBIT",
"entry_at": "2024-05-10T19:00:00Z",
"createdAt": "2024-05-23T03:54:44.991823Z"
}
]
},
],
"meta": {}
}