> 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 formatting for 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
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=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
