> ## Documentation Index
> Fetch the complete documentation index at: https://getlemma.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a remittance's 835 Electronic Remittance Advice (ERA)

> Retrieve a remittance's electronic remittance advice as raw X12 835.

> [!NOTE]
>
> /v1 remittance IDs (`canonical_payment_…`) are different from /v0 IDs (`remittance_…`) and are
> not interchangeable. Use /v1 IDs only with /v1 endpoints.

Returns the electronic remittance advice for a remittance as a raw X12 835 document. Use the `id` of a remittance whose `era_available` is `true` in [List remittances](https://getlemma.com/docs/api-reference/list-remittances-v1.md). Lemma generates an 835 for remittances it read from an EOB; a remittance that reached Lemma already as an 835, for example from a clearinghouse, has none to fetch and returns `404`.

When more than one EOB reported the same payment, the 835 comes from the EOB Lemma posted, otherwise from the most recently accepted one.

The response body is the 835 in X12 wire format, served as `application/edi-x12`. Files conform to the HIPAA 5010 ASC X12 835 (Health Care Claim Payment and Remittance Advice) standard, governed by Technical Report Type 3 (TR3) identifier 005010X221. See the [official X12 specification](https://ecommerce.x12.org/products/health-care-claim-payment-advice-005010-x221) for details.

## Path parameters

**id** `string` *required*

The remittance ID, as returned by [List remittances](https://getlemma.com/docs/api-reference/list-remittances-v1.md).

## Query parameters

**download** `string`

Pass `1` to receive the 835 as a file download (sets a `Content-Disposition` attachment header). Omit to receive it inline.

## Response

The 835 document in X12 wire format.

**body** `string`

The raw X12 835, with `~` segment terminators.

```edi 200 theme={null}
ISA*00* *00* *ZZ*LEMMA *ZZ*RECEIVER *260320*1200*^*00501*000000001*0*P*:~
GS*HP*LEMMA*RECEIVER*20260320*1200*1*X*005010X221A1~
ST*835*0001~
BPR*I*1728*C*ACH*CCP*01*021000021*DA*9081726354*1123456789**01*021000021*DA*123456789*20260320~
TRN*1*012321930571284*1123456789~
CLP*PATIENT001*1*2000*1728*272*12*CLM202603200042*11~
SE*5*0001~
GE*1*1~
IEA*1*000000001~
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.