GET
/
v1
/
businesses
/
{business_id}
/
ledger
/
entries
/
{entry_id}
curl https://sandbox.layerfi.com/v1/businesses/d2f6d97f-3345-4299-9ec2-468738c5d536/ledger/entries/0e81ec02-483a-4ade-8878-b8e731e14c0f \
  -H "Authorization: Bearer <access_token>"
{
    "data": {
        "type": "Ledger_Entry",
        "id": "8a01e025-c111-4360-b3e0-eecaf70a560e",
        "business_id": "f9baa8fd-9413-4bcf-810b-6d32604de649",
        "ledger_id": "0f4bb90e-1c43-4994-81e8-aac4dcd6e380",
        "agent": "API",
        "entry_type": "EXPENSE",
        "date": "2024-05-23T03:56:30.536048Z",
        "entry_at": "2024-05-01T19:00:00Z",
        "reversal_of_id": null,
        "reversal_id": null,
        "line_items": [
            {
                "id": "2fbae241-b7d2-4e9d-ae92-14d123e8beb3",
                "entry_id": "8a01e025-c111-4360-b3e0-eecaf70a560e",
                "account": {
                    "id": "50edc310-66ab-4380-b1de-0d52c24821b2",
                    "name": "Rent",
                    "stable_name": "RENT_EXPENSE",
                    "normality": "DEBIT",
                    "account_type": {
                        "value": "EXPENSE",
                        "display_name": "Expenses"
                    },
                    "account_subtype": {
                        "value": "OPERATING_EXPENSES",
                        "display_name": "Operating Expenses"
                    }
                },
                "amount": 250000,
                "direction": "DEBIT",
                "entry_at": "2024-05-01T19:00:00Z",
                "createdAt": "2024-05-23T03:56:30.536048Z"
            },
            {
                "id": "5d97051f-958b-4d26-a5f2-a90030c39e1e",
                "entry_id": "8a01e025-c111-4360-b3e0-eecaf70a560e",
                "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": 250000,
                "direction": "CREDIT",
                "entry_at": "2024-05-01T19:00:00Z",
                "createdAt": "2024-05-23T03:56:30.536048Z"
            }
        ],
        "invoice": null,
        "manual_entry": null,
        "source": {
            "type": "Transaction_Ledger_Entry_Source",
            "transaction_id": "073afbfd-e25d-4c62-b591-060740f00cf8",
            "external_id": "12345-Corp-1234-expense-243",
            "account_name": "Layer Demo Banking",
            "date": "2024-05-01T19:00:00Z",
            "amount": 250000,
            "direction": "DEBIT",
            "counterparty": "WeWork",
            "entity_name": "Bank Transaction",
            "display_description": "Layer Demo Banking transaction May 1"
        }
    }
}

Path Parameters

business_id
string
required

ID of the Business to retrieve the Journal Entry for.

entry_id
string
required

ID of the Journal Entry to retrieve.

Response

The retrieved Journal Entry

curl https://sandbox.layerfi.com/v1/businesses/d2f6d97f-3345-4299-9ec2-468738c5d536/ledger/entries/0e81ec02-483a-4ade-8878-b8e731e14c0f \
  -H "Authorization: Bearer <access_token>"
{
    "data": {
        "type": "Ledger_Entry",
        "id": "8a01e025-c111-4360-b3e0-eecaf70a560e",
        "business_id": "f9baa8fd-9413-4bcf-810b-6d32604de649",
        "ledger_id": "0f4bb90e-1c43-4994-81e8-aac4dcd6e380",
        "agent": "API",
        "entry_type": "EXPENSE",
        "date": "2024-05-23T03:56:30.536048Z",
        "entry_at": "2024-05-01T19:00:00Z",
        "reversal_of_id": null,
        "reversal_id": null,
        "line_items": [
            {
                "id": "2fbae241-b7d2-4e9d-ae92-14d123e8beb3",
                "entry_id": "8a01e025-c111-4360-b3e0-eecaf70a560e",
                "account": {
                    "id": "50edc310-66ab-4380-b1de-0d52c24821b2",
                    "name": "Rent",
                    "stable_name": "RENT_EXPENSE",
                    "normality": "DEBIT",
                    "account_type": {
                        "value": "EXPENSE",
                        "display_name": "Expenses"
                    },
                    "account_subtype": {
                        "value": "OPERATING_EXPENSES",
                        "display_name": "Operating Expenses"
                    }
                },
                "amount": 250000,
                "direction": "DEBIT",
                "entry_at": "2024-05-01T19:00:00Z",
                "createdAt": "2024-05-23T03:56:30.536048Z"
            },
            {
                "id": "5d97051f-958b-4d26-a5f2-a90030c39e1e",
                "entry_id": "8a01e025-c111-4360-b3e0-eecaf70a560e",
                "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": 250000,
                "direction": "CREDIT",
                "entry_at": "2024-05-01T19:00:00Z",
                "createdAt": "2024-05-23T03:56:30.536048Z"
            }
        ],
        "invoice": null,
        "manual_entry": null,
        "source": {
            "type": "Transaction_Ledger_Entry_Source",
            "transaction_id": "073afbfd-e25d-4c62-b591-060740f00cf8",
            "external_id": "12345-Corp-1234-expense-243",
            "account_name": "Layer Demo Banking",
            "date": "2024-05-01T19:00:00Z",
            "amount": 250000,
            "direction": "DEBIT",
            "counterparty": "WeWork",
            "entity_name": "Bank Transaction",
            "display_description": "Layer Demo Banking transaction May 1"
        }
    }
}