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": {}
}
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": {}
}
entry_at
field, not the created_at
time.entry_at
field, not the created_at
time.tag_key
and tag_values
must be specified to filter by tags.tag_key
and tag_values
must be specified to filter by tags.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": {}
}