# Bank SMS

> When your bank tells you about purchases and transfers only by SMS, your phone can pass each SMS to ReceiptFold - iPhone Shortcuts or MacroDroid on Android.

Some banks send a text message for every card purchase or transfer, and no email. ReceiptFold can read those too: your phone passes each SMS from your bank to a private address of yours, and the SMS lands in your file like a forwarded email. There is no ReceiptFold app to install.

## Turn it on

1. Open **Sources** and pick the source the SMS should belong to (or add one).
2. In **Source type**, choose **SMS (iPhone)** or **SMS (Android)**. The forwarding address and the mail steps give way to **Your SMS address** and the steps for that phone.
3. Copy **Your SMS address**. It looks like `https://inbound.receiptfold.com/v1/sms/…`.

Keep the address to yourself: anything sent to it lands in your file. If it leaks, press **New address**; the old one stops working at once. Switching the source back to an email type brings back its forwarding address and steps; SMS already set up keep arriving until you turn them off.

## iPhone: Shortcuts

The Shortcuts app runs an automation each time a message arrives, without asking (iOS 17 or later).

1. Open **Shortcuts** → **Automation** → **New Automation** → **Message**.
2. **Sender**: your bank, or **Message Contains**: your bank's name. Choose **Run Immediately**.
3. Add the action **Get Contents of URL** and paste your SMS address.
4. Set **Method** to **POST** and **Request Body** to **JSON**, with two fields:
   - `text` = **Shortcut Input** (the message content)
   - `from` = **Sender**
5. Save. Each new SMS from your bank goes through on its own.

## Android: MacroDroid

[MacroDroid](https://play.google.com/store/apps/details?id=com.arlosoft.macrodroid) is a free automation app on Google Play (up to five macros on the free plan; this needs one).

1. Install **MacroDroid** from Google Play and open it → **Add Macro**.
2. **Trigger**: **Call/SMS** → **SMS Received** → **Select Number**: your bank's sender as it appears in Messages (for example `ITAU`). Or **Any Number** with **Contains**: your bank's name, so your personal SMS never leave the phone. Allow the SMS permission.
3. **Action**: **Connectivity** → **HTTP Request**:
   - **Method**: POST, **URL**: your SMS address
   - **Query Params**: `from` = `{sms_name}`
   - **Content Body**: type `text/plain`, content `{sms_message}`
4. Save the macro. Each new SMS from your bank goes through on its own.

The text goes as a plain body, not inside JSON, so a message with quotes or line breaks always arrives whole.

### Without Google Play

[Incoming SMS to URL forwarder](https://f-droid.org/packages/tech.bogomolov.incomingsmsgateway/) is a free, open-source app on F-Droid (Google does not allow SMS forwarders on its store). Add a forwarding rule with your bank's sender, your SMS address as the URL, and the body `{"text":"%text%","from":"%from%"}`.

## What happens to each SMS

- Card purchases, payments and transfers become rows, with the shop as the vendor and your bank as the way you paid.
- One-time codes, balance alerts and other notices are left out.
- An SMS sent twice is read once.
- SMS count toward your plan's monthly receipts like forwarded emails.

The address also accepts a plain-text body (`text/plain`, with `?from=BANK` at the end of the address) or a form with the fields `text` and `from`, so most forwarding apps work as they are.
