GET
/
ext
/
v1
/
ledger-accounts
Gets ledger accounts
curl --request GET \
  --url https://api.light.inc/rest/ext/v1/ledger-accounts
{
  "total": 123,
  "records": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "bankAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "cardAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "cashAndEquivalentsAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "code": 123,
      "label": "<string>",
      "type": "BANK",
      "status": "ACTIVE",
      "context": "<string>",
      "revaluateFxBalance": true,
      "companyEntities": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "code": "<string>",
          "parentCompanyEntityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "localCurrency": "USD",
          "displayName": "<string>",
          "vatNumber": "<string>",
          "name": "<string>",
          "address": {
            "country": "UNDEFINED",
            "city": "<string>",
            "state": "<string>",
            "zipcode": "<string>",
            "street": "<string>",
            "street2": "<string>"
          },
          "status": "ACTIVE",
          "createdAt": "2023-11-07T05:31:56Z",
          "updatedAt": "2023-11-07T05:31:56Z"
        }
      ],
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ]
}

Query Parameters

sort
string
Example:

"amount:desc,createdAt:asc"

filter
string
Example:

"state:in:IN_DRAFT|SCHEDULED|PAID,amount:gte:500"

limit
integer
offset
integer
searchTerm
string
ledgerFeature
enum<string>
Available options:
ALL,
CARD_TRANSACTIONS,
INVOICE_PAYABLES,
INVOICE_RECEIVABLES,
JOURNAL_ENTRIES,
PURCHASE_ORDERS,
REIMBURSEMENTS

Response

default - application/json;charset=UTF-8

default response

The response is of type object.