Transactions

Create Transaction

POST
/v1/households/{household_id}/transactions

Creates a posted transaction on a non-deleted manual account, using that account's currency (positive for income, negative for expenses). Provider-linked accounts reject manual entries with account_not_manual.

Referenced categories, merchants, and tags must belong to the household. Rules run before the transaction is returned, keeping any category or merchant you passed and adding matching tags.

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

account_id*string

Account to add the transaction to. It must be a manual account in the household that is not deleted; the transaction takes that account's currency.

name*string

What the transaction was for. It is stored as the transaction's original_name, with surrounding whitespace removed, and must not be blank.

Length1 <= length <= 255
amount*string

Amount in the account's currency, as a decimal string. Negative for an expense, positive for income; zero is rejected. It cannot be changed after creation. 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]+)$)$
date*string

Calendar date the transaction took place, with no time or time zone.

Formatdate
category_id?|

Category to file the transaction under. When omitted or null, the transaction starts uncategorized and the household's rules may assign one; a category given here is never overridden by rules.

merchant_id?|

Merchant to assign. When omitted or null, the transaction starts without a merchant and the household's rules may assign one; a merchant given here is never overridden by rules.

notes?|

Free-text note. Omitted or null creates the transaction without one.

tag_ids?array<string>

IDs of tags to attach, each an active tag in the household. The household's rules may add further tags.

Default[]

Response Body

application/json

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/transactions" \  -H "Authorization: Bearer $PENNY_API_TOKEN" \  -H "Content-Type: application/json" \  --data-raw '{  "account_id": "Ac7kP2mN9qRs",  "name": "Trader Joe'\''s",  "amount": "-54.20",  "date": "2026-08-14"}'
{  "id": "Tx3fJ9mS6vBa",  "original_name": "TRADER JOE'S #142",  "custom_name": "Weekly groceries",  "amount": {    "amount": "-54.20",    "currency": "USD"  },  "native_amount": {    "amount": "-54.20",    "currency": "USD"  },  "lat": 37.7764,  "lon": -122.4231,  "pending": false,  "classification": "FOOD_AND_DRINK_GROCERIES",  "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": "Ct5nR8wY1jFu",    "name": "Groceries",    "emoji": "🥬",    "category_type": "expense",    "group_id": "Cg2mV7pL4zXe"  },  "merchant": {    "id": "Mr9dL3xT6bQa",    "name": "Trader Joe's",    "website": "https://www.traderjoes.com/",    "image_url": "https://cdn.penny.finance/merchants/trader-joes.png",    "default_image_url": "https://cdn.penny.finance/logos/trader-joes.png",    "transaction_count": 18  },  "image_url": "https://cdn.penny.finance/merchants/trader-joes.png",  "image_kind": "merchant",  "tags": [    {      "id": "Tg8qN1cK5rWd",      "name": "Shared",      "color": "#6D5BD0"    }  ],  "hidden_at": null,  "deleted_at": null,  "listing": "visible",  "pending_transaction_id": null,  "date": "2026-08-14",  "transacted_at": "2026-08-14T15:38:00Z",  "needs_review": false,  "is_editable": true,  "notes": "Groceries and paper towels",  "created_at": "2026-08-14T15:41:27Z",  "updated_at": "2026-08-14T16:02:11Z",  "name": "Weekly groceries",  "split_parent_id": null,  "split_child_ids": [],  "is_recurring": false}