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

# Get a remittance's 835 (ERA)

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

Returns the electronic remittance advice for a remittance as a raw X12 835
document. Use the `id` from [List remittances](/api-reference/list-remittances);
every listed remittance is ready to fetch.

The response body is the 835 in X12 wire format, served as
`application/edi-x12`.

## Path parameters

<ParamField path="id" type="string" required>
  The remittance ID, as returned by [List
  remittances](/api-reference/list-remittances).
</ParamField>

## Query parameters

<ParamField query="download" type="string">
  Pass `1` to receive the 835 as a file download (sets a `Content-Disposition`
  attachment header). Omit to receive it inline.
</ParamField>

## Response

The 835 document in X12 wire format.

<ResponseField name="body" type="string">
  The raw X12 835, with `~` segment terminators.
</ResponseField>

<Info>
  An ID with no servable 835 — unknown, still under review, or not yet
  materialized — returns `404`. An ID belonging to an entity outside your
  granted scope returns `403`.
</Info>

<ResponseExample>
  ```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*1512345678**01*104902114*DA*2200002222*20260320~
  TRN*1*EFT202603200042*1512345678~
  CLP*PATIENT001*1*2000*1728*272*12*EFT202603200042*11~
  SE*6*0001~
  GE*1*1~
  IEA*1*000000001~
  ```
</ResponseExample>
