> ## Documentation Index
> Fetch the complete documentation index at: https://next-developers.opencard.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Receipt Scanner (OCR)

> Use the OpenCard OCR receipt scanner API to upload photo receipts and get back structured merchant, amount, date, line item, and CO₂ data synchronously.

Your EMS can scan photo receipts directly — no webhook needed, synchronous API call.

```
POST /accounts/{accountId}/receipts/scan
Scope: receipts-write
```

```json theme={null}
{
  "receipt": "base64_encoded_image_here",
  "include": ["line_items", "environmental_impact"]
}
```

| Field     | Notes                                          |
| --------- | ---------------------------------------------- |
| `receipt` | Base64 image. Recommended width \~800px.       |
| `include` | Optional: `line_items`, `environmental_impact` |

Returns structured OCR data — merchant, amounts, dates, line items, optional CO₂ estimate.

Use case: employee uploads photo of paper receipt in your expense app → you call this API → get structured data back instantly. 📸
