> For the complete documentation index, see [llms.txt](https://help.sdocs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.sdocs.com/sdocs/advanced-template-logic/template-attributes/template-attributes-how-to-guides/how-to-generate-checks-and-banking-documents.md).

# How To: Generate Checks and Banking Documents

Use MICR and OCR attributes when a document must match bank processing requirements.

### Problem

You need to create checks with MICR encoding for bank processing.

### Solution

**Basic MICR Routing Number:**

```
{{!Check__c.RoutingNumber__c MICR="11"}}
```

**MICR with Custom Spacing:**

```
{{!Check__c.RoutingNumber__c MICR="11,-5"}}
{{!Check__c.RoutingNumber__c MICR="11,5"}}
```

**MICR Account Number:**

```
{{!Check__c.AccountNumber__c MICR="11"}}
```

**OCR for Check Numbers:**

```
{{!Check__c.CheckNumber__c CR="OCR-A,20,0"}}
```

### Complete Check Example

```
<div style="width: 8.5in; height: 3.5in; border: 1px solid #000; padding: 20px;">
  <div style="text-align: right;">
    {{!Check__c.Date__c format-date="MM/dd/yyyy"}}
  </div>

  <div style="margin-top: 20px;">
    Pay to the order of: <strong>{{!Check__c.Payee__c}}</strong>
  </div>

  <div style="text-align: right;">
    ${{!Check__c.Amount__c format-number="#,###.##"}}
  </div>

  <div>
    {{!Check__c.Amount_In_Words__c}} DOLLARS
  </div>

  <div style="margin-top: 40px; font-family: monospace;">
    {{!Check__c.RoutingNumber__c MICR="11"}} {{!Check__c.AccountNumber__c MICR="11"}} {{!Check__c.CheckNumber__c MICR="11"}}
  </div>
</div>
```

### MICR Character Reference

| Character | Meaning        |
| --------- | -------------- |
| `t`       | Transit symbol |
| `o`       | On-us symbol   |
| `a`       | Amount symbol  |
| `d`       | Dash symbol    |

### Tips

* Only digits and `t`, `o`, `a`, and `d` are transformed.
* Font size controls character width. `11` is standard.
* Spacing defaults to `0`.
* Use OCR for security numbers.
* Actual bank processing still requires magnetic ink toner.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.sdocs.com/sdocs/advanced-template-logic/template-attributes/template-attributes-how-to-guides/how-to-generate-checks-and-banking-documents.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
