# Connect Ramp

Connect Ramp with OAuth to automatically import cleared corporate card charges, refunds, cardholder memos, and attached receipts into Rastrata Cloud every day. Rastrata requests read-only access, never modifies your Ramp account, and queues imported charges in **For review** until you accept them.

If you self-host Rastrata or prefer a private Ramp Developer App key, install the open-source CLI plugin instead (`rastrata plugin install ramp`).

## Prerequisites

- **Rastrata role:** Owner.
- **Ramp role:** Ramp Admin.

## 1. Connect Ramp

1. Go to **Settings → Ramp** and click **Connect Ramp**.
2. Approve read-only access in Ramp for:

   - `transactions:read`: settled card charges, refunds, and cardholder memos.
   - `receipts:read`: attached receipt images, PDFs, and OCR line items.
   - `business:read`: business name and identifier.
3. Ramp redirects you back to Rastrata.

## 2. Select your credit card account

Select the liability account in your chart of accounts that tracks your Ramp card balance (for example, **Ramp Corporate Card**) and click **Save account**. Rastrata starts importing cleared transactions and receipts immediately.

## 3. Review and post

Imported charges appear in **Transactions → For review** with each cardholder's memo, Ramp category, and attached receipt. Receipts stay linked to posted journal entries and export automatically in your year-end CPA packet (`workpapers.csv` and `evidence.csv`).

Rastrata syncs daily after setup. Open **Settings → Ramp** to trigger **Sync now** or adjust the import start date with **Change start date**.

## Disconnect Ramp

Go to **Settings → Ramp**, open the menu, and click **Disconnect**. Rastrata revokes and deletes the encrypted OAuth token immediately. Existing transactions and receipts in your books remain untouched.
