---
title: "Get the mapping of a ledger"
method: GET
path: "/{ledger}/mapping"
tags: ["ledger.v1"]
---

# Get the mapping of a ledger

`GET /{ledger}/mapping`

## Path parameters

- `ledger` string, required

## Response `200`

OK

- MappingResponse
  - `data` Mapping, nullable — Contracts constraining the balances a ledger's accounts may hold
    - `contracts` Contract[], required — Constraints enforced on the ledger's accounts
      - `account` string — Account address, or pattern, the contract applies to
      - `expr` object, required — Expression the account's balances must satisfy

## Other responses

- `default` — Error

---

[API](https://skmtc.dev/formancehq/apis/ledger-api.md) · [All operations](https://skmtc.dev/formancehq/apis/ledger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/formancehq/ledger-api/revisions/fe945da1b75d/schema)
