Rules

Get Rule

GET
/v1/households/{household_id}/rules/{rule_id}

Returns an active rule's priority, matching criteria, and actions. All set criteria must match for the rule to apply.

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.

rule_id*string

ID of the categorization rule.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api.penny.finance/v1/households/Hh4vK8pQ2sLm/rules/Rl9cF3nV7sQa" \  -H "Authorization: Bearer $PENNY_API_TOKEN"
{  "id": "Rl9cF3nV7sQa",  "priority": 1,  "account_ids": [    "Ac7kP2mN9qRs"  ],  "deleted_accounts": [],  "merchant_ids": null,  "deleted_merchants": [],  "category_ids": null,  "deleted_categories": [],  "amount_filter": {    "currency": "USD",    "direction": "expense",    "operator": "between",    "value": "20.00",    "value_upper": "200.00"  },  "classifications": [    "FOOD_AND_DRINK_GROCERIES"  ],  "name_conditions": [    {      "pattern": "trader joe",      "mode": "contains"    }  ],  "filter_uncategorized": false,  "set_category_id": "Ct5nR8wY1jFu",  "set_merchant_id": null,  "apply_tag_ids": [    "Tg8qN1cK5rWd"  ],  "deleted_tags": [],  "set_hidden": false,  "set_needs_review": null,  "applied_count": null}