Recurring transactions

Preview Recurring Transaction

POST
/v1/households/{household_id}/recurring-transactions/preview

Previews a recurring series before it is created: the transactions it would match from its start date, or from a year ago when that is later, and how many expected dates since then have no matching transaction.

Takes the same series fields as the create endpoint and validates them the same way. Matching runs alongside the household's saved series exactly as it would once this one is saved. This POST endpoint only previews matches, so read-only tokens and household viewers can call it.

Authorization

PersonalApiToken
AuthorizationBearer <token>

Personal API token (penny_pat_…). Paste only the token; the Bearer prefix is added automatically. Read-only tokens only allow read requests, and read/write tokens follow your current household membership and role. See https://penny.finance/docs/api#authentication.

In: header

Path Parameters

household_id*string

ID of the household that owns the resource. GET /v1/households lists the households you can access.

Request Body

application/json

merchant_id*string

ID of the merchant the series is tied to. Only transactions at this merchant can be matched to the series' occurrences.

amount*string

Expected amount of each occurrence in currency. Negative for expenses, positive for income; zero is rejected. The sign determines type. Transactions do not have to match it exactly, so an estimate works for a bill that varies. At most 38 digits in total, with at most 20 digits before the decimal point and 18 after it. Trailing fractional zeros do not count toward these limits.

Match(?:^[+-]?(?:0*[0-9]{1,20}(?:\.[0-9]{0,18}0*)?|0*[0-9]{0,20}\.[0-9]{1,18}0*|(?:[0-9]+\.?[0-9]*|\.[0-9]+)[eE][+-]?[0-9]+)$)$
currency?|

Currency of amount. Defaults to the household's currency when omitted or null.

frequency*RecurringFrequency

How often an occurrence is expected. every_week, every_2_weeks and every_4_weeks repeat every 7, 14 and 28 days from start_date; every_month, every_2_months, every_3_months, every_4_months, every_6_months and every_year repeat on start_date's day of the month, moved to the last day of a shorter month. twice_monthly_1st_15th falls on the 1st and 15th of every month and twice_monthly_15th_last on the 15th and the last day.

Value in

  • "every_week"
  • "every_2_weeks"
  • "every_4_weeks"
  • "twice_monthly_1st_15th"
  • "twice_monthly_15th_last"
  • "every_month"
  • "every_2_months"
  • "every_3_months"
  • "every_4_months"
  • "every_6_months"
  • "every_year"
start_date?|

Date of the first occurrence and the anchor every later occurrence is counted from. Required for every frequency except twice_monthly_1st_15th and twice_monthly_15th_last, which must omit it or send null; otherwise the request fails with invalid_frequency_fields.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.penny.finance/v1/households/Hh4vK8pQ2sLm/recurring-transactions/preview" \  -H "Authorization: Bearer $PENNY_API_TOKEN" \  -H "Content-Type: application/json" \  --data-raw '{  "merchant_id": "Mr4hT7wK2cNe",  "amount": "-17.99",  "currency": "USD",  "frequency": "every_month",  "start_date": "2026-03-09"}'
{  "since": "2026-03-09",  "matching_transactions": [    {      "id": "Tx6mD3rV9jHt",      "original_name": "NETFLIX.COM",      "custom_name": null,      "amount": {        "amount": "-17.99",        "currency": "USD"      },      "native_amount": {        "amount": "-17.99",        "currency": "USD"      },      "lat": null,      "lon": null,      "pending": false,      "classification": "ENTERTAINMENT_TV_AND_MOVIES",      "account": {        "id": "Ac7kP2mN9qRs",        "mask": "4821",        "name": "Everyday Checking",        "type": "depository",        "current_balance": {          "amount": "2481.33",          "currency": "USD"        },        "currency": "USD",        "household_id": "Hh4vK8pQ2sLm",        "custom_name": null      },      "category": {        "id": "Ct8fK2rB6yNd",        "name": "Subscriptions",        "emoji": "📺",        "category_type": "expense",        "group_id": null      },      "merchant": {        "id": "Mr4hT7wK2cNe",        "name": "Netflix",        "website": "https://www.netflix.com/",        "image_url": "https://cdn.penny.finance/merchants/netflix.png",        "default_image_url": "https://cdn.penny.finance/merchants/netflix.png",        "transaction_count": 6      },      "image_url": "https://cdn.penny.finance/merchants/netflix.png",      "image_kind": "merchant",      "tags": [],      "hidden_at": null,      "deleted_at": null,      "listing": "visible",      "pending_transaction_id": null,      "date": "2026-08-09",      "transacted_at": null,      "needs_review": false,      "is_editable": true,      "notes": null,      "created_at": "2026-08-09T11:12:04Z",      "updated_at": "2026-08-09T11:12:04Z",      "name": "NETFLIX.COM",      "split_parent_id": null,      "split_child_ids": [],      "is_recurring": false    },    {      "id": "Tx5pR1kM8cWn",      "original_name": "NETFLIX.COM",      "custom_name": null,      "amount": {        "amount": "-17.99",        "currency": "USD"      },      "native_amount": {        "amount": "-17.99",        "currency": "USD"      },      "lat": null,      "lon": null,      "pending": false,      "classification": "ENTERTAINMENT_TV_AND_MOVIES",      "account": {        "id": "Ac7kP2mN9qRs",        "mask": "4821",        "name": "Everyday Checking",        "type": "depository",        "current_balance": {          "amount": "2481.33",          "currency": "USD"        },        "currency": "USD",        "household_id": "Hh4vK8pQ2sLm",        "custom_name": null      },      "category": {        "id": "Ct8fK2rB6yNd",        "name": "Subscriptions",        "emoji": "📺",        "category_type": "expense",        "group_id": null      },      "merchant": {        "id": "Mr4hT7wK2cNe",        "name": "Netflix",        "website": "https://www.netflix.com/",        "image_url": "https://cdn.penny.finance/merchants/netflix.png",        "default_image_url": "https://cdn.penny.finance/merchants/netflix.png",        "transaction_count": 6      },      "image_url": "https://cdn.penny.finance/merchants/netflix.png",      "image_kind": "merchant",      "tags": [],      "hidden_at": null,      "deleted_at": null,      "listing": "visible",      "pending_transaction_id": null,      "date": "2026-07-09",      "transacted_at": null,      "needs_review": false,      "is_editable": true,      "notes": null,      "created_at": "2026-07-09T11:12:04Z",      "updated_at": "2026-07-09T11:12:04Z",      "name": "NETFLIX.COM",      "split_parent_id": null,      "split_child_ids": [],      "is_recurring": false    },    {      "id": "Tx6fT9bK2jMn",      "original_name": "NETFLIX.COM",      "custom_name": null,      "amount": {        "amount": "-17.99",        "currency": "USD"      },      "native_amount": {        "amount": "-17.99",        "currency": "USD"      },      "lat": null,      "lon": null,      "pending": false,      "classification": "ENTERTAINMENT_TV_AND_MOVIES",      "account": {        "id": "Ac7kP2mN9qRs",        "mask": "4821",        "name": "Everyday Checking",        "type": "depository",        "current_balance": {          "amount": "2481.33",          "currency": "USD"        },        "currency": "USD",        "household_id": "Hh4vK8pQ2sLm",        "custom_name": null      },      "category": {        "id": "Ct8fK2rB6yNd",        "name": "Subscriptions",        "emoji": "📺",        "category_type": "expense",        "group_id": null      },      "merchant": {        "id": "Mr4hT7wK2cNe",        "name": "Netflix",        "website": "https://www.netflix.com/",        "image_url": "https://cdn.penny.finance/merchants/netflix.png",        "default_image_url": "https://cdn.penny.finance/merchants/netflix.png",        "transaction_count": 6      },      "image_url": "https://cdn.penny.finance/merchants/netflix.png",      "image_kind": "merchant",      "tags": [],      "hidden_at": null,      "deleted_at": null,      "listing": "visible",      "pending_transaction_id": null,      "date": "2026-06-09",      "transacted_at": null,      "needs_review": false,      "is_editable": true,      "notes": null,      "created_at": "2026-06-09T11:12:04Z",      "updated_at": "2026-06-09T11:12:04Z",      "name": "NETFLIX.COM",      "split_parent_id": null,      "split_child_ids": [],      "is_recurring": false    },    {      "id": "Tx4yJ6mR8qLb",      "original_name": "NETFLIX.COM",      "custom_name": null,      "amount": {        "amount": "-17.99",        "currency": "USD"      },      "native_amount": {        "amount": "-17.99",        "currency": "USD"      },      "lat": null,      "lon": null,      "pending": false,      "classification": "ENTERTAINMENT_TV_AND_MOVIES",      "account": {        "id": "Ac7kP2mN9qRs",        "mask": "4821",        "name": "Everyday Checking",        "type": "depository",        "current_balance": {          "amount": "2481.33",          "currency": "USD"        },        "currency": "USD",        "household_id": "Hh4vK8pQ2sLm",        "custom_name": null      },      "category": {        "id": "Ct8fK2rB6yNd",        "name": "Subscriptions",        "emoji": "📺",        "category_type": "expense",        "group_id": null      },      "merchant": {        "id": "Mr4hT7wK2cNe",        "name": "Netflix",        "website": "https://www.netflix.com/",        "image_url": "https://cdn.penny.finance/merchants/netflix.png",        "default_image_url": "https://cdn.penny.finance/merchants/netflix.png",        "transaction_count": 6      },      "image_url": "https://cdn.penny.finance/merchants/netflix.png",      "image_kind": "merchant",      "tags": [],      "hidden_at": null,      "deleted_at": null,      "listing": "visible",      "pending_transaction_id": null,      "date": "2026-05-09",      "transacted_at": null,      "needs_review": false,      "is_editable": true,      "notes": null,      "created_at": "2026-05-09T11:12:04Z",      "updated_at": "2026-05-09T11:12:04Z",      "name": "NETFLIX.COM",      "split_parent_id": null,      "split_child_ids": [],      "is_recurring": false    },    {      "id": "Tx2hN4wC7pKs",      "original_name": "NETFLIX.COM",      "custom_name": null,      "amount": {        "amount": "-17.99",        "currency": "USD"      },      "native_amount": {        "amount": "-17.99",        "currency": "USD"      },      "lat": null,      "lon": null,      "pending": false,      "classification": "ENTERTAINMENT_TV_AND_MOVIES",      "account": {        "id": "Ac7kP2mN9qRs",        "mask": "4821",        "name": "Everyday Checking",        "type": "depository",        "current_balance": {          "amount": "2481.33",          "currency": "USD"        },        "currency": "USD",        "household_id": "Hh4vK8pQ2sLm",        "custom_name": null      },      "category": {        "id": "Ct8fK2rB6yNd",        "name": "Subscriptions",        "emoji": "📺",        "category_type": "expense",        "group_id": null      },      "merchant": {        "id": "Mr4hT7wK2cNe",        "name": "Netflix",        "website": "https://www.netflix.com/",        "image_url": "https://cdn.penny.finance/merchants/netflix.png",        "default_image_url": "https://cdn.penny.finance/merchants/netflix.png",        "transaction_count": 6      },      "image_url": "https://cdn.penny.finance/merchants/netflix.png",      "image_kind": "merchant",      "tags": [],      "hidden_at": null,      "deleted_at": null,      "listing": "visible",      "pending_transaction_id": null,      "date": "2026-04-09",      "transacted_at": null,      "needs_review": false,      "is_editable": true,      "notes": null,      "created_at": "2026-04-09T11:12:04Z",      "updated_at": "2026-04-09T11:12:04Z",      "name": "NETFLIX.COM",      "split_parent_id": null,      "split_child_ids": [],      "is_recurring": false    },    {      "id": "Tx9rV3aD5gWf",      "original_name": "NETFLIX.COM",      "custom_name": null,      "amount": {        "amount": "-17.99",        "currency": "USD"      },      "native_amount": {        "amount": "-17.99",        "currency": "USD"      },      "lat": null,      "lon": null,      "pending": false,      "classification": "ENTERTAINMENT_TV_AND_MOVIES",      "account": {        "id": "Ac7kP2mN9qRs",        "mask": "4821",        "name": "Everyday Checking",        "type": "depository",        "current_balance": {          "amount": "2481.33",          "currency": "USD"        },        "currency": "USD",        "household_id": "Hh4vK8pQ2sLm",        "custom_name": null      },      "category": {        "id": "Ct8fK2rB6yNd",        "name": "Subscriptions",        "emoji": "📺",        "category_type": "expense",        "group_id": null      },      "merchant": {        "id": "Mr4hT7wK2cNe",        "name": "Netflix",        "website": "https://www.netflix.com/",        "image_url": "https://cdn.penny.finance/merchants/netflix.png",        "default_image_url": "https://cdn.penny.finance/merchants/netflix.png",        "transaction_count": 6      },      "image_url": "https://cdn.penny.finance/merchants/netflix.png",      "image_kind": "merchant",      "tags": [],      "hidden_at": null,      "deleted_at": null,      "listing": "visible",      "pending_transaction_id": null,      "date": "2026-03-09",      "transacted_at": null,      "needs_review": false,      "is_editable": true,      "notes": null,      "created_at": "2026-03-09T11:12:04Z",      "updated_at": "2026-03-09T11:12:04Z",      "name": "NETFLIX.COM",      "split_parent_id": null,      "split_child_ids": [],      "is_recurring": false    }  ],  "missed_count": 0,  "claimed_count": 0,  "suggested_start": null}