{"openapi":"3.1.0","info":{"title":"Penny API","version":"948dff3f8fbf","description":"Read and manage your household's accounts, transactions, categories, rules, recurring bills, and spending reports in Penny."},"paths":{"/v1/users/me":{"get":{"operationId":"get_current_user","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserWithHouseholdsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}}},"summary":"Get Current User","description":"Returns your profile, household memberships, selected household, and subscription summary.\n\nUse the household IDs returned here for household-scoped endpoints. Each household's `role` and `access_status` show what you can do in it.","tags":["users"],"security":[{"PersonalApiToken":[]}]},"patch":{"operationId":"update_current_user","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadOnlyToken"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Update Current User","description":"Updates your display name.\n\nSend only the fields you want to change; omitted fields keep their current values.","tags":["users"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]}},"/v1/users/me/image":{"put":{"operationId":"upload_user_image","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageUploadResponse"},"example":{"image_url":"https://cdn.penny.finance/users/Us2mH7qB5kLp.png"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageInvalidFileType"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadOnlyToken"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageFileTooLarge"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Upload User Image","description":"Uploads or replaces your profile image.\n\nUpload as the `file` field in a `multipart/form-data` request. Must be JPEG, PNG, or WebP, at most 5 MiB (5,242,880 bytes) and 25 million decoded pixels across all animation frames.","tags":["users"],"requestBody":{"content":{"multipart/form-data":{"schema":{"properties":{"file":{"format":"binary","type":"string"}},"required":["file"],"type":"object"}}},"required":true},"security":[{"PersonalApiToken":[]}]},"delete":{"operationId":"delete_user_image","parameters":[],"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadOnlyToken"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageNoImage"}}}}},"summary":"Delete User Image","description":"Removes your uploaded profile image. Profile responses return `image_url: null` afterward.","tags":["users"],"security":[{"PersonalApiToken":[]}]}},"/v1/households":{"get":{"operationId":"list_households","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseholdListResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}}},"summary":"List Households","description":"Returns every household you belong to, with its currency, time zone, week start, preferences, and your role. The full list is returned without pagination.\n\nCheck `access_status` before calling a household's financial endpoints.","tags":["households"],"security":[{"PersonalApiToken":[]}]},"post":{"operationId":"create_household","parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseholdResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadOnlyToken"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Create Household","description":"Creates a household with the given name, reporting currency, time zone, and week start, and makes you its owner.\n\nNew households start with default categories, default preferences, and a manual Cash account.","tags":["households"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateHouseholdRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}":{"get":{"operationId":"get_household","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseholdResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}}},"summary":"Get Household","description":"Returns a household you belong to, with its currency, time zone, week start, preferences, and your role.\n\nReadable by all roles, including viewers, even if the household's subscription has lapsed. Check `access_status` to see whether its financial data is available.","tags":["households"],"security":[{"PersonalApiToken":[]}]},"patch":{"operationId":"update_household","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseholdResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Update Household","description":"Updates a household's name, reporting currency, time zone, or week start. Owner only.\n\nSend only the fields you want to change. Changing the reporting currency updates converted totals while accounts keep their native currencies. The time zone sets which calendar day counts as today in reports and recurring schedules.","tags":["households"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateHouseholdRequest"},"example":{"name":"Rivera Household","week_start":"monday"}}},"required":true},"security":[{"PersonalApiToken":[]}]},"delete":{"operationId":"delete_household","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}}},"summary":"Delete Household","description":"Permanently deletes the household and all of its financial data for every member. Owner only, including when the subscription has lapsed.\n\nThis cannot be undone. Request and download a data export first if you want a copy.","tags":["households"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/members":{"get":{"operationId":"list_household_members","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseholdMembersResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}}},"summary":"List Household Members","description":"Returns the household's current members and pending invitations.\n\nReadable by all roles, including viewers, even if the household's subscription has lapsed.","tags":["households"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/image":{"put":{"operationId":"upload_household_image","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageUploadResponse"},"example":{"image_url":"https://cdn.penny.finance/households/Hh4vK8pQ2sLm.png"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageInvalidFileType"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageFileTooLarge"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Upload Household Image","description":"Uploads or replaces the household's image. Owner only.\n\nUpload as the `file` field in a `multipart/form-data` request. Must be JPEG, PNG, or WebP, at most 5 MiB (5,242,880 bytes) and 25 million decoded pixels across all animation frames.","tags":["households"],"requestBody":{"content":{"multipart/form-data":{"schema":{"properties":{"file":{"format":"binary","type":"string"}},"required":["file"],"type":"object"}}},"required":true},"security":[{"PersonalApiToken":[]}]},"delete":{"operationId":"delete_household_image","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageNoImage"}}}}},"summary":"Delete Household Image","description":"Removes the household's uploaded image. Owner only; household responses return `image_url: null` afterward.","tags":["households"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/preferences":{"get":{"operationId":"get_household_preferences","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseholdPreferences"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}}},"summary":"Get Household Preferences","description":"Returns the household's shared display preferences, such as whether to show recurring suggestions and advanced transaction details.\n\nThese settings apply to everyone in the household. Viewers can read them.","tags":["households"],"security":[{"PersonalApiToken":[]}]},"patch":{"operationId":"update_household_preferences","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseholdPreferences"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Update Household Preferences","description":"Updates the household's shared display preferences. Requires a member or owner role.\n\nSend only the fields you want to change; omitted preferences keep their current values. Changes apply to everyone in the household.","tags":["households"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateHouseholdPreferencesRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/merchants":{"post":{"operationId":"create_merchant","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuplicateName"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Create Merchant","description":"Creates a merchant in the household for transactions and recurring series.\n\nThe name must be unique among active household merchants. Include `website` if you have it to help identify the merchant.","tags":["merchants"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMerchantRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]},"get":{"operationId":"list_merchants","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"query","name":"cursor","schema":{"description":"The `next_cursor` from the previous page. Omit it to start from the first page.","examples":["eyJkYXRlIjoiMjAyNi0wOC0xNCIsImlkIjoiVHgzZko5bVM2dkJhIn0"],"type":"string"},"required":false,"description":"The `next_cursor` from the previous page. Omit it to start from the first page."},{"in":"query","name":"limit","schema":{"description":"The most results to return in one page.","examples":[50],"maximum":200,"minimum":1,"type":"integer"},"required":false,"description":"The most results to return in one page."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantListResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidCursor"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"List Merchants","description":"Returns all active merchants in the household, with display images and visible transaction and recurring-series counts.\n\nDeleted merchants are excluded; merchants with zero transactions are included. Returns every result in one page unless you set `limit`. When `has_more` is `true`, pass `next_cursor` as `cursor` for the next page.","tags":["merchants"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/merchants/{merchant_id}":{"get":{"operationId":"get_merchant","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"merchant_id","schema":{"description":"ID of the merchant.","examples":["Mr9dL3xT6bQa"],"type":"string"},"required":true,"description":"ID of the merchant."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantNotFound"}}}}},"summary":"Get Merchant","description":"Returns an active merchant with its website, image URL, and transaction and recurring-series counts.","tags":["merchants"],"security":[{"PersonalApiToken":[]}]},"patch":{"operationId":"update_merchant","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"merchant_id","schema":{"description":"ID of the merchant.","examples":["Mr9dL3xT6bQa"],"type":"string"},"required":true,"description":"ID of the merchant."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantNotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuplicateName"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Update Merchant","description":"Updates a merchant's name or website everywhere it appears in the household.\n\nSend only the fields you want to change; omitted fields keep their current values. Send `website: null` to clear the website (`name` cannot be `null`). The name must stay unique among active household merchants.","tags":["merchants"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMerchantRequest"},"example":{"name":"Trader Joe's"}}},"required":true},"security":[{"PersonalApiToken":[]}]},"delete":{"operationId":"delete_merchant","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"merchant_id","schema":{"description":"ID of the merchant.","examples":["Mr9dL3xT6bQa"],"type":"string"},"required":true,"description":"ID of the merchant."}],"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantNotFound"}}}}},"summary":"Delete Merchant","description":"Deletes a merchant and clears it from all transactions, including those on deleted accounts. The transactions themselves are kept.\n\nAlso permanently removes the merchant's recurring series and dismissed recurring suggestions. Rules that reference the merchant keep it in `deleted_merchants`, match none of its transactions, and stop assigning it.","tags":["merchants"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/merchants/{merchant_id}/image":{"put":{"operationId":"upload_merchant_image","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"merchant_id","schema":{"description":"ID of the merchant.","examples":["Mr9dL3xT6bQa"],"type":"string"},"required":true,"description":"ID of the merchant."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageUploadResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageInvalidFileType"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantNotFound"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageFileTooLarge"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Upload Merchant Image","description":"Uploads or replaces a merchant's custom image, overriding any default logo.\n\nUpload as the `file` field in a `multipart/form-data` request. Must be JPEG, PNG, or WebP, at most 5 MiB (5,242,880 bytes) and 25 million decoded pixels across all animation frames.","tags":["merchants"],"requestBody":{"content":{"multipart/form-data":{"schema":{"properties":{"file":{"format":"binary","type":"string"}},"required":["file"],"type":"object"}}},"required":true},"security":[{"PersonalApiToken":[]}]},"delete":{"operationId":"delete_merchant_image","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"merchant_id","schema":{"description":"ID of the merchant.","examples":["Mr9dL3xT6bQa"],"type":"string"},"required":true,"description":"ID of the merchant."}],"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/MerchantNotFound"},{"$ref":"#/components/schemas/ImageNoImage"}],"discriminator":{"propertyName":"code","mapping":{"merchant_not_found":"#/components/schemas/MerchantNotFound","no_image":"#/components/schemas/ImageNoImage"}}}}}}},"summary":"Delete Merchant Image","description":"Removes a merchant's custom image so `image_url` falls back to `default_image_url`, which may be null.\n\nReturns `no_image` if the merchant has no custom upload. A default image alone cannot be removed through this endpoint.","tags":["merchants"],"security":[{"PersonalApiToken":[]}]}},"/v1/institutions/connection-status":{"get":{"operationId":"list_connection_status","parameters":[{"in":"query","name":"cursor","schema":{"description":"The `next_cursor` from the previous page. Omit it to start from the first page.","examples":["eyJkYXRlIjoiMjAyNi0wOC0xNCIsImlkIjoiVHgzZko5bVM2dkJhIn0"],"type":"string"},"required":false,"description":"The `next_cursor` from the previous page. Omit it to start from the first page."},{"in":"query","name":"limit","schema":{"default":50,"description":"The most results to return in one page.","examples":[50],"maximum":200,"minimum":1,"type":"integer"},"required":false,"description":"The most results to return in one page."},{"in":"query","name":"search","schema":{"description":"Text to look for anywhere in the institution's name, ignoring case. Omit it to list every institution.","type":"string"},"required":false,"description":"Text to look for anywhere in the institution's name, ignoring case. Omit it to list every institution."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedConnectionStatusResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/FiltersChanged"},{"$ref":"#/components/schemas/InvalidCursor"}],"discriminator":{"propertyName":"code","mapping":{"filters_changed":"#/components/schemas/FiltersChanged","invalid_cursor":"#/components/schemas/InvalidCursor"}}}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"List Connection Status","description":"Returns connection health for Plaid institutions alongside Apple Card, Apple Cash, and Apple Savings. No authentication required.\n\nStarts with 30 featured Plaid institutions and Apple products, followed by all other institutions alphabetically. `popularity_rank` carries the featured rank separately from this display order. `total_count` counts every matching institution across all pages; pass `next_cursor` as `cursor` with the same `search` to continue, or start without a cursor when `search` changes.\n\nLogin success rates come from a daily Plaid snapshot with a check timestamp, and return `null` when missing or older than 26 hours. Apple is fixed at 100% with no timestamp. `notices` lists open Plaid incidents from a fresh snapshot (resolved incidents are excluded), and `has_login_success_data` reports whether any matching institution across all pages has login success data.","tags":["institutions"]}},"/v1/institutions":{"get":{"operationId":"list_institutions","parameters":[{"in":"query","name":"cursor","schema":{"description":"The `next_cursor` from the previous page. Omit it to start from the first page.","examples":["eyJkYXRlIjoiMjAyNi0wOC0xNCIsImlkIjoiVHgzZko5bVM2dkJhIn0"],"type":"string"},"required":false,"description":"The `next_cursor` from the previous page. Omit it to start from the first page."},{"in":"query","name":"limit","schema":{"default":50,"description":"The most results to return in one page.","examples":[50],"maximum":200,"minimum":1,"type":"integer"},"required":false,"description":"The most results to return in one page."},{"in":"query","name":"search","schema":{"description":"Text to look for anywhere in the institution's name, ignoring case. Omit it to list every institution.","type":"string"},"required":false,"description":"Text to look for anywhere in the institution's name, ignoring case. Omit it to list every institution."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedInstitutionsResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/FiltersChanged"},{"$ref":"#/components/schemas/InvalidCursor"}],"discriminator":{"propertyName":"code","mapping":{"filters_changed":"#/components/schemas/FiltersChanged","invalid_cursor":"#/components/schemas/InvalidCursor"}}}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"List Institutions","description":"Searches the financial institution directory by name. No authentication required.\n\nApple comes first when it matches `search`, followed by other institutions alphabetically, each with provider metadata and a logo URL. `total_count` counts every matching institution across all pages; pass `next_cursor` as `cursor` with the same `search` to continue, or start without a cursor when `search` changes.","tags":["institutions"]}},"/v1/institutions/curated":{"get":{"operationId":"list_curated_institutions","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CuratedInstitutionsResponse"}}}}},"summary":"List Curated Institutions","description":"Returns the featured financial institutions in display order, with Apple first. No authentication required.\n\nUse this short, unpaginated list for a featured picker, or `GET /v1/institutions` to search the full directory.","tags":["institutions"]}},"/v1/households/{household_id}/accounts":{"get":{"operationId":"list_accounts","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupedAccountsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}}},"summary":"List Accounts","description":"Returns the household's non-deleted accounts grouped by type. Individual accounts keep their native currencies; group and household totals use the household's reporting currency.\n\nClosed accounts stay in the list with a zero balance. Use `GET /v1/households/{household_id}/accounts/deleted` to find deleted accounts you can restore.","tags":["accounts"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/accounts/deleted":{"get":{"operationId":"list_deleted_accounts","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletedAccountsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}}},"summary":"List Deleted Accounts","description":"Returns the household's deleted accounts, most recently deleted first, without pagination.\n\nPass an account's ID to `POST /v1/households/{household_id}/accounts/{account_id}/restore` to bring it back.","tags":["accounts"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/accounts/{account_id}":{"get":{"operationId":"get_account","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"account_id","schema":{"description":"ID of the financial account.","examples":["Ac7kP2mN9qRs"],"type":"string"},"required":true,"description":"ID of the financial account."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinancialAccountResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountNotFound"}}}}},"summary":"Get Account","description":"Returns a non-deleted account with its native-currency balance, transaction count, and connection details.\n\nClosed accounts report a zero balance.","tags":["accounts"],"security":[{"PersonalApiToken":[]}]},"patch":{"operationId":"update_account","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"account_id","schema":{"description":"ID of the financial account.","examples":["Ac7kP2mN9qRs"],"type":"string"},"required":true,"description":"ID of the financial account."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinancialAccountResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountNotFound"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Update Account","description":"Updates the display-name override for a financial account.\n\nOmitting `custom_name` leaves it unchanged. Set it to null to remove the override and use the account's default display name. The account must belong to the household and must not be deleted.","tags":["accounts"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAccountRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]},"delete":{"operationId":"delete_account","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"account_id","schema":{"description":"ID of the financial account.","examples":["Ac7kP2mN9qRs"],"type":"string"},"required":true,"description":"ID of the financial account."}],"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountNotFound"}}}}},"summary":"Delete Account","description":"Soft-deletes an account, hiding it and its transactions from household views and reports until restored.\n\nIf every account on a Plaid connection stays deleted for at least seven days, the connection and its accounts, transactions, and balance history can be permanently purged—restore before then to keep them. This cleanup doesn't apply to Apple or manual accounts, or to Plaid connections that still have an active account.\n\nRules that reference the account keep it instead of widening to all accounts. They still run on transactions synced while deleted, which return if the account is restored. If the account is permanently purged, any rule referencing only that account is deleted with it.","tags":["accounts"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/accounts/{account_id}/close":{"post":{"operationId":"close_account","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"account_id","schema":{"description":"ID of the financial account.","examples":["Ac7kP2mN9qRs"],"type":"string"},"required":true,"description":"ID of the financial account."}],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountNotFound"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Close Account","description":"Marks an account closed as of `closed_at` while keeping its transaction history. The account stays in the account list with a zero balance.\n\nBalance history is treated as zero from `closed_at` onward. This only updates status in Penny—it doesn't close the account at your bank. Call the reopen endpoint to clear the closure date.","tags":["accounts"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseAccountRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/accounts/{account_id}/reopen":{"post":{"operationId":"reopen_account","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"account_id","schema":{"description":"ID of the financial account.","examples":["Ac7kP2mN9qRs"],"type":"string"},"required":true,"description":"ID of the financial account."}],"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountNotFound"}}}}},"summary":"Reopen Account","description":"Clears an account's closure date so Penny displays its recorded balance again and stops zeroing its balance history from that date.\n\nThe account must not be deleted. Reopening an already open account succeeds.","tags":["accounts"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/accounts/{account_id}/restore":{"post":{"operationId":"restore_account","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"account_id","schema":{"description":"ID of the financial account.","examples":["Ac7kP2mN9qRs"],"type":"string"},"required":true,"description":"ID of the financial account."}],"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountNotFound"}}}}},"summary":"Restore Account","description":"Restores a deleted account so its transactions appear in household views and reports again. Accounts permanently purged after an unused Plaid connection's seven-day recovery window cannot be restored.\n\nPer-transaction hidden and deleted flags are preserved, along with closure status. Restoring an account that isn't deleted returns `account_not_found`.","tags":["accounts"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/accounts/{account_id}/image":{"put":{"operationId":"upload_account_image","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"account_id","schema":{"description":"ID of the financial account.","examples":["Ac7kP2mN9qRs"],"type":"string"},"required":true,"description":"ID of the financial account."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageUploadResponse"},"example":{"image_url":"https://cdn.penny.finance/accounts/Ac7kP2mN9qRs.png"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageInvalidFileType"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountNotFound"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageFileTooLarge"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Upload Account Image","description":"Uploads or replaces a financial account's custom image. This image overrides the account's default institution or provider image.\n\nUpload as the `file` field in a `multipart/form-data` request. Must be JPEG, PNG, or WebP, at most 5 MiB (5,242,880 bytes) and 25 million decoded pixels across all animation frames. Deleted accounts cannot be updated.","tags":["accounts"],"requestBody":{"content":{"multipart/form-data":{"schema":{"properties":{"file":{"format":"binary","type":"string"}},"required":["file"],"type":"object"}}},"required":true},"security":[{"PersonalApiToken":[]}]},"delete":{"operationId":"delete_account_image","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"account_id","schema":{"description":"ID of the financial account.","examples":["Ac7kP2mN9qRs"],"type":"string"},"required":true,"description":"ID of the financial account."}],"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/AccountNotFound"},{"$ref":"#/components/schemas/ImageNoImage"}],"discriminator":{"propertyName":"code","mapping":{"account_not_found":"#/components/schemas/AccountNotFound","no_image":"#/components/schemas/ImageNoImage"}}}}}}},"summary":"Delete Account Image","description":"Removes an account's custom image so its display image falls back to `default_image_url`, which may be null.\n\nReturns `no_image` when the account has no custom upload. The account must not be deleted.","tags":["accounts"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/historical-balances":{"get":{"operationId":"list_historical_balances","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"query","name":"start_date","schema":{"description":"First day to include, inclusive. Defaults to the earliest day any included account has a recorded balance.","examples":["2026-08-01"],"format":"date","type":"string"},"required":false,"description":"First day to include, inclusive. Defaults to the earliest day any included account has a recorded balance."},{"in":"query","name":"end_date","schema":{"description":"Last day to include, inclusive. Defaults to today in the household's time zone; a later date is capped at tomorrow.","examples":["2026-08-31"],"format":"date","type":"string"},"required":false,"description":"Last day to include, inclusive. Defaults to today in the household's time zone; a later date is capped at tomorrow."},{"in":"query","name":"account_ids","schema":{"description":"Comma-separated account IDs, such as `Ac7kP2mN9qRs,Ac4tW8bL1xDv`; repeating the parameter for each ID also works. Only these accounts are included in the daily balances and events. Omit it to include every account that has not been deleted.","examples":[["Ac7kP2mN9qRs"]],"items":{"type":"string"},"type":"array"},"required":false,"style":"form","explode":false,"description":"Comma-separated account IDs, such as `Ac7kP2mN9qRs,Ac4tW8bL1xDv`; repeating the parameter for each ID also works. Only these accounts are included in the daily balances and events. Omit it to include every account that has not been deleted."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoricalBalancesResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"List Historical Balances","description":"Returns daily balance history for the household, optionally filtered by accounts and an inclusive date range. Daily totals use the household's reporting currency; per-account balances keep their native currencies.\n\nDays without a recorded snapshot carry forward the last known balance with `is_interpolated: true`. Closed accounts count as zero from their closure date, and deleted accounts are excluded. Without date bounds, history runs from the first recorded balance through today in the household's time zone (`end_date` is capped at tomorrow). Also includes first-balance and account-closure events.","tags":["historical-balances"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/tags":{"post":{"operationId":"create_tag","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuplicateName"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Create Tag","description":"Creates a household tag you can attach to transactions alongside their category.\n\nThe name must be unique among active household tags. Pass a hex color or `null` for no custom color.","tags":["tags"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTagRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]},"get":{"operationId":"list_tags","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"query","name":"cursor","schema":{"description":"The `next_cursor` from the previous page. Omit it to start from the first page.","examples":["eyJkYXRlIjoiMjAyNi0wOC0xNCIsImlkIjoiVHgzZko5bVM2dkJhIn0"],"type":"string"},"required":false,"description":"The `next_cursor` from the previous page. Omit it to start from the first page."},{"in":"query","name":"limit","schema":{"description":"The most results to return in one page.","examples":[50],"maximum":200,"minimum":1,"type":"integer"},"required":false,"description":"The most results to return in one page."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagListResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidCursor"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"List Tags","description":"Returns all active household tags with their colors and visible transaction counts.\n\nUnused tags are included; deleted tags are excluded. Returns every result in one page unless you set `limit`. When `has_more` is `true`, pass `next_cursor` as `cursor` for the next page.","tags":["tags"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/tags/{tag_id}":{"get":{"operationId":"get_tag","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"tag_id","schema":{"description":"ID of the tag.","examples":["Tg8qN1cK5rWd"],"type":"string"},"required":true,"description":"ID of the tag."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagNotFound"}}}}},"summary":"Get Tag","description":"Returns an active household tag with its color and visible transaction count.","tags":["tags"],"security":[{"PersonalApiToken":[]}]},"patch":{"operationId":"update_tag","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"tag_id","schema":{"description":"ID of the tag.","examples":["Tg8qN1cK5rWd"],"type":"string"},"required":true,"description":"ID of the tag."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagNotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuplicateName"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Update Tag","description":"Updates a tag's name or color. Send only the fields you want to change; omitted fields keep their latest values, including edits made by another client.\n\nSend `color: null` to clear the color (`name` cannot be `null`). Existing transaction assignments and rule references stay intact.","tags":["tags"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTagRequest"},"example":{"color":"#6D5BD0"}}},"required":true},"security":[{"PersonalApiToken":[]}]},"delete":{"operationId":"delete_tag","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"tag_id","schema":{"description":"ID of the tag.","examples":["Tg8qN1cK5rWd"],"type":"string"},"required":true,"description":"ID of the tag."}],"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagNotFound"}}}}},"summary":"Delete Tag","description":"Deletes a tag and removes it from all transactions, including those on deleted accounts. The transactions themselves are kept.\n\nRules that add the tag keep it in `deleted_tags` and stop adding it.","tags":["tags"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/rules":{"post":{"operationId":"create_rule","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/AccountNotFound"},{"$ref":"#/components/schemas/CategoryNotFound"},{"$ref":"#/components/schemas/MerchantNotFound"},{"$ref":"#/components/schemas/TagNotFound"}],"discriminator":{"propertyName":"code","mapping":{"account_not_found":"#/components/schemas/AccountNotFound","category_not_found":"#/components/schemas/CategoryNotFound","merchant_not_found":"#/components/schemas/MerchantNotFound","tag_not_found":"#/components/schemas/TagNotFound"}}}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Create Rule","description":"Creates a transaction rule at the top of the household's priority list. All set criteria must match; a rule with no criteria matches nothing.\n\nSet `apply_to_existing: true` to run the rule over existing visible transactions and return `applied_count`; otherwise, existing transactions stay as they are. Manually locked categories and merchants are never overwritten, and tag actions add to existing tags. Referenced accounts, categories, merchants, and tags must belong to the household. `amount_filter.currency` defaults to the household's currency when omitted.","tags":["rules"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRuleRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]},"get":{"operationId":"list_rules","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleListResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}}},"summary":"List Rules","description":"Returns the household's active rules in priority order, highest first, without pagination.\n\nPass the full list of IDs to `POST /v1/households/{household_id}/rules/reorder` to change priority.","tags":["rules"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/rules/reorder":{"post":{"operationId":"reorder_rules","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleListResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidRuleIds"},{"$ref":"#/components/schemas/HttpErrorResponse"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Reorder Rules","description":"Replaces the household's rule priority order, with the first ID at priority 1.\n\nSend every active rule ID exactly once—missing, duplicate, or unknown IDs return `invalid_rule_ids`. Reordering doesn't rerun rules on existing transactions.","tags":["rules"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderRulesRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/rules/dry-run":{"post":{"operationId":"dry_run_rule","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DryRunResponse"},"example":{"matched_count":1,"total_transactions":436,"matches":[{"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}],"daily_sums":[{"date":"2026-08-14","amount":{"amount":"-54.20","currency":"USD"}}],"next_cursor":null,"has_more":false}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/FiltersChanged"},{"$ref":"#/components/schemas/InvalidCursor"}],"discriminator":{"propertyName":"code","mapping":{"filters_changed":"#/components/schemas/FiltersChanged","invalid_cursor":"#/components/schemas/InvalidCursor"}}},{"$ref":"#/components/schemas/HttpErrorResponse"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Dry Run Rule","description":"Previews which visible transactions match a set of rule criteria without saving a rule or changing data. All set criteria must match; sending none matches nothing.\n\nReturns total counts, one page of matches, and daily totals (each covering every match on that day across all pages). Pass `next_cursor` as `cursor` with the same criteria to continue; start without a cursor if criteria change. Read-only tokens and household viewers can call this endpoint.","tags":["rules"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DryRunRequest"},"example":{"name_conditions":[{"pattern":"groceries","mode":"contains"}],"amount_filter":{"currency":"USD","direction":"expense","operator":"between","value":"20.00","value_upper":"200.00"},"limit":50}}},"required":true},"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/rules/{rule_id}":{"get":{"operationId":"get_rule","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"rule_id","schema":{"description":"ID of the categorization rule.","examples":["Rl9cF3nV7sQa"],"type":"string"},"required":true,"description":"ID of the categorization rule."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleNotFound"}}}}},"summary":"Get Rule","description":"Returns an active rule's priority, matching criteria, and actions. All set criteria must match for the rule to apply.","tags":["rules"],"security":[{"PersonalApiToken":[]}]},"patch":{"operationId":"update_rule","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"rule_id","schema":{"description":"ID of the categorization rule.","examples":["Rl9cF3nV7sQa"],"type":"string"},"required":true,"description":"ID of the categorization rule."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/AccountNotFound"},{"$ref":"#/components/schemas/CategoryNotFound"},{"$ref":"#/components/schemas/MerchantNotFound"},{"$ref":"#/components/schemas/TagNotFound"},{"$ref":"#/components/schemas/RuleNotFound"}],"discriminator":{"propertyName":"code","mapping":{"account_not_found":"#/components/schemas/AccountNotFound","category_not_found":"#/components/schemas/CategoryNotFound","merchant_not_found":"#/components/schemas/MerchantNotFound","tag_not_found":"#/components/schemas/TagNotFound","rule_not_found":"#/components/schemas/RuleNotFound"}}}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Update Rule","description":"Updates a rule in place, keeping its priority order. Send only the fields you want to change; omitted fields keep their latest values, including edits made by another client. Lists and `amount_filter` replace the whole field, and `null` clears nullable fields. All set criteria must match; a rule with none matches nothing.\n\nWhen sending `amount_filter`, `currency` is required and cannot be `null`; omit `amount_filter` completely to leave it unchanged.\n\nSet `apply_to_existing: true` to run the updated rule over existing visible transactions and return `applied_count`. Manually locked categories and merchants are preserved, and tag actions add to existing tags. Saving and applying happen atomically.","tags":["rules"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRuleRequest"},"example":{"set_category_id":"Ct5nR8wY1jFu","apply_to_existing":true}}},"required":true},"security":[{"PersonalApiToken":[]}]},"delete":{"operationId":"delete_rule","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"rule_id","schema":{"description":"ID of the categorization rule.","examples":["Rl9cF3nV7sQa"],"type":"string"},"required":true,"description":"ID of the categorization rule."}],"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleNotFound"}}}}},"summary":"Delete Rule","description":"Deletes a rule so it no longer runs on transactions.\n\nChanges the rule already made (categories, merchants, tags) stay on those transactions. Deleting an already-deleted rule returns `rule_not_found`.","tags":["rules"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/analytics/accumulated-spending":{"get":{"operationId":"get_accumulated_spending","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"query","name":"start_date","schema":{"description":"First day of the range, inclusive, as `YYYY-MM-DD`. Transactions are selected by their `date`.","examples":["2026-08-01"],"format":"date","type":"string"},"required":true,"description":"First day of the range, inclusive, as `YYYY-MM-DD`. Transactions are selected by their `date`."},{"in":"query","name":"end_date","schema":{"description":"Last day of the range, inclusive, as `YYYY-MM-DD`. If it is earlier than `start_date`, no transactions match; this is not an error.","examples":["2026-08-31"],"format":"date","type":"string"},"required":true,"description":"Last day of the range, inclusive, as `YYYY-MM-DD`. If it is earlier than `start_date`, no transactions match; this is not an error."},{"in":"query","name":"merchant_ids","schema":{"description":"Comma-separated merchant IDs, such as `Mr9dL3xT6bQa,Mr4hT7wK2cNe`; repeating the parameter for each ID also works. Limits the results to transactions at one of these merchants.","examples":[["Mr9dL3xT6bQa"]],"items":{"type":"string"},"type":"array"},"required":false,"style":"form","explode":false,"description":"Comma-separated merchant IDs, such as `Mr9dL3xT6bQa,Mr4hT7wK2cNe`; repeating the parameter for each ID also works. Limits the results to transactions at one of these merchants."},{"in":"query","name":"tag_ids","schema":{"description":"Comma-separated tag IDs, such as `Tg8qN1cK5rWd,Tg2bX6mJ9pHs`; repeating the parameter for each ID also works. Limits the results to transactions that have at least one of these tags.","examples":[["Tg8qN1cK5rWd"]],"items":{"type":"string"},"type":"array"},"required":false,"style":"form","explode":false,"description":"Comma-separated tag IDs, such as `Tg8qN1cK5rWd,Tg2bX6mJ9pHs`; repeating the parameter for each ID also works. Limits the results to transactions that have at least one of these tags."},{"in":"query","name":"category_ids","schema":{"description":"Comma-separated category IDs, such as `Ct5nR8wY1jFu,Ct3dM7qA9sXe`; repeating the parameter for each ID also works. Limits the results to transactions assigned to one of these categories.","examples":[["Ct5nR8wY1jFu"]],"items":{"type":"string"},"type":"array"},"required":false,"style":"form","explode":false,"description":"Comma-separated category IDs, such as `Ct5nR8wY1jFu,Ct3dM7qA9sXe`; repeating the parameter for each ID also works. Limits the results to transactions assigned to one of these categories."},{"in":"query","name":"category_group_ids","schema":{"description":"Comma-separated category group IDs, such as `Cg2mV7pL4zXe,Cg6tJ1nR8dKa`; repeating the parameter for each ID also works. Limits the results to transactions whose category is in one of these category groups.","examples":[["Cg2mV7pL4zXe"]],"items":{"type":"string"},"type":"array"},"required":false,"style":"form","explode":false,"description":"Comma-separated category group IDs, such as `Cg2mV7pL4zXe,Cg6tJ1nR8dKa`; repeating the parameter for each ID also works. Limits the results to transactions whose category is in one of these category groups."},{"in":"query","name":"account_ids","schema":{"description":"Comma-separated account IDs, such as `Ac7kP2mN9qRs,Ac4tW8bL1xDv`; repeating the parameter for each ID also works. Limits the results to transactions in these accounts.","examples":[["Ac7kP2mN9qRs"]],"items":{"type":"string"},"type":"array"},"required":false,"style":"form","explode":false,"description":"Comma-separated account IDs, such as `Ac7kP2mN9qRs,Ac4tW8bL1xDv`; repeating the parameter for each ID also works. Limits the results to transactions in these accounts."},{"in":"query","name":"uncategorized","schema":{"description":"Whether to limit the results to transactions that have no category (`true`) or to those that have one (`false`). When `true`, `category_ids` is ignored. Omit it to include both.","type":"boolean"},"required":false,"description":"Whether to limit the results to transactions that have no category (`true`) or to those that have one (`false`). When `true`, `category_ids` is ignored. Omit it to include both."},{"in":"query","name":"unknown_merchant","schema":{"description":"Whether to limit the results to transactions that have no merchant (`true`) or to those that have one (`false`). When `true`, `merchant_ids` is ignored. Omit it to include both.","type":"boolean"},"required":false,"description":"Whether to limit the results to transactions that have no merchant (`true`) or to those that have one (`false`). When `true`, `merchant_ids` is ignored. Omit it to include both."},{"in":"query","name":"needs_review","schema":{"description":"Whether to limit the results to transactions flagged for review (`true`) or to those not flagged (`false`). Omit it to include both.","type":"boolean"},"required":false,"description":"Whether to limit the results to transactions flagged for review (`true`) or to those not flagged (`false`). Omit it to include both."},{"in":"query","name":"min_amount","schema":{"description":"Interpreted in the household's currency. Transaction amounts in other currencies are converted before the filter is applied. Amounts and thresholds are rounded to the currency minor unit using half-even rounding for comparison.","examples":["68.42"],"pattern":"(?:^[+-]?(?:(?:[0-9]+\\.?[0-9]*|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?)$)$","type":"string"},"required":false,"description":"Interpreted in the household's currency. Transaction amounts in other currencies are converted before the filter is applied. Amounts and thresholds are rounded to the currency minor unit using half-even rounding for comparison."},{"in":"query","name":"max_amount","schema":{"description":"Interpreted in the household's currency. Transaction amounts in other currencies are converted before the filter is applied. Amounts and thresholds are rounded to the currency minor unit using half-even rounding for comparison.","examples":["68.42"],"pattern":"(?:^[+-]?(?:(?:[0-9]+\\.?[0-9]*|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?)$)$","type":"string"},"required":false,"description":"Interpreted in the household's currency. Transaction amounts in other currencies are converted before the filter is applied. Amounts and thresholds are rounded to the currency minor unit using half-even rounding for comparison."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccumulatedSpendingResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Get Accumulated Spending","description":"Summarizes income and expenses over an inclusive date range, with transaction counts and category breakdowns in the household's reporting currency.\n\nExcludes transfer categories, hidden or deleted transactions, deleted accounts, and split parents (their children count instead). Pending transactions are included. Totals are netted within each category—positive category nets count as income and negative ones as expenses. Uncategorized transactions aren't netted against each other: credits go to income and debits go to expenses.","tags":["spending"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/analytics/spending-by-period":{"get":{"operationId":"get_spending_by_period","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"query","name":"start_date","schema":{"description":"First day of the range, inclusive, as `YYYY-MM-DD`. Transactions are selected by their `date`.","examples":["2026-08-01"],"format":"date","type":"string"},"required":true,"description":"First day of the range, inclusive, as `YYYY-MM-DD`. Transactions are selected by their `date`."},{"in":"query","name":"end_date","schema":{"description":"Last day of the range, inclusive, as `YYYY-MM-DD`. If it is earlier than `start_date`, no transactions match; this is not an error.","examples":["2026-08-31"],"format":"date","type":"string"},"required":true,"description":"Last day of the range, inclusive, as `YYYY-MM-DD`. If it is earlier than `start_date`, no transactions match; this is not an error."},{"in":"query","name":"merchant_ids","schema":{"description":"Comma-separated merchant IDs, such as `Mr9dL3xT6bQa,Mr4hT7wK2cNe`; repeating the parameter for each ID also works. Limits the results to transactions at one of these merchants.","examples":[["Mr9dL3xT6bQa"]],"items":{"type":"string"},"type":"array"},"required":false,"style":"form","explode":false,"description":"Comma-separated merchant IDs, such as `Mr9dL3xT6bQa,Mr4hT7wK2cNe`; repeating the parameter for each ID also works. Limits the results to transactions at one of these merchants."},{"in":"query","name":"tag_ids","schema":{"description":"Comma-separated tag IDs, such as `Tg8qN1cK5rWd,Tg2bX6mJ9pHs`; repeating the parameter for each ID also works. Limits the results to transactions that have at least one of these tags.","examples":[["Tg8qN1cK5rWd"]],"items":{"type":"string"},"type":"array"},"required":false,"style":"form","explode":false,"description":"Comma-separated tag IDs, such as `Tg8qN1cK5rWd,Tg2bX6mJ9pHs`; repeating the parameter for each ID also works. Limits the results to transactions that have at least one of these tags."},{"in":"query","name":"category_ids","schema":{"description":"Comma-separated category IDs, such as `Ct5nR8wY1jFu,Ct3dM7qA9sXe`; repeating the parameter for each ID also works. Limits the results to transactions assigned to one of these categories.","examples":[["Ct5nR8wY1jFu"]],"items":{"type":"string"},"type":"array"},"required":false,"style":"form","explode":false,"description":"Comma-separated category IDs, such as `Ct5nR8wY1jFu,Ct3dM7qA9sXe`; repeating the parameter for each ID also works. Limits the results to transactions assigned to one of these categories."},{"in":"query","name":"category_group_ids","schema":{"description":"Comma-separated category group IDs, such as `Cg2mV7pL4zXe,Cg6tJ1nR8dKa`; repeating the parameter for each ID also works. Limits the results to transactions whose category is in one of these category groups.","examples":[["Cg2mV7pL4zXe"]],"items":{"type":"string"},"type":"array"},"required":false,"style":"form","explode":false,"description":"Comma-separated category group IDs, such as `Cg2mV7pL4zXe,Cg6tJ1nR8dKa`; repeating the parameter for each ID also works. Limits the results to transactions whose category is in one of these category groups."},{"in":"query","name":"account_ids","schema":{"description":"Comma-separated account IDs, such as `Ac7kP2mN9qRs,Ac4tW8bL1xDv`; repeating the parameter for each ID also works. Limits the results to transactions in these accounts.","examples":[["Ac7kP2mN9qRs"]],"items":{"type":"string"},"type":"array"},"required":false,"style":"form","explode":false,"description":"Comma-separated account IDs, such as `Ac7kP2mN9qRs,Ac4tW8bL1xDv`; repeating the parameter for each ID also works. Limits the results to transactions in these accounts."},{"in":"query","name":"uncategorized","schema":{"description":"Whether to limit the results to transactions that have no category (`true`) or to those that have one (`false`). When `true`, `category_ids` is ignored. Omit it to include both.","type":"boolean"},"required":false,"description":"Whether to limit the results to transactions that have no category (`true`) or to those that have one (`false`). When `true`, `category_ids` is ignored. Omit it to include both."},{"in":"query","name":"unknown_merchant","schema":{"description":"Whether to limit the results to transactions that have no merchant (`true`) or to those that have one (`false`). When `true`, `merchant_ids` is ignored. Omit it to include both.","type":"boolean"},"required":false,"description":"Whether to limit the results to transactions that have no merchant (`true`) or to those that have one (`false`). When `true`, `merchant_ids` is ignored. Omit it to include both."},{"in":"query","name":"needs_review","schema":{"description":"Whether to limit the results to transactions flagged for review (`true`) or to those not flagged (`false`). Omit it to include both.","type":"boolean"},"required":false,"description":"Whether to limit the results to transactions flagged for review (`true`) or to those not flagged (`false`). Omit it to include both."},{"in":"query","name":"min_amount","schema":{"description":"Interpreted in the household's currency. Transaction amounts in other currencies are converted before the filter is applied. Amounts and thresholds are rounded to the currency minor unit using half-even rounding for comparison.","examples":["68.42"],"pattern":"(?:^[+-]?(?:(?:[0-9]+\\.?[0-9]*|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?)$)$","type":"string"},"required":false,"description":"Interpreted in the household's currency. Transaction amounts in other currencies are converted before the filter is applied. Amounts and thresholds are rounded to the currency minor unit using half-even rounding for comparison."},{"in":"query","name":"max_amount","schema":{"description":"Interpreted in the household's currency. Transaction amounts in other currencies are converted before the filter is applied. Amounts and thresholds are rounded to the currency minor unit using half-even rounding for comparison.","examples":["68.42"],"pattern":"(?:^[+-]?(?:(?:[0-9]+\\.?[0-9]*|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?)$)$","type":"string"},"required":false,"description":"Interpreted in the household's currency. Transaction amounts in other currencies are converted before the filter is applied. Amounts and thresholds are rounded to the currency minor unit using half-even rounding for comparison."},{"in":"query","name":"time_segment","schema":{"$ref":"#/components/schemas/TimeSegment","description":"Size of the calendar periods the range is divided into. The response has one entry in `periods` for every period that overlaps the range.","examples":["monthly"]},"required":true,"description":"Size of the calendar periods the range is divided into. The response has one entry in `periods` for every period that overlaps the range."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpendingByPeriodResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Get Spending By Period","description":"Groups income and expenses into daily, monthly, quarterly, or yearly periods over an inclusive date range, in the household's reporting currency. Empty periods are included with zero totals.\n\nEach category is placed on the income or expense side by its net sign; uncategorized credits and debits stay on their own sides rather than netting. Excludes transfer categories, hidden or deleted transactions, deleted accounts, and split parents (their children count instead). Pending transactions are included. Only transactions inside the requested dates count, even for partial calendar periods.","tags":["spending"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/analytics/cashflow-by-period":{"get":{"operationId":"get_cashflow_by_period","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"query","name":"start_date","schema":{"description":"First day of the range, inclusive, as `YYYY-MM-DD`. Transactions are selected by their `date`.","examples":["2026-08-01"],"format":"date","type":"string"},"required":true,"description":"First day of the range, inclusive, as `YYYY-MM-DD`. Transactions are selected by their `date`."},{"in":"query","name":"end_date","schema":{"description":"Last day of the range, inclusive, as `YYYY-MM-DD`. If it is earlier than `start_date`, no transactions match; this is not an error.","examples":["2026-08-31"],"format":"date","type":"string"},"required":true,"description":"Last day of the range, inclusive, as `YYYY-MM-DD`. If it is earlier than `start_date`, no transactions match; this is not an error."},{"in":"query","name":"time_segment","schema":{"$ref":"#/components/schemas/TimeSegment","description":"Size of the calendar periods the range is divided into. The response has one entry in `periods` for every period that overlaps the range.","examples":["monthly"]},"required":true,"description":"Size of the calendar periods the range is divided into. The response has one entry in `periods` for every period that overlaps the range."},{"in":"query","name":"account_ids","schema":{"description":"Comma-separated account IDs, such as `Ac7kP2mN9qRs,Ac4tW8bL1xDv`; repeating the parameter for each ID also works. Limits the results to transactions in these accounts.","examples":[["Ac7kP2mN9qRs"]],"items":{"type":"string"},"type":"array"},"required":false,"style":"form","explode":false,"description":"Comma-separated account IDs, such as `Ac7kP2mN9qRs,Ac4tW8bL1xDv`; repeating the parameter for each ID also works. Limits the results to transactions in these accounts."},{"in":"query","name":"tag_ids","schema":{"description":"Comma-separated tag IDs, such as `Tg8qN1cK5rWd,Tg2bX6mJ9pHs`; repeating the parameter for each ID also works. Limits the results to transactions that have at least one of these tags.","examples":[["Tg8qN1cK5rWd"]],"items":{"type":"string"},"type":"array"},"required":false,"style":"form","explode":false,"description":"Comma-separated tag IDs, such as `Tg8qN1cK5rWd,Tg2bX6mJ9pHs`; repeating the parameter for each ID also works. Limits the results to transactions that have at least one of these tags."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CashflowByPeriodResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Get Cashflow By Period","description":"Returns income, expenses, and net cashflow for every calendar period overlapping an inclusive date range, in the household's reporting currency (income is positive, expenses are negative, net is their sum).\n\nEmpty periods have zero totals. Period boundaries span the full calendar period, while totals only include the requested dates. `is_complete` reports whether the period has ended in the household's time zone. Excludes transfer categories, hidden or deleted transactions, deleted accounts, and split parents (their children count instead). Pending transactions are included.","tags":["spending"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/analytics/merchant-breakdown":{"get":{"operationId":"get_merchant_breakdown","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"query","name":"start_date","schema":{"description":"First day of the range, inclusive, as `YYYY-MM-DD`. Transactions are selected by their `date`.","examples":["2026-08-01"],"format":"date","type":"string"},"required":true,"description":"First day of the range, inclusive, as `YYYY-MM-DD`. Transactions are selected by their `date`."},{"in":"query","name":"end_date","schema":{"description":"Last day of the range, inclusive, as `YYYY-MM-DD`. If it is earlier than `start_date`, no transactions match; this is not an error.","examples":["2026-08-31"],"format":"date","type":"string"},"required":true,"description":"Last day of the range, inclusive, as `YYYY-MM-DD`. If it is earlier than `start_date`, no transactions match; this is not an error."},{"in":"query","name":"tag_ids","schema":{"description":"Comma-separated tag IDs, such as `Tg8qN1cK5rWd,Tg2bX6mJ9pHs`; repeating the parameter for each ID also works. Limits the results to transactions that have at least one of these tags.","examples":[["Tg8qN1cK5rWd"]],"items":{"type":"string"},"type":"array"},"required":false,"style":"form","explode":false,"description":"Comma-separated tag IDs, such as `Tg8qN1cK5rWd,Tg2bX6mJ9pHs`; repeating the parameter for each ID also works. Limits the results to transactions that have at least one of these tags."},{"in":"query","name":"account_ids","schema":{"description":"Comma-separated account IDs, such as `Ac7kP2mN9qRs,Ac4tW8bL1xDv`; repeating the parameter for each ID also works. Limits the results to transactions in these accounts.","examples":[["Ac7kP2mN9qRs"]],"items":{"type":"string"},"type":"array"},"required":false,"style":"form","explode":false,"description":"Comma-separated account IDs, such as `Ac7kP2mN9qRs,Ac4tW8bL1xDv`; repeating the parameter for each ID also works. Limits the results to transactions in these accounts."},{"in":"query","name":"category_ids","schema":{"description":"Comma-separated category IDs, such as `Ct5nR8wY1jFu,Ct3dM7qA9sXe`; repeating the parameter for each ID also works. Limits the results to transactions assigned to one of these categories.","examples":[["Ct5nR8wY1jFu"]],"items":{"type":"string"},"type":"array"},"required":false,"style":"form","explode":false,"description":"Comma-separated category IDs, such as `Ct5nR8wY1jFu,Ct3dM7qA9sXe`; repeating the parameter for each ID also works. Limits the results to transactions assigned to one of these categories."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantBreakdownResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Get Merchant Breakdown","description":"Totals transactions by merchant over an inclusive date range in the household's reporting currency, ordered by absolute amount (largest first). Transactions without a merchant are grouped under `merchant_id: null`.\n\nExcludes transfer categories, hidden or deleted transactions, deleted accounts, and split parents (their children count instead). Pending transactions are included.","tags":["spending"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/analytics/category-breakdown":{"get":{"operationId":"get_category_breakdown","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"query","name":"start_date","schema":{"description":"First day of the range, inclusive, as `YYYY-MM-DD`. Transactions are selected by their `date`.","examples":["2026-08-01"],"format":"date","type":"string"},"required":true,"description":"First day of the range, inclusive, as `YYYY-MM-DD`. Transactions are selected by their `date`."},{"in":"query","name":"end_date","schema":{"description":"Last day of the range, inclusive, as `YYYY-MM-DD`. If it is earlier than `start_date`, no transactions match; this is not an error.","examples":["2026-08-31"],"format":"date","type":"string"},"required":true,"description":"Last day of the range, inclusive, as `YYYY-MM-DD`. If it is earlier than `start_date`, no transactions match; this is not an error."},{"in":"query","name":"tag_ids","schema":{"description":"Comma-separated tag IDs, such as `Tg8qN1cK5rWd,Tg2bX6mJ9pHs`; repeating the parameter for each ID also works. Limits the results to transactions that have at least one of these tags.","examples":[["Tg8qN1cK5rWd"]],"items":{"type":"string"},"type":"array"},"required":false,"style":"form","explode":false,"description":"Comma-separated tag IDs, such as `Tg8qN1cK5rWd,Tg2bX6mJ9pHs`; repeating the parameter for each ID also works. Limits the results to transactions that have at least one of these tags."},{"in":"query","name":"account_ids","schema":{"description":"Comma-separated account IDs, such as `Ac7kP2mN9qRs,Ac4tW8bL1xDv`; repeating the parameter for each ID also works. Limits the results to transactions in these accounts.","examples":[["Ac7kP2mN9qRs"]],"items":{"type":"string"},"type":"array"},"required":false,"style":"form","explode":false,"description":"Comma-separated account IDs, such as `Ac7kP2mN9qRs,Ac4tW8bL1xDv`; repeating the parameter for each ID also works. Limits the results to transactions in these accounts."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FullCategoryBreakdownResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Get Category Breakdown","description":"Breaks down income and expenses by category group and category over an inclusive date range, with totals and percentage shares. Ungrouped categories and uncategorized transactions are returned in `ungrouped_categories`.\n\nAmounts use the household's reporting currency, with expenses reported as positive magnitudes. Excludes transfer categories, hidden or deleted transactions, deleted accounts, and split parents (their children count instead). Pending transactions are included.","tags":["spending"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/categories":{"post":{"operationId":"create_category","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryResponse"},"example":{"id":"Ct2gK8mH6zRs","name":"Garden supplies","emoji":"🪴","category_type":"expense","group_id":null}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryGroupNotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/DuplicateName"},{"$ref":"#/components/schemas/CategoryDuplicateEmoji"}],"discriminator":{"propertyName":"code","mapping":{"duplicate_name":"#/components/schemas/DuplicateName","duplicate_emoji":"#/components/schemas/CategoryDuplicateEmoji"}}}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Create Category","description":"Creates a household category for income, expense, or transfer transactions.\n\nName and emoji must each be unique among active household categories. Pass `group_id` to place it in a group (the group's type then determines the category's type), or `null` to leave it ungrouped.","tags":["categories"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCategoryRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]},"get":{"operationId":"list_categories","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoriesListResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}}},"summary":"List Categories","description":"Returns all active categories and category groups in one unpaginated response.\n\nMatch each category's `group_id` against `groups` to build a grouped picker; ungrouped categories have `group_id: null`.","tags":["categories"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/categories/{category_id}":{"get":{"operationId":"get_category","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"category_id","schema":{"description":"ID of the category.","examples":["Ct5nR8wY1jFu"],"type":"string"},"required":true,"description":"ID of the category."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryNotFound"}}}}},"summary":"Get Category","description":"Returns an active category with its emoji, type, and group assignment.","tags":["categories"],"security":[{"PersonalApiToken":[]}]},"patch":{"operationId":"update_category","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"category_id","schema":{"description":"ID of the category.","examples":["Ct5nR8wY1jFu"],"type":"string"},"required":true,"description":"ID of the category."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CategoryNotFound"},{"$ref":"#/components/schemas/CategoryGroupNotFound"}],"discriminator":{"propertyName":"code","mapping":{"category_not_found":"#/components/schemas/CategoryNotFound","category_group_not_found":"#/components/schemas/CategoryGroupNotFound"}}}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/DuplicateName"},{"$ref":"#/components/schemas/CategoryDuplicateEmoji"}],"discriminator":{"propertyName":"code","mapping":{"duplicate_name":"#/components/schemas/DuplicateName","duplicate_emoji":"#/components/schemas/CategoryDuplicateEmoji"}}}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Update Category","description":"Updates a category's name, emoji, type, or group.\n\nSend only the fields you want to change; omitted fields keep their current values. Send `group_id: null` to ungroup the category. While in a group, the category inherits the group's type. Name and emoji must stay unique among active categories, and changing type affects how assigned transactions count in reports.","tags":["categories"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCategoryRequest"},"example":{"group_id":"Cg2mV7pL4zXe"}}},"required":true},"security":[{"PersonalApiToken":[]}]},"delete":{"operationId":"delete_category","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"category_id","schema":{"description":"ID of the category.","examples":["Ct5nR8wY1jFu"],"type":"string"},"required":true,"description":"ID of the category."}],"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryNotFound"}}}}},"summary":"Delete Category","description":"Deletes a category and clears it from all transactions, including those on deleted accounts. The transactions themselves are kept.\n\nRules that reference the category keep it in `deleted_categories`, match none of its transactions, and stop assigning it.","tags":["categories"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/category-groups":{"post":{"operationId":"create_category_group","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryGroupResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuplicateName"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Create Category Group","description":"Creates a named category group for income, expense, or transfer categories.\n\nThe group name must be unique within the household. Assign categories to it using the category create or update endpoint; creating the group does not create categories.","tags":["categories"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCategoryGroupRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/category-groups/{group_id}":{"get":{"operationId":"get_category_group","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"group_id","schema":{"description":"ID of the category group.","examples":["Cg2mV7pL4zXe"],"type":"string"},"required":true,"description":"ID of the category group."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryGroupResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryGroupNotFound"}}}}},"summary":"Get Category Group","description":"Returns a category group's name and type.\n\nCategories point to their group via `group_id`; list categories to see which ones belong to this group.","tags":["categories"],"security":[{"PersonalApiToken":[]}]},"patch":{"operationId":"update_category_group","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"group_id","schema":{"description":"ID of the category group.","examples":["Cg2mV7pL4zXe"],"type":"string"},"required":true,"description":"ID of the category group."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryGroupResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryGroupNotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuplicateName"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Update Category Group","description":"Renames a category group. Its type and existing category assignments are preserved.\n\nOmitting `name` leaves the group unchanged. The new name must be unique within the household.","tags":["categories"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCategoryGroupRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]},"delete":{"operationId":"delete_category_group","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"group_id","schema":{"description":"ID of the category group.","examples":["Cg2mV7pL4zXe"],"type":"string"},"required":true,"description":"ID of the category group."}],"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryGroupNotFound"}}}}},"summary":"Delete Category Group","description":"Permanently deletes a category group and leaves its categories ungrouped. The categories, their types, and their transaction assignments are kept.\n\nTo delete a category itself, call `DELETE /v1/households/{household_id}/categories/{category_id}`.","tags":["categories"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/transactions":{"get":{"operationId":"list_transactions","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"query","name":"cursor","schema":{"description":"The `next_cursor` from the previous page. Omit it to start from the first page.","examples":["eyJkYXRlIjoiMjAyNi0wOC0xNCIsImlkIjoiVHgzZko5bVM2dkJhIn0"],"type":"string"},"required":false,"description":"The `next_cursor` from the previous page. Omit it to start from the first page."},{"in":"query","name":"limit","schema":{"default":50,"description":"The most results to return in one page.","examples":[50],"maximum":200,"minimum":1,"type":"integer"},"required":false,"description":"The most results to return in one page."},{"in":"query","name":"min_amount","schema":{"description":"Interpreted in the household's currency. Transaction amounts in other currencies are converted before the filter is applied. Amounts and thresholds are rounded to the currency minor unit using half-even rounding for comparison.","examples":["68.42"],"pattern":"(?:^[+-]?(?:(?:[0-9]+\\.?[0-9]*|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?)$)$","type":"string"},"required":false,"description":"Interpreted in the household's currency. Transaction amounts in other currencies are converted before the filter is applied. Amounts and thresholds are rounded to the currency minor unit using half-even rounding for comparison."},{"in":"query","name":"max_amount","schema":{"description":"Interpreted in the household's currency. Transaction amounts in other currencies are converted before the filter is applied. Amounts and thresholds are rounded to the currency minor unit using half-even rounding for comparison.","examples":["68.42"],"pattern":"(?:^[+-]?(?:(?:[0-9]+\\.?[0-9]*|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?)$)$","type":"string"},"required":false,"description":"Interpreted in the household's currency. Transaction amounts in other currencies are converted before the filter is applied. Amounts and thresholds are rounded to the currency minor unit using half-even rounding for comparison."},{"in":"query","name":"amount_equal","schema":{"description":"Interpreted in the household's currency. Transaction amounts in other currencies are converted before the filter is applied. Amounts and thresholds are rounded to the currency minor unit using half-even rounding for comparison.","examples":["68.42"],"pattern":"(?:^[+-]?(?:(?:[0-9]+\\.?[0-9]*|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?)$)$","type":"string"},"required":false,"description":"Interpreted in the household's currency. Transaction amounts in other currencies are converted before the filter is applied. Amounts and thresholds are rounded to the currency minor unit using half-even rounding for comparison."},{"in":"query","name":"search","schema":{"description":"Text to find in the bank description (`original_name`), the custom name (`custom_name`) or the merchant name. A transaction matches when one of them contains the text, ignoring case, spaces and punctuation, or is a close fuzzy match. Notes are not searched.","examples":["trader joe"],"type":"string"},"required":false,"description":"Text to find in the bank description (`original_name`), the custom name (`custom_name`) or the merchant name. A transaction matches when one of them contains the text, ignoring case, spaces and punctuation, or is a close fuzzy match. Notes are not searched."},{"in":"query","name":"start_date","schema":{"description":"Earliest transaction `date` to include. The bound is inclusive; omit it for no lower bound.","examples":["2026-08-01"],"format":"date","type":"string"},"required":false,"description":"Earliest transaction `date` to include. The bound is inclusive; omit it for no lower bound."},{"in":"query","name":"end_date","schema":{"description":"Latest transaction `date` to include. The bound is inclusive; omit it for no upper bound.","examples":["2026-08-31"],"format":"date","type":"string"},"required":false,"description":"Latest transaction `date` to include. The bound is inclusive; omit it for no upper bound."},{"in":"query","name":"needs_review","schema":{"description":"Whether to return only transactions flagged for review (`true`) or only those that are not flagged (`false`). Omit it to return both.","type":"boolean"},"required":false,"description":"Whether to return only transactions flagged for review (`true`) or only those that are not flagged (`false`). Omit it to return both."},{"in":"query","name":"pending","schema":{"description":"Whether to return only pending transactions (`true`) or only posted ones (`false`). Omit it to return both.","type":"boolean"},"required":false,"description":"Whether to return only pending transactions (`true`) or only posted ones (`false`). Omit it to return both."},{"in":"query","name":"has_notes","schema":{"description":"Whether to return only transactions that have a non-empty note (`true`) or only those with no note (`false`). Omit it to return both.","type":"boolean"},"required":false,"description":"Whether to return only transactions that have a non-empty note (`true`) or only those with no note (`false`). Omit it to return both."},{"in":"query","name":"uncategorized","schema":{"description":"Whether to return only transactions that have no category (`true`) or only those that have one (`false`). `true` causes `category_ids` to be ignored. Omit it to return both.","type":"boolean"},"required":false,"description":"Whether to return only transactions that have no category (`true`) or only those that have one (`false`). `true` causes `category_ids` to be ignored. Omit it to return both."},{"in":"query","name":"unknown_merchant","schema":{"description":"Whether to return only transactions that have no merchant (`true`) or only those that have one (`false`). `true` causes `merchant_ids` to be ignored. Omit it to return both.","type":"boolean"},"required":false,"description":"Whether to return only transactions that have no merchant (`true`) or only those that have one (`false`). `true` causes `merchant_ids` to be ignored. Omit it to return both."},{"in":"query","name":"listing","schema":{"default":"visible","description":"Which list to browse. A split row in no list is fetched by its own ID, not through this endpoint.","enum":["visible","hidden","deleted"],"type":"string"},"required":false,"description":"Which list to browse. A split row in no list is fetched by its own ID, not through this endpoint."},{"in":"query","name":"transaction_ids","schema":{"description":"Comma-separated transaction IDs, such as `Tx3fJ9mS6vBa,Tx8aQ2kL5nRe`; repeating the parameter for each ID also works. Narrows the chosen list to these transactions. An empty list matches none.","examples":[["Tx3fJ9mS6vBa"]],"items":{"examples":["Tx3fJ9mS6vBa"],"type":"string"},"type":"array"},"required":false,"style":"form","explode":false,"description":"Comma-separated transaction IDs, such as `Tx3fJ9mS6vBa,Tx8aQ2kL5nRe`; repeating the parameter for each ID also works. Narrows the chosen list to these transactions. An empty list matches none."},{"in":"query","name":"merchant_ids","schema":{"description":"Comma-separated merchant IDs, such as `Mr9dL3xT6bQa,Mr4hT7wK2cNe`; repeating the parameter for each ID also works. Only transactions assigned to one of these merchants are returned. Ignored when `unknown_merchant=true`.","examples":[["Mr9dL3xT6bQa"]],"items":{"examples":["Mr9dL3xT6bQa"],"type":"string"},"type":"array"},"required":false,"style":"form","explode":false,"description":"Comma-separated merchant IDs, such as `Mr9dL3xT6bQa,Mr4hT7wK2cNe`; repeating the parameter for each ID also works. Only transactions assigned to one of these merchants are returned. Ignored when `unknown_merchant=true`."},{"in":"query","name":"category_ids","schema":{"description":"Comma-separated category IDs, such as `Ct5nR8wY1jFu,Ct3dM7qA9sXe`; repeating the parameter for each ID also works. Only transactions filed under one of these categories are returned. Ignored when `uncategorized=true`.","examples":[["Ct5nR8wY1jFu"]],"items":{"examples":["Ct5nR8wY1jFu"],"type":"string"},"type":"array"},"required":false,"style":"form","explode":false,"description":"Comma-separated category IDs, such as `Ct5nR8wY1jFu,Ct3dM7qA9sXe`; repeating the parameter for each ID also works. Only transactions filed under one of these categories are returned. Ignored when `uncategorized=true`."},{"in":"query","name":"tag_ids","schema":{"description":"Comma-separated tag IDs, such as `Tg8qN1cK5rWd,Tg2bX6mJ9pHs`; repeating the parameter for each ID also works. A transaction is returned when it has at least one of these tags; it does not need all of them.","examples":[["Tg8qN1cK5rWd"]],"items":{"examples":["Tg8qN1cK5rWd"],"type":"string"},"type":"array"},"required":false,"style":"form","explode":false,"description":"Comma-separated tag IDs, such as `Tg8qN1cK5rWd,Tg2bX6mJ9pHs`; repeating the parameter for each ID also works. A transaction is returned when it has at least one of these tags; it does not need all of them."},{"in":"query","name":"account_ids","schema":{"description":"Comma-separated account IDs, such as `Ac7kP2mN9qRs,Ac4tW8bL1xDv`; repeating the parameter for each ID also works. Only transactions on one of these accounts are returned.","examples":[["Ac7kP2mN9qRs"]],"items":{"examples":["Ac7kP2mN9qRs"],"type":"string"},"type":"array"},"required":false,"style":"form","explode":false,"description":"Comma-separated account IDs, such as `Ac7kP2mN9qRs,Ac4tW8bL1xDv`; repeating the parameter for each ID also works. Only transactions on one of these accounts are returned."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedTransactionsResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/FiltersChanged"},{"$ref":"#/components/schemas/InvalidCursor"}],"discriminator":{"propertyName":"code","mapping":{"filters_changed":"#/components/schemas/FiltersChanged","invalid_cursor":"#/components/schemas/InvalidCursor"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"List Transactions","description":"Returns household transactions newest first, with account, merchant, category, tag details, and daily totals in the household's reporting currency. Pending transactions are included; hidden, deleted, split-parent, and deleted-account transactions are excluded by default.\n\nSet `listing` to `visible` (default), `hidden`, or `deleted`. A hidden or deleted split parent appears there once in place of its children, which leave the default list with it. Date bounds are inclusive, and amount filters use the household's currency. `uncategorized=true` overrides `category_ids`, and `unknown_merchant=true` overrides `merchant_ids`.\n\nPass `next_cursor` as `cursor` with the same filters to page through results, or start without a cursor if filters change. A page can end partway through a day; each `daily_sums` entry still covers every matching non-transfer transaction on that day across all pages.","tags":["transactions"],"security":[{"PersonalApiToken":[]}]},"post":{"operationId":"create_transaction","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/AccountNotFound"},{"$ref":"#/components/schemas/CategoryNotFound"},{"$ref":"#/components/schemas/MerchantNotFound"},{"$ref":"#/components/schemas/TagNotFound"}],"discriminator":{"propertyName":"code","mapping":{"account_not_found":"#/components/schemas/AccountNotFound","category_not_found":"#/components/schemas/CategoryNotFound","merchant_not_found":"#/components/schemas/MerchantNotFound","tag_not_found":"#/components/schemas/TagNotFound"}}}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountNotManual"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Create Transaction","description":"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`.\n\nReferenced 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.","tags":["transactions"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTransactionRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/transactions/bulk-unhide":{"post":{"operationId":"bulk_unhide_transactions","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkTransactionsResponse"},"example":{"transactions":[{"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}],"skipped":[]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Bulk Unhide Transactions","description":"Clears the hidden flag on the given transactions. A deleted transaction stays deleted until it is restored. When a split parent is unhidden, its children return to the default list unless the parent is also deleted or a child is hidden or deleted itself.\n\nReturns affected rows and their split children; missing IDs and transactions on deleted accounts are skipped. A valid batch returns `200` with updated `transactions` (including ones already in the requested state) and a `skipped` list for missing or ineligible IDs. Duplicate IDs are processed once. See [Bulk operations](/docs/api/errors#bulk-operations-200) for skip codes.","tags":["transactions"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkTransactionsRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/transactions/bulk-hide":{"post":{"operationId":"bulk_hide_transactions","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkTransactionsResponse"},"example":{"transactions":[{"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":"2026-08-14T16:02:11Z","deleted_at":null,"listing":"hidden","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}],"skipped":[]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Bulk Hide Transactions","description":"Hides the given transactions from the default list and spending reports, keeping their data. A deleted transaction can be hidden and stays deleted. Hiding a split parent also takes its children out of the default list.\n\nReturns affected rows and their split children; missing IDs and transactions on deleted accounts are skipped. A valid batch returns `200` with updated `transactions` (including ones already in the requested state) and a `skipped` list for missing or ineligible IDs. Duplicate IDs are processed once. See [Bulk operations](/docs/api/errors#bulk-operations-200) for skip codes.","tags":["transactions"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkTransactionsRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/transactions/bulk-restore":{"post":{"operationId":"bulk_restore_transactions","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkTransactionsResponse"},"example":{"transactions":[{"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}],"skipped":[]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Bulk Restore Transactions","description":"Clears the deletion flag on the given transactions. A hidden transaction stays hidden. When a split parent is restored, its children return to the default list unless the parent is also hidden or a child is hidden or deleted itself.\n\nReturns affected rows and their split children; missing IDs and transactions on deleted accounts are skipped. A valid batch returns `200` with updated `transactions` (including ones already in the requested state) and a `skipped` list for missing or ineligible IDs. Duplicate IDs are processed once. See [Bulk operations](/docs/api/errors#bulk-operations-200) for skip codes.","tags":["transactions"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkTransactionsRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/transactions/bulk-delete":{"post":{"operationId":"bulk_delete_transactions","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkTransactionsResponse"},"example":{"transactions":[{"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":"2026-08-14T16:02:11Z","listing":"deleted","pending_transaction_id":null,"date":"2026-08-14","transacted_at":"2026-08-14T15:38:00Z","needs_review":false,"is_editable":false,"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}],"skipped":[]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Bulk Delete Transactions","description":"Soft-deletes the given transactions, which can be restored. Hidden transactions can be deleted. Deleting a split parent also takes its children out of the default list. A transaction that is already deleted, including one its provider deleted, is left as it is.\n\nReturns affected rows and their split children; missing IDs and transactions on deleted accounts are skipped. A valid batch returns `200` with updated `transactions` (including ones already in the requested state) and a `skipped` list for missing or ineligible IDs. Duplicate IDs are processed once. See [Bulk operations](/docs/api/errors#bulk-operations-200) for skip codes.","tags":["transactions"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkTransactionsRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/transactions/bulk-add-tags":{"post":{"operationId":"bulk_add_tags","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkTransactionsResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagNotFound"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Bulk Add Tags","description":"Adds tags to non-deleted transactions without removing existing tags. Hidden transactions are eligible; split parents and deleted-account transactions are skipped.\n\nEvery tag ID must be an active household tag, or the request fails before updating anything. A valid batch returns `200` with updated `transactions` (including ones already in the requested state) and a `skipped` list for missing or ineligible IDs. Duplicate IDs are processed once. See [Bulk operations](/docs/api/errors#bulk-operations-200) for skip codes.","tags":["transactions"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkTagsRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/transactions/bulk-remove-tags":{"post":{"operationId":"bulk_remove_tags","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkTransactionsResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagNotFound"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Bulk Remove Tags","description":"Removes only the given tags from non-deleted transactions, leaving other tags and the tags themselves intact. Hidden transactions are eligible; split parents and deleted-account transactions are skipped.\n\nEvery tag ID must be an active household tag, or the whole request fails. A valid batch returns `200` with updated `transactions` (including ones already in the requested state) and a `skipped` list for missing or ineligible IDs. Duplicate IDs are processed once. See [Bulk operations](/docs/api/errors#bulk-operations-200) for skip codes.","tags":["transactions"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkTagsRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/transactions/bulk-review":{"post":{"operationId":"bulk_update_review","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkTransactionsResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Bulk Update Review","description":"Sets `needs_review` on non-deleted transactions (`false` to mark reviewed, `true` to put them back in the review queue).\n\nHidden transactions are eligible; split parents and deleted-account transactions are skipped. A valid batch returns `200` with updated `transactions` (including ones already in the requested state) and a `skipped` list for missing or ineligible IDs. Duplicate IDs are processed once. See [Bulk operations](/docs/api/errors#bulk-operations-200) for skip codes.","tags":["transactions"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkReviewRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/transactions/bulk-set-category":{"post":{"operationId":"bulk_set_category","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkTransactionsResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryNotFound"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Bulk Set Category","description":"Assigns one category to non-deleted transactions, or clears it when `category_id` is `null`. The choice is locked against automatic overrides, and household rules run again for other actions such as tags.\n\nHidden transactions are eligible; split parents and deleted-account transactions are skipped. An unknown category rejects the whole request. A valid batch returns `200` with updated `transactions` (including ones already in the requested state) and a `skipped` list for missing or ineligible IDs. Duplicate IDs are processed once. See [Bulk operations](/docs/api/errors#bulk-operations-200) for skip codes.","tags":["transactions"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkSetCategoryRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/transactions/duplicates":{"get":{"operationId":"list_duplicate_groups","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"query","name":"cursor","schema":{"description":"The `next_cursor` from the previous page. Omit it to start from the first page.","examples":["eyJkYXRlIjoiMjAyNi0wOC0xNCIsImlkIjoiVHgzZko5bVM2dkJhIn0"],"type":"string"},"required":false,"description":"The `next_cursor` from the previous page. Omit it to start from the first page."},{"in":"query","name":"limit","schema":{"description":"The most results to return in one page.","examples":[50],"maximum":200,"minimum":1,"type":"integer"},"required":false,"description":"The most results to return in one page."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuplicateGroupsResponse"},"example":{"groups":[{"transactions":[{"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},{"id":"Tx8aQ2kL5nRe","original_name":"TRADER JOE'S #142","custom_name":null,"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":[],"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":null,"created_at":"2026-08-14T15:42:03Z","updated_at":"2026-08-14T15:42:03Z","name":"TRADER JOE'S #142","split_parent_id":null,"split_child_ids":[],"is_recurring":false}]}],"next_cursor":null,"has_more":false}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidCursor"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"List Duplicate Groups","description":"Returns groups of visible transactions flagged as possible duplicates, each with at least two full transactions to compare.\n\nCheck candidates before deleting—a flag is only a hint. Call `POST /v1/households/{household_id}/transactions/duplicates/dismiss` if they are distinct. Hidden and deleted transactions are excluded.\n\nReturns every result in one page unless you set `limit`. When `has_more` is `true`, pass `next_cursor` as `cursor` for the next page.","tags":["transactions"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/transactions/{transaction_id}":{"get":{"operationId":"get_transaction","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"transaction_id","schema":{"description":"ID of the transaction.","examples":["Tx3fJ9mS6vBa"],"type":"string"},"required":true,"description":"ID of the transaction."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionNotFound"}}}}},"summary":"Get Transaction","description":"Returns a transaction with its account, category, merchant, tags, native amount, and amount converted to the household's reporting currency.\n\nHidden, deleted, and split-parent transactions can still be fetched by ID. Transactions on deleted accounts return `transaction_not_found` until the account is restored.","tags":["transactions"],"security":[{"PersonalApiToken":[]}]},"patch":{"operationId":"update_transaction","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"transaction_id","schema":{"description":"ID of the transaction.","examples":["Tx3fJ9mS6vBa"],"type":"string"},"required":true,"description":"ID of the transaction."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/TransactionNotFound"},{"$ref":"#/components/schemas/CategoryNotFound"},{"$ref":"#/components/schemas/MerchantNotFound"},{"$ref":"#/components/schemas/TagNotFound"}],"discriminator":{"propertyName":"code","mapping":{"transaction_not_found":"#/components/schemas/TransactionNotFound","category_not_found":"#/components/schemas/CategoryNotFound","merchant_not_found":"#/components/schemas/MerchantNotFound","tag_not_found":"#/components/schemas/TagNotFound"}}}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Update Transaction","description":"Updates a transaction's display name, date, notes, category, merchant, or tags. Send only the fields you want to change; omitted fields keep their latest values, including edits made by another client. `null` clears nullable fields (`date` and `tag_ids` cannot be `null`), and `tag_ids` replaces the full tag set. Amount and account can't be edited here; hiding uses the hide/unhide endpoints.\n\nEdits to date, merchant, and category are locked against later automatic overrides. When rule inputs change, household rules rerun for other unlocked actions (rule hide actions are skipped during edits).\n\nHidden transactions can be edited. Deleted transactions, split parents, and transactions on deleted accounts return `transaction_not_found`.","tags":["transactions"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTransactionRequest"},"example":{"custom_name":"Weekly groceries","category_id":"Ct5nR8wY1jFu"}}},"required":true},"security":[{"PersonalApiToken":[]}]},"delete":{"operationId":"delete_transaction","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"transaction_id","schema":{"description":"ID of the transaction.","examples":["Tx3fJ9mS6vBa"],"type":"string"},"required":true,"description":"ID of the transaction."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AffectedTransactionsResponse"},"example":{"transactions":[{"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":"2026-08-14T16:02:11Z","listing":"deleted","pending_transaction_id":null,"date":"2026-08-14","transacted_at":"2026-08-14T15:38:00Z","needs_review":false,"is_editable":false,"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}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionNotFound"}}}}},"summary":"Delete Transaction","description":"Soft-deletes a transaction so it leaves the default list and spending reports; it can be restored. Deleting a split parent also takes its children out of the default list. A transaction that is already deleted, including one its provider deleted, is left as it is.\n\nReturns the affected row and its split children, even if it was already in that state. Transactions on deleted accounts return `transaction_not_found`.","tags":["transactions"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/transactions/{transaction_id}/restore":{"post":{"operationId":"restore_transaction","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"transaction_id","schema":{"description":"ID of the transaction.","examples":["Tx3fJ9mS6vBa"],"type":"string"},"required":true,"description":"ID of the transaction."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AffectedTransactionsResponse"},"example":{"transactions":[{"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}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionNotFound"}}}}},"summary":"Restore Transaction","description":"Clears a transaction's deletion flag. A hidden transaction stays hidden. When a split parent is restored, its children return to the default list unless the parent is also hidden or a child is hidden or deleted itself.\n\nReturns the affected row and its split children, even if it was already in that state. Transactions on deleted accounts return `transaction_not_found`.","tags":["transactions"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/transactions/{transaction_id}/hide":{"post":{"operationId":"hide_transaction","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"transaction_id","schema":{"description":"ID of the transaction.","examples":["Tx3fJ9mS6vBa"],"type":"string"},"required":true,"description":"ID of the transaction."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AffectedTransactionsResponse"},"example":{"transactions":[{"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":"2026-08-14T16:02:11Z","deleted_at":null,"listing":"hidden","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}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionNotFound"}}}}},"summary":"Hide Transaction","description":"Hides a transaction from the default list and spending reports, keeping its data; `listing=hidden` on the transaction list shows hidden transactions. Hiding a split parent also takes its children out of the default list.\n\nReturns the affected row and its split children, even if it was already in that state. Transactions on deleted accounts return `transaction_not_found`.","tags":["transactions"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/transactions/{transaction_id}/unhide":{"post":{"operationId":"unhide_transaction","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"transaction_id","schema":{"description":"ID of the transaction.","examples":["Tx3fJ9mS6vBa"],"type":"string"},"required":true,"description":"ID of the transaction."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AffectedTransactionsResponse"},"example":{"transactions":[{"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}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionNotFound"}}}}},"summary":"Unhide Transaction","description":"Clears a transaction's hidden flag. A deleted transaction stays deleted until it is restored. When a split parent is unhidden, its children return to the default list unless the parent is also deleted or a child is hidden or deleted itself.\n\nReturns the affected row and its split children, even if it was already in that state. Transactions on deleted accounts return `transaction_not_found`.","tags":["transactions"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/transactions/duplicates/dismiss":{"post":{"operationId":"dismiss_duplicates","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionNotFound"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Dismiss Duplicates","description":"Clears possible-duplicate flags on the given transactions and removes references to them from other transactions. The transactions themselves are kept.\n\nEvery ID must belong to the household on a non-deleted account, or the request fails before clearing anything. Duplicate IDs are processed once.","tags":["transactions"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DismissDuplicatesRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/transactions/{transaction_id}/history":{"get":{"operationId":"get_transaction_history","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"transaction_id","schema":{"description":"ID of the transaction.","examples":["Tx3fJ9mS6vBa"],"type":"string"},"required":true,"description":"ID of the transaction."},{"in":"query","name":"cursor","schema":{"description":"The `next_cursor` from the previous page. Omit it to start from the first page.","examples":["eyJkYXRlIjoiMjAyNi0wOC0xNCIsImlkIjoiVHgzZko5bVM2dkJhIn0"],"type":"string"},"required":false,"description":"The `next_cursor` from the previous page. Omit it to start from the first page."},{"in":"query","name":"limit","schema":{"description":"The most results to return in one page.","examples":[50],"maximum":200,"minimum":1,"type":"integer"},"required":false,"description":"The most results to return in one page."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionHistoryResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidCursor"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionNotFound"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Get Transaction History","description":"Returns the change history for a transaction (newest first), covering edits by members, rules, and bank syncs.\n\nWorks for hidden and deleted transactions as long as the account isn't deleted. Returns every result in one page unless you set `limit`. When `has_more` is `true`, pass `next_cursor` as `cursor` for the next page.","tags":["transactions"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/transactions/{transaction_id}/splits":{"get":{"operationId":"list_splits","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"transaction_id","schema":{"description":"ID of the transaction.","examples":["Tx3fJ9mS6vBa"],"type":"string"},"required":true,"description":"ID of the transaction."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSplitsResponse"},"example":{"parent":{"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":"unlisted","pending_transaction_id":null,"date":"2026-08-14","transacted_at":"2026-08-14T15:38:00Z","needs_review":false,"is_editable":false,"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":["Tx8aQ2kL5nRe","Tx7nB4wK9dGh"],"is_recurring":false},"children":[{"id":"Tx7nB4wK9dGh","original_name":"TRADER JOE'S #142","custom_name":"Paper goods","amount":{"amount":"-12.50","currency":"USD"},"native_amount":{"amount":"-12.50","currency":"USD"},"lat":null,"lon":null,"pending":false,"classification":null,"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":"Ct3dM7qA9sXe","name":"Household","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":[],"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":null,"created_at":"2026-08-14T16:02:11Z","updated_at":"2026-08-14T16:02:11Z","name":"Paper goods","split_parent_id":"Tx3fJ9mS6vBa","split_child_ids":[],"is_recurring":false},{"id":"Tx8aQ2kL5nRe","original_name":"TRADER JOE'S #142","custom_name":"Groceries","amount":{"amount":"-41.70","currency":"USD"},"native_amount":{"amount":"-41.70","currency":"USD"},"lat":null,"lon":null,"pending":false,"classification":null,"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":"Produce and pantry staples","created_at":"2026-08-14T16:02:11Z","updated_at":"2026-08-14T16:02:11Z","name":"Groceries","split_parent_id":"Tx3fJ9mS6vBa","split_child_ids":[],"is_recurring":false}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionNotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionNotSplit"}}}}},"summary":"List Splits","description":"Returns a split transaction's original parent and its child parts. Pass either the parent ID or any child ID.\n\nThe account must not be deleted.","tags":["transactions"],"security":[{"PersonalApiToken":[]}]},"post":{"operationId":"split_transaction","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"transaction_id","schema":{"description":"ID of the transaction.","examples":["Tx3fJ9mS6vBa"],"type":"string"},"required":true,"description":"ID of the transaction."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SplitTransactionResponse"},"example":{"parent":{"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":"unlisted","pending_transaction_id":null,"date":"2026-08-14","transacted_at":"2026-08-14T15:38:00Z","needs_review":false,"is_editable":false,"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":["Tx8aQ2kL5nRe","Tx7nB4wK9dGh"],"is_recurring":false},"children":[{"id":"Tx8aQ2kL5nRe","original_name":"TRADER JOE'S #142","custom_name":"Groceries","amount":{"amount":"-41.70","currency":"USD"},"native_amount":{"amount":"-41.70","currency":"USD"},"lat":null,"lon":null,"pending":false,"classification":null,"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":"Produce and pantry staples","created_at":"2026-08-14T16:02:11Z","updated_at":"2026-08-14T16:02:11Z","name":"Groceries","split_parent_id":"Tx3fJ9mS6vBa","split_child_ids":[],"is_recurring":false},{"id":"Tx7nB4wK9dGh","original_name":"TRADER JOE'S #142","custom_name":"Paper goods","amount":{"amount":"-12.50","currency":"USD"},"native_amount":{"amount":"-12.50","currency":"USD"},"lat":null,"lon":null,"pending":false,"classification":null,"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":"Ct3dM7qA9sXe","name":"Household","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":[],"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":null,"created_at":"2026-08-14T16:02:11Z","updated_at":"2026-08-14T16:02:11Z","name":"Paper goods","split_parent_id":"Tx3fJ9mS6vBa","split_child_ids":[],"is_recurring":false}],"removed_transaction_ids":[]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/SplitTooFew"},{"$ref":"#/components/schemas/SplitSumMismatch"},{"$ref":"#/components/schemas/SplitSignMismatch"},{"$ref":"#/components/schemas/SplitZeroAmount"}],"discriminator":{"propertyName":"code","mapping":{"too_few_splits":"#/components/schemas/SplitTooFew","sum_does_not_match_total":"#/components/schemas/SplitSumMismatch","split_sign_mismatch":"#/components/schemas/SplitSignMismatch","zero_amount_split":"#/components/schemas/SplitZeroAmount"}}},{"$ref":"#/components/schemas/HttpErrorResponse"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/TransactionNotFound"},{"$ref":"#/components/schemas/CategoryNotFound"},{"$ref":"#/components/schemas/MerchantNotFound"},{"$ref":"#/components/schemas/TagNotFound"}],"discriminator":{"propertyName":"code","mapping":{"transaction_not_found":"#/components/schemas/TransactionNotFound","category_not_found":"#/components/schemas/CategoryNotFound","merchant_not_found":"#/components/schemas/MerchantNotFound","tag_not_found":"#/components/schemas/TagNotFound"}}}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/SplitChildCannotSplit"},{"$ref":"#/components/schemas/SplitTransactionDeleted"},{"$ref":"#/components/schemas/SplitTransactionPending"}],"discriminator":{"propertyName":"code","mapping":{"child_cannot_split":"#/components/schemas/SplitChildCannotSplit","transaction_deleted":"#/components/schemas/SplitTransactionDeleted","transaction_pending":"#/components/schemas/SplitTransactionPending"}}}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Split Transaction","description":"Splits a posted transaction into at least two child transactions. Each amount must be nonzero, have the original transaction's sign, and sum exactly to the original amount in its native currency.\n\nThe parent remains stored, while its children appear in normal transaction views and reports. The children of a hidden parent stay out of those views until it is unhidden. Pending or deleted transactions and split children cannot be split. Calling this endpoint on an existing split replaces all previous children with newly created ones; send the complete desired split each time.","tags":["transactions"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SplitTransactionRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]},"delete":{"operationId":"unsplit_transaction","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"transaction_id","schema":{"description":"ID of the transaction.","examples":["Tx3fJ9mS6vBa"],"type":"string"},"required":true,"description":"ID of the transaction."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsplitTransactionResponse"},"example":{"parent":{"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},"removed_transaction_ids":["Tx8aQ2kL5nRe","Tx7nB4wK9dGh"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsplitChildCannotUnsplit"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionNotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionNotSplit"}}}}},"summary":"Unsplit Transaction","description":"Removes all child transactions from a split parent and clears its split state so the original transaction can appear in normal views again.\n\nPass the parent ID; a child ID returns `child_cannot_unsplit`. The children are permanently deleted, including their individual edits.","tags":["transactions"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/transactions/{transaction_id}/images":{"get":{"operationId":"list_transaction_images","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"transaction_id","schema":{"description":"ID of the transaction.","examples":["Tx3fJ9mS6vBa"],"type":"string"},"required":true,"description":"ID of the transaction."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionImageListResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionNotFound"}}}}},"summary":"List Transaction Images","description":"Returns receipts and other images attached to a transaction, with their IDs and download URLs.\n\nRequires a member or owner role (viewers cannot access transaction images), and the account must not be deleted. Call again whenever you need fresh signed URLs.","tags":["transaction-images"],"security":[{"PersonalApiToken":[]}]},"post":{"operationId":"upload_transaction_images","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"transaction_id","schema":{"description":"ID of the transaction.","examples":["Tx3fJ9mS6vBa"],"type":"string"},"required":true,"description":"ID of the transaction."}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionImageListResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ImageInvalidFileType"},{"$ref":"#/components/schemas/HttpErrorResponse"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionNotFound"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageFileTooLarge"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Upload Transaction Images","description":"Attaches images to a transaction and returns only the newly uploaded records; existing attachments stay intact.\n\nSend files as repeated `files` fields in `multipart/form-data`. Must be JPEG, PNG, or WebP, at most 5 MiB (5,242,880 bytes) and 25 million decoded pixels across all animation frames. Every file is validated before saving, so one invalid file rejects the batch. Requires a member or owner role.","tags":["transaction-images"],"requestBody":{"content":{"multipart/form-data":{"schema":{"properties":{"files":{"items":{"format":"binary","type":"string"},"type":"array"}},"required":["files"],"type":"object"}}},"required":true},"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/transactions/{transaction_id}/images/bulk-delete":{"post":{"operationId":"bulk_delete_transaction_images","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"transaction_id","schema":{"description":"ID of the transaction.","examples":["Tx3fJ9mS6vBa"],"type":"string"},"required":true,"description":"ID of the transaction."}],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/TransactionNotFound"},{"$ref":"#/components/schemas/ImageNotFound"}],"discriminator":{"propertyName":"code","mapping":{"transaction_not_found":"#/components/schemas/TransactionNotFound","image_not_found":"#/components/schemas/ImageNotFound"}}}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Bulk Delete Transaction Images","description":"Permanently deletes matching image attachments from a transaction while keeping the transaction itself.\n\nIDs not attached to this transaction are skipped; returns `image_not_found` if none match. Requires a member or owner role.","tags":["transaction-images"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteTransactionImagesRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/transactions/{transaction_id}/images/{image_id}":{"delete":{"operationId":"delete_transaction_image","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"transaction_id","schema":{"description":"ID of the transaction.","examples":["Tx3fJ9mS6vBa"],"type":"string"},"required":true,"description":"ID of the transaction."},{"in":"path","name":"image_id","schema":{"description":"ID of the image attached to the transaction.","examples":["Im4nD8qR2sVk"],"type":"string"},"required":true,"description":"ID of the image attached to the transaction."}],"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/TransactionNotFound"},{"$ref":"#/components/schemas/ImageNotFound"}],"discriminator":{"propertyName":"code","mapping":{"transaction_not_found":"#/components/schemas/TransactionNotFound","image_not_found":"#/components/schemas/ImageNotFound"}}}}}}},"summary":"Delete Transaction Image","description":"Permanently deletes one image attachment from a transaction while keeping the transaction and its other attachments.\n\nRequires a member or owner role.","tags":["transaction-images"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/recurring-transactions":{"post":{"operationId":"create_recurring_transaction","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurringTransactionResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidFrequencyFields"},{"$ref":"#/components/schemas/HttpErrorResponse"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantNotFound"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Create Recurring Transaction","description":"Creates a recurring income or expense schedule for a merchant. This only tracks expected dates—it doesn't trigger payments or create transactions.\n\nPass a negative amount for expenses or a positive amount for income (zero is rejected). `currency` defaults to the household's reporting currency when omitted. Twice-monthly frequencies must omit `start_date` or pass `null`; all other frequencies require an anchor date.","tags":["recurring-transactions"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRecurringTransactionRequest"},"example":{"merchant_id":"Mr4hT7wK2cNe","amount":"-17.99","currency":"USD","frequency":"every_month","start_date":"2026-03-09","name":"Netflix"}}},"required":true},"security":[{"PersonalApiToken":[]}]},"get":{"operationId":"list_recurring_transactions","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"query","name":"status","schema":{"description":"Only return series with this status: `active`, or `cancelled` for series that have been ended. Omit it to return both.","$ref":"#/components/schemas/RecurringTransactionStatus"},"required":false,"description":"Only return series with this status: `active`, or `cancelled` for series that have been ended. Omit it to return both."},{"in":"query","name":"merchant_id","schema":{"description":"Only return series tied to this merchant.","type":"string"},"required":false,"description":"Only return series tied to this merchant."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurringTransactionListResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"List Recurring Transactions","description":"Returns the household's recurring schedules ordered by name, optionally filtered by `status` or `merchant_id`, without pagination.\n\nIncludes both active and cancelled series when `status` is omitted. Use the occurrences endpoints for expected dates and matched transactions.","tags":["recurring-transactions"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/recurring-transactions/preview":{"post":{"operationId":"preview_recurring_transaction","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurringTransactionPreviewResponse"},"example":{"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}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidFrequencyFields"},{"$ref":"#/components/schemas/HttpErrorResponse"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantNotFound"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Preview Recurring Transaction","description":"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.\n\nTakes 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.","tags":["recurring-transactions"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewRecurringTransactionRequest"},"example":{"merchant_id":"Mr4hT7wK2cNe","amount":"-17.99","currency":"USD","frequency":"every_month","start_date":"2026-03-09"}}},"required":true},"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/recurring-transactions/summary":{"get":{"operationId":"get_recurring_summary","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"query","name":"month","schema":{"description":"Calendar month to summarize, as `YYYY-MM` with a four-digit year and a two-digit month. Any other format fails with `invalid_month_format`.","examples":["2026-08"],"type":"string"},"required":true,"description":"Calendar month to summarize, as `YYYY-MM` with a four-digit year and a two-digit month. Any other format fails with `invalid_month_format`."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurringTransactionSummaryResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidMonthFormat"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Get Recurring Summary","description":"Summarizes recurring income and expenses for a calendar month (`YYYY-MM`). Expected, paid, and received totals are returned as positive magnitudes in the household's reporting currency.\n\nExpected totals follow each series' schedule; paid and received totals sum matched transactions, so they can differ.","tags":["recurring-transactions"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/recurring-transactions/occurrences":{"get":{"operationId":"list_recurring_occurrences","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"query","name":"start_date","schema":{"description":"First day of the range, inclusive, as `YYYY-MM-DD`. Occurrences are selected by their `expected_date`.","examples":["2026-08-01"],"format":"date","type":"string"},"required":true,"description":"First day of the range, inclusive, as `YYYY-MM-DD`. Occurrences are selected by their `expected_date`."},{"in":"query","name":"end_date","schema":{"description":"Last day of the range, inclusive, as `YYYY-MM-DD`. It can be in the future, in which case occurrences not yet due are returned as `upcoming`.","examples":["2026-08-31"],"format":"date","type":"string"},"required":true,"description":"Last day of the range, inclusive, as `YYYY-MM-DD`. It can be in the future, in which case occurrences not yet due are returned as `upcoming`."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurringTransactionOccurrenceListResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"List Recurring Occurrences","description":"Lists expected recurring income and expense occurrences within an inclusive date range, with their status and any matched transaction details.\n\nOccurrences are calculated from stored schedules and transaction history; they are not new financial transactions. Cancelled series contribute only through their end date. Use this response to build a recurring calendar and distinguish expected activity from recorded payments.","tags":["recurring-transactions"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/recurring-transactions/{recurring_transaction_id}/occurrences":{"get":{"operationId":"list_recurring_transaction_occurrences","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"recurring_transaction_id","schema":{"description":"ID of the recurring transaction.","examples":["Rt6wP4dM8xNc"],"type":"string"},"required":true,"description":"ID of the recurring transaction."},{"in":"query","name":"start_date","schema":{"description":"First day of the range, inclusive, as `YYYY-MM-DD`. Occurrences are selected by their `expected_date`.","examples":["2026-08-01"],"format":"date","type":"string"},"required":true,"description":"First day of the range, inclusive, as `YYYY-MM-DD`. Occurrences are selected by their `expected_date`."},{"in":"query","name":"end_date","schema":{"description":"Last day of the range, inclusive, as `YYYY-MM-DD`. It can be in the future, in which case occurrences not yet due are returned as `upcoming`.","examples":["2026-08-31"],"format":"date","type":"string"},"required":true,"description":"Last day of the range, inclusive, as `YYYY-MM-DD`. It can be in the future, in which case occurrences not yet due are returned as `upcoming`."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurringTransactionOccurrenceListResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurringTransactionNotFound"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"List Recurring Transaction Occurrences","description":"Lists expected occurrences for one recurring series within an inclusive date range, including their status and matched transaction details.\n\nMatching is coordinated across the household's series, so results agree with the household-wide occurrences endpoint when several series could match the same transaction.","tags":["recurring-transactions"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/recurring-transactions/suggestions":{"get":{"operationId":"list_recurring_suggestions","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurringTransactionSuggestionListResponse"},"example":{"suggestions":[{"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"},"suggested_name":"Netflix","suggested_amount":{"amount":"-17.99","currency":"USD"},"display_amount":{"amount":"-17.99","currency":"USD"},"suggested_direction":"expense","suggested_frequency":"every_month","suggested_start_date":"2026-03-09","confidence":0.9289547675518279,"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}]}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}}},"summary":"List Recurring Suggestions","description":"Detects candidate recurring series from the household's transaction history and returns suggested merchants, amounts, frequencies, and supporting details.\n\nSuggestions account for existing tracked series and previous dismissals. They are proposals, not saved recurring transactions. To track a suggestion, create a recurring series with the desired details; to suppress one, use the dismiss endpoint.","tags":["recurring-transactions"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/recurring-transactions/suggestions/dismiss":{"post":{"operationId":"dismiss_recurring_suggestion","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantNotFound"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Dismiss Recurring Suggestion","description":"Dismisses one suggested recurring series identified by merchant, amount, currency, and frequency. Existing transactions and saved series are unaffected.\n\nEach call dismisses one series. Repeating the request can suppress additional identical series, so this isn't idempotent; call the restore endpoint to undo a dismissal.","tags":["recurring-transactions"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DismissSuggestionRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/recurring-transactions/suggestions/restore":{"post":{"operationId":"restore_recurring_suggestion","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"bad_request","message":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DismissedSuggestionNotFound"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Restore Recurring Suggestion","description":"Reverses one recurring-suggestion dismissal identified by merchant, amount, currency, and frequency. The candidate may appear again if current transaction history still supports it.\n\nEach request restores one dismissed series. Returns `suggestion_not_found` when there is no matching dismissal to reverse.","tags":["recurring-transactions"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreSuggestionRequest"}}},"required":true},"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/recurring-transactions/{recurring_transaction_id}":{"get":{"operationId":"get_recurring_transaction","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"recurring_transaction_id","schema":{"description":"ID of the recurring transaction.","examples":["Rt6wP4dM8xNc"],"type":"string"},"required":true,"description":"ID of the recurring transaction."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurringTransactionResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotHouseholdMember"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurringTransactionNotFound"}}}}},"summary":"Get Recurring Transaction","description":"Returns a recurring series (active or cancelled) with its merchant, amount, currency, frequency, anchor date, status, and notes.\n\nCall its occurrences endpoint for expected dates and matched transactions.","tags":["recurring-transactions"],"security":[{"PersonalApiToken":[]}]},"patch":{"operationId":"update_recurring_transaction","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"recurring_transaction_id","schema":{"description":"ID of the recurring transaction.","examples":["Rt6wP4dM8xNc"],"type":"string"},"required":true,"description":"ID of the recurring transaction."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurringTransactionResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidFrequencyFields"},{"$ref":"#/components/schemas/HttpErrorResponse"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/RecurringTransactionNotFound"},{"$ref":"#/components/schemas/MerchantNotFound"}],"discriminator":{"propertyName":"code","mapping":{"recurring_transaction_not_found":"#/components/schemas/RecurringTransactionNotFound","merchant_not_found":"#/components/schemas/MerchantNotFound"}}}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpErrorResponse"},"example":{"code":"unsupported_media_type","message":"Unsupported Media Type"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Update Recurring Transaction","description":"Updates a recurring series. Send only the fields you want to change; omitted fields keep their current values. After the update, `frequency` and `start_date` must agree—twice-monthly frequencies require `start_date: null`, while all others require an anchor date—so switching between them requires sending both.\n\nSetting `status` to `cancelled` records today in the household's time zone as `end_date` (keeping any existing `end_date` on later edits); setting it back to `active` clears `end_date`. This only updates tracking in Penny—it doesn't cancel payments with the merchant.","tags":["recurring-transactions"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRecurringTransactionRequest"},"example":{"amount":"-19.99","notes":"Price increased in August"}}},"required":true},"security":[{"PersonalApiToken":[]}]},"delete":{"operationId":"delete_recurring_transaction","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"recurring_transaction_id","schema":{"description":"ID of the recurring transaction.","examples":["Rt6wP4dM8xNc"],"type":"string"},"required":true,"description":"ID of the recurring transaction."}],"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRequired"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurringTransactionNotFound"}}}}},"summary":"Delete Recurring Transaction","description":"Permanently deletes a recurring series and removes its expected occurrences. Transactions previously matched to it are kept.\n\nTo stop future occurrences while keeping past schedule history, update `status` to `cancelled` instead. Deleting a series doesn't cancel payments with the merchant.","tags":["recurring-transactions"],"security":[{"PersonalApiToken":[]}]}},"/v1/securities":{"get":{"operationId":"list_securities","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecurityListResponse"}}}}},"summary":"List Securities","description":"Returns the fixed catalog of benchmark securities Penny tracks (slug, ticker symbol, and name). No authentication required.\n\nPass a returned `slug` to `GET /v1/securities/{slug}/prices`. These are market benchmarks, not a household's investment holdings.","tags":["securities"]}},"/v1/securities/{slug}/prices":{"get":{"operationId":"get_security_prices","parameters":[{"in":"path","name":"slug","schema":{"description":"URL-safe identifier of the security, as returned by `GET /v1/securities`.","examples":["sp500"],"type":"string"},"required":true,"description":"URL-safe identifier of the security, as returned by `GET /v1/securities`."},{"in":"query","name":"start_date","schema":{"description":"Earliest day to include, inclusive. Omit it to start from the oldest stored price.","examples":["2026-08-01"],"format":"date","type":"string"},"required":false,"description":"Earliest day to include, inclusive. Omit it to start from the oldest stored price."},{"in":"query","name":"end_date","schema":{"description":"Latest day to include, inclusive. Omit it to run through the newest stored price.","examples":["2026-08-31"],"format":"date","type":"string"},"required":false,"description":"Latest day to include, inclusive. Omit it to run through the newest stored price."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecurityPriceHistoryResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecurityNotFound"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"summary":"Get Security Prices","description":"Returns daily closing prices for a benchmark security, oldest first. No authentication required.\n\nUse a `slug` from `GET /v1/securities`. Optional date bounds are inclusive, and days without a stored close (such as weekends and market holidays) are omitted.","tags":["securities"]}},"/v1/households/{household_id}/exports":{"post":{"operationId":"request_export","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"202":{"description":"Accepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataExportResponse"},"example":{"id":"Ex7mQ2vK9pLd","status":"pending","requested_by_email":"alex.rivera@example.com","file_size_bytes":null,"download_url":null,"expires_at":null,"completed_at":null,"created_at":"2026-08-14T15:58:40Z"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReadOnlyToken"},{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"read_only_token":"#/components/schemas/ReadOnlyToken","not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataExportInProgress"}}}}},"summary":"Request Export","description":"Queues a ZIP archive of the household's data. Owner only, including when the subscription has lapsed.\n\nPoll `GET /v1/households/{household_id}/exports/{export_id}` until `status` is `completed` or `failed`. Completed archives include a download URL and expire after seven days. Only one export can run per household at a time; a second request returns `export_in_progress`.","tags":["exports"],"security":[{"PersonalApiToken":[]}]},"get":{"operationId":"list_exports","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataExportListResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}}},"summary":"List Exports","description":"Returns the household's ten most recent exports, newest first, with their status and download URLs when ready. Owner only, including when the subscription has lapsed.\n\nCompleted archives expire after seven days. Calling this endpoint doesn't start a new export.","tags":["exports"],"security":[{"PersonalApiToken":[]}]}},"/v1/households/{household_id}/exports/{export_id}":{"get":{"operationId":"get_export","parameters":[{"in":"path","name":"household_id","schema":{"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"required":true,"description":"ID of the household that owns the resource. `GET /v1/households` lists the households you can access."},{"in":"path","name":"export_id","schema":{"description":"ID of the data export.","examples":["Ex7mQ2vK9pLd"],"type":"string"},"required":true,"description":"ID of the data export."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataExportResponse"},"example":{"id":"Ex7mQ2vK9pLd","status":"completed","requested_by_email":"alex.rivera@example.com","file_size_bytes":2487316,"download_url":"https://downloads.penny.finance/exports/Hh4vK8pQ2sLm/Ex7mQ2vK9pLd/penny-export-2026-08-14.zip","expires_at":"2026-08-21T15:59:12Z","completed_at":"2026-08-14T15:59:12Z","created_at":"2026-08-14T15:58:40Z"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}},"headers":{"WWW-Authenticate":{"description":"Authentication challenges accepted by this operation.","schema":{"type":"string"},"example":"Bearer"}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/NotHouseholdMember"},{"$ref":"#/components/schemas/InsufficientHouseholdRole"}],"discriminator":{"propertyName":"code","mapping":{"not_household_member":"#/components/schemas/NotHouseholdMember","insufficient_household_role":"#/components/schemas/InsufficientHouseholdRole"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataExportNotFound"}}}}},"summary":"Get Export","description":"Returns an export's status and, once completed, its download URL, size, and expiration time. Poll this endpoint after requesting an export. Owner only, including when the subscription has lapsed.\n\nSigned download URLs can expire before the archive itself—call this endpoint again for a fresh link. Download before `expires_at`; purged exports return `export_not_found`.","tags":["exports"],"security":[{"PersonalApiToken":[]}]}}},"components":{"schemas":{"AuthProvider":{"enum":["apple","google"],"title":"AuthProvider","type":"string"},"HouseholdAccessStatus":{"enum":["available","subscription_required"],"title":"HouseholdAccessStatus","type":"string"},"HouseholdRole":{"enum":["owner","member","viewer"],"title":"HouseholdRole","type":"string"},"HouseholdSummary":{"properties":{"id":{"description":"Unique ID of the household. Use it as `household_id` in household-scoped endpoints.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"name":{"description":"Display name of the household, chosen by its owner.","examples":["Rivera Household"],"type":"string"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"URL of the household's uploaded image. `null` when none has been uploaded, in which case clients draw their own placeholder.","examples":["https://cdn.penny.finance/households/Hh4vK8pQ2sLm.png"]},"role":{"$ref":"#/components/schemas/HouseholdRole","description":"The user's role in this household. The single `owner` manages the household and its members, a `member` can view and change its financial data, and a `viewer` can only read it.","examples":["owner"]},"account_count":{"description":"Number of financial accounts in the household, including closed accounts and its built-in Cash account but not deleted accounts.","examples":[4],"type":"integer"},"access_status":{"$ref":"#/components/schemas/HouseholdAccessStatus","description":"Whether the household can be used right now. The server decides this from the owner's subscription, so read it rather than working it out from subscription data. `available` means it can be used; `subscription_required` means the owner has no active subscription and most household endpoints return `402`.","examples":["available"]}},"required":["id","name","image_url","role","account_count","access_status"],"title":"HouseholdSummary","type":"object"},"SocialAccountResponse":{"properties":{"provider":{"$ref":"#/components/schemas/AuthProvider","description":"Identity provider the user can sign in with, either `apple` or `google`.","examples":["apple"]}},"required":["provider"],"title":"SocialAccountResponse","type":"object"},"SubscriptionStatus":{"enum":["active","expired","none"],"title":"SubscriptionStatus","type":"string"},"SubscriptionSummary":{"description":"Your own subscription. It does not decide whether you can use a household:\nthat depends on the household owner's subscription and is reported as each\nhousehold's `access_status`.","properties":{"status":{"$ref":"#/components/schemas/SubscriptionStatus","description":"State of the user's own subscription. `active` means they hold a current entitlement, `expired` means a past purchase has lapsed, and `none` means they have never purchased.","examples":["active"]},"entitlement_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Identifier of the entitlement the user currently holds, the highest tier if they hold several. `null` when they hold none.","examples":["Penny Pro"]}},"required":["status","entitlement_id"],"title":"SubscriptionSummary","type":"object"},"UserWithHouseholdsResponse":{"properties":{"id":{"description":"Unique ID of the user.","examples":["Us2mH7qB5kLp"],"type":"string"},"email":{"description":"Email address the user signs in with, in lowercase.","examples":["alex.rivera@example.com"],"format":"email","type":"string"},"pending_email":{"anyOf":[{"format":"email","type":"string"},{"type":"null"}],"description":"New address the user has asked to change to but has not yet confirmed from the emailed link. `null` when no change is waiting.","examples":[null]},"name":{"description":"Display name shown to the other members of the user's households.","examples":["Alex Rivera"],"type":"string"},"is_email_verified":{"description":"Whether the user has confirmed that they own `email`.","examples":[true],"type":"boolean"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"URL of the user's uploaded profile image. `null` when none has been uploaded, in which case clients draw their own placeholder.","examples":["https://cdn.penny.finance/users/Us2mH7qB5kLp.png"]},"has_password":{"description":"Whether the user can sign in with a password. `false` for an account created through Apple or Google sign-in that has not set one.","examples":[true],"type":"boolean"},"has_completed_onboarding":{"description":"Whether the user has finished the app's first-run setup, or skipped it by joining a household through an invitation. Once `true` it stays `true`.","examples":[true],"type":"boolean"},"monthly_recap_enabled":{"description":"Whether the user gets the monthly recap email, a summary of their selected household's month. `true` until the user turns it off.","examples":[true],"type":"boolean"},"product_emails_enabled":{"description":"Whether the user gets product emails, such as announcements of new features. `false` until the user turns it on.","examples":[false],"type":"boolean"},"social_accounts":{"description":"Sign-in providers linked to the user. Empty when the user signs in with a password only.","items":{"$ref":"#/components/schemas/SocialAccountResponse"},"type":"array"},"households":{"description":"Every household the user belongs to, with their role in each. The household with the most financial accounts comes first, with the older household first on a tie.","items":{"$ref":"#/components/schemas/HouseholdSummary"},"type":"array"},"selected_household_id":{"anyOf":[{"examples":["Hh4vK8pQ2sLm"],"type":"string"},{"type":"null"}],"description":"ID of the household the user last switched to, or of the first entry in `households` if they have never chosen one. `null` only when the user belongs to no household."},"subscription":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionSummary"},{"type":"null"}],"description":"The user's own subscription, or `null` when Penny holds no subscription record for them yet. Access to a household depends on its owner's subscription instead, so use `households[].access_status` to decide whether one can be used."},"accepted_invite_household_id":{"anyOf":[{"examples":["Hh4vK8pQ2sLm"],"type":"string"},{"type":"null"}],"description":"Household selected after accepting an invite during sign-in or sign-up. `null` outside of an invite sign-in.","examples":[null]}},"required":["id","email","pending_email","name","is_email_verified","image_url","has_password","has_completed_onboarding","monthly_recap_enabled","product_emails_enabled","social_accounts","households","selected_household_id","subscription","accepted_invite_household_id"],"title":"UserWithHouseholdsResponse","type":"object"},"NotAuthenticated":{"properties":{"code":{"const":"not_authenticated","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Authentication required"]}},"required":["code","message"],"title":"NotAuthenticated","type":"object"},"UserResponse":{"properties":{"id":{"description":"Unique ID of the user.","examples":["Us2mH7qB5kLp"],"type":"string"},"email":{"description":"Email address the user signs in with, in lowercase.","examples":["alex.rivera@example.com"],"format":"email","type":"string"},"pending_email":{"anyOf":[{"format":"email","type":"string"},{"type":"null"}],"description":"New address the user has asked to change to but has not yet confirmed from the emailed link. `null` when no change is waiting.","examples":[null]},"name":{"description":"Display name shown to the other members of the user's households.","examples":["Alex Rivera"],"type":"string"},"is_email_verified":{"description":"Whether the user has confirmed that they own `email`.","examples":[true],"type":"boolean"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"URL of the user's uploaded profile image. `null` when none has been uploaded, in which case clients draw their own placeholder.","examples":["https://cdn.penny.finance/users/Us2mH7qB5kLp.png"]}},"required":["id","email","pending_email","name","is_email_verified","image_url"],"title":"UserResponse","type":"object"},"ReadOnlyToken":{"properties":{"code":{"const":"read_only_token","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["This API token only permits read requests"]}},"required":["code","message"],"title":"ReadOnlyToken","type":"object"},"HttpErrorResponse":{"description":"A request rejected before it reached the endpoint, such as a body that isn't valid JSON.","properties":{"code":{"description":"Machine-readable code named after the HTTP status, such as `bad_request`.","examples":["bad_request"],"type":"string"},"message":{"description":"The HTTP status phrase. The wording can change, so don't parse it.","examples":["Bad Request"],"type":"string"}},"required":["code","message"],"title":"HttpErrorResponse","type":"object"},"FieldError":{"properties":{"field":{"description":"Dotted path to the field that failed, without the request source: `currency`, or `splits.0.amount` for a nested value.","examples":["splits.0.amount"],"type":"string"},"code":{"description":"Machine-readable reason the field failed, such as `missing` or `decimal_parsing`.","examples":["decimal_parsing"],"type":"string"},"message":{"description":"Human-readable explanation of the failure. The wording can change.","examples":["Input should be a valid decimal"],"type":"string"},"context":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"description":"Extra detail the validator attached, with every value as a string. `null` when there is none.","examples":[null]}},"required":["field","code","message","context"],"title":"FieldError","type":"object"},"ValidationErrorResponse":{"properties":{"code":{"const":"validation_error","description":"Always `validation_error` for a request that failed validation.","type":"string"},"message":{"description":"Human-readable summary. The wording can change; `errors` says what to fix.","examples":["Some fields are invalid."],"type":"string"},"errors":{"description":"Every field that failed validation, so all of them can be fixed in one round trip.","items":{"$ref":"#/components/schemas/FieldError"},"type":"array"}},"required":["code","message","errors"],"title":"ValidationErrorResponse","type":"object"},"UpdateUserRequest":{"properties":{"name":{"description":"New display name, shown to the other members of the user's households. Omit it to keep the current name.","examples":["Alex Rivera"],"maxLength":100,"type":"string"}},"title":"UpdateUserRequest","type":"object"},"ImageUploadResponse":{"properties":{"image_url":{"description":"URL of the stored image, ready to display.","examples":["https://cdn.penny.finance/merchants/trader-joes.png"],"type":"string"}},"required":["image_url"],"title":"ImageUploadResponse","type":"object"},"ImageInvalidFileType":{"properties":{"code":{"const":"invalid_file_type","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["File must be JPEG, PNG, or WebP"]}},"required":["code","message"],"title":"ImageInvalidFileType","type":"object"},"ImageFileTooLarge":{"properties":{"code":{"const":"file_too_large","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["File exceeds maximum size of 5 MiB"]}},"required":["code","message"],"title":"ImageFileTooLarge","type":"object"},"ImageNoImage":{"properties":{"code":{"const":"no_image","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["No image to delete"]}},"required":["code","message"],"title":"ImageNoImage","type":"object"},"FiatCurrency":{"enum":["AED","AFN","ALL","AMD","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BHD","BIF","BMD","BND","BOB","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHF","CLP","CNY","COP","CRC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLE","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VES","VND","VUV","WST","XAF","XCD","XCG","XOF","XPF","YER","ZAR","ZMW","ZWG"],"title":"FiatCurrency","type":"string"},"HouseholdListResponse":{"properties":{"households":{"description":"Every household you belong to. The household with the most financial accounts comes first, with the older household first on a tie.","items":{"$ref":"#/components/schemas/HouseholdResponse"},"type":"array"}},"required":["households"],"title":"HouseholdListResponse","type":"object"},"HouseholdPreferences":{"properties":{"show_recurring_suggestions":{"description":"Whether clients should show the recurring transactions Penny suggests from the household's history. It is a display setting only: the suggestions endpoint returns suggestions either way. `true` for a new household.","examples":[true],"type":"boolean"},"show_advanced_details":{"description":"Whether clients should show extra technical identifiers on transactions, which help when contacting support. `false` for a new household.","examples":[false],"type":"boolean"}},"required":["show_recurring_suggestions","show_advanced_details"],"title":"HouseholdPreferences","type":"object"},"HouseholdResponse":{"properties":{"id":{"description":"Unique ID of the household. Use it as `household_id` in household-scoped endpoints.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"name":{"description":"Display name of the household, chosen by its owner.","examples":["Rivera Household"],"type":"string"},"currency":{"$ref":"#/components/schemas/FiatCurrency","description":"The household's reporting currency, as an ISO 4217 code. Totals, reports and net worth are converted to it; accounts and transactions keep their own currencies.","examples":["USD"]},"timezone":{"description":"IANA time zone that decides which calendar day counts as today for the household, including the day a balance snapshot is recorded on.","examples":["America/Los_Angeles"],"type":"string"},"week_start":{"$ref":"#/components/schemas/Weekday","description":"Day the household's week starts on, for clients to lay out weekly views.","examples":["sunday"]},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"URL of the household's uploaded image. `null` when none has been uploaded, in which case clients draw their own placeholder.","examples":["https://cdn.penny.finance/households/Hh4vK8pQ2sLm.png"]},"role":{"$ref":"#/components/schemas/HouseholdRole","description":"Your role in this household. The single `owner` manages the household and its members, a `member` can view and change its financial data, and a `viewer` can only read it.","examples":["owner"]},"preferences":{"$ref":"#/components/schemas/HouseholdPreferences","description":"Display settings shared by everyone in the household."},"access_status":{"$ref":"#/components/schemas/HouseholdAccessStatus","description":"Whether the household can be used right now. The server decides this from the owner's subscription, so read it rather than working it out from subscription data. `available` means it can be used; `subscription_required` means the owner has no active subscription and most household endpoints return `402`.","examples":["available"]}},"required":["id","name","currency","timezone","week_start","image_url","role","preferences","access_status"],"title":"HouseholdResponse","type":"object"},"Weekday":{"enum":["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],"title":"Weekday","type":"string"},"CreateHouseholdRequest":{"properties":{"name":{"description":"Display name for the household, shown to everyone who belongs to it.","examples":["Rivera Household"],"maxLength":255,"type":"string"},"currency":{"$ref":"#/components/schemas/FiatCurrency","description":"Reporting currency for the household, as an ISO 4217 code such as `USD`. Totals, reports and net worth are converted to it; accounts and transactions keep their own currencies.","examples":["USD"]},"timezone":{"description":"IANA time zone name, such as `America/Los_Angeles`. It decides which calendar day counts as today for the household, including the day a balance snapshot is recorded on.","examples":["America/Los_Angeles"],"type":"string"},"week_start":{"allOf":[{"$ref":"#/components/schemas/Weekday"}],"default":"sunday","description":"Day the household's week starts on, for clients to lay out weekly views.","examples":["sunday"]}},"required":["name","currency","timezone"],"title":"CreateHouseholdRequest","type":"object"},"NotHouseholdMember":{"properties":{"code":{"const":"not_household_member","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Not a member of this household"]}},"required":["code","message"],"title":"NotHouseholdMember","type":"object"},"InsufficientHouseholdRole":{"properties":{"code":{"const":"insufficient_household_role","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Insufficient household role"]}},"required":["code","message"],"title":"InsufficientHouseholdRole","type":"object"},"SubscriptionRequired":{"properties":{"code":{"const":"subscription_required","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["This household's subscription has lapsed"]},"household_id":{"description":"ID of the household whose subscription needs to be renewed.","examples":["Hh4vK8pQ2sLm"],"type":"string"}},"required":["code","message","household_id"],"title":"SubscriptionRequired","type":"object"},"UpdateHouseholdRequest":{"properties":{"name":{"description":"New display name for the household. Omit it to keep the current name.","examples":["Rivera Household"],"maxLength":255,"type":"string"},"currency":{"allOf":[{"$ref":"#/components/schemas/FiatCurrency"}],"description":"New reporting currency, as an ISO 4217 code such as `USD`. Totals, reports and net worth are converted to it from then on; accounts and transactions keep their own currencies. Omit it to keep the current currency.","examples":["USD"]},"timezone":{"description":"New IANA time zone name, which decides which calendar day counts as today for the household. Omit it to keep the current time zone.","examples":["America/Los_Angeles"],"type":"string"},"week_start":{"allOf":[{"$ref":"#/components/schemas/Weekday"}],"description":"New first day of the household's week. Omit it to keep the current day.","examples":["sunday"]}},"title":"UpdateHouseholdRequest","type":"object"},"HouseholdInviteItemResponse":{"properties":{"id":{"description":"Unique ID of the invitation.","examples":["Iv8qM3cT6nRa"],"type":"string"},"email":{"description":"Email address the invitation was sent to, in lowercase. The invitee joins by signing in to Penny with this address.","examples":["jamie.rivera@example.com"],"format":"email","type":"string"},"role":{"$ref":"#/components/schemas/HouseholdRole","description":"Role the invitee receives on joining, either `member` or `viewer`. An invitation never grants `owner`.","examples":["member"]},"invited_by_email":{"description":"Email address of the user who sent the invitation.","examples":["alex.rivera@example.com"],"format":"email","type":"string"},"expires_at":{"description":"When the invitation stops being valid, 30 days after it was last sent. Expired invitations are not listed.","examples":["2026-09-09T17:45:00Z"],"format":"date-time","type":"string"}},"required":["id","email","role","invited_by_email","expires_at"],"title":"HouseholdInviteItemResponse","type":"object"},"HouseholdMemberItemResponse":{"properties":{"id":{"description":"User ID of the member.","examples":["Us2mH7qB5kLp"],"type":"string"},"name":{"description":"The member's display name, which they set on their own profile.","examples":["Alex Rivera"],"type":"string"},"email":{"description":"Email address the member signs in with.","examples":["alex.rivera@example.com"],"format":"email","type":"string"},"role":{"$ref":"#/components/schemas/HouseholdRole","description":"The member's role in the household. The single `owner` manages the household and its members, a `member` can view and change its financial data, and a `viewer` can only read it.","examples":["owner"]},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"URL of the member's profile image. `null` when they have not uploaded one, in which case clients draw their own placeholder.","examples":["https://cdn.penny.finance/users/Us2mH7qB5kLp.png"]},"joined_at":{"description":"When the user became a member of the household. For the user who created the household, this is when it was created.","examples":["2026-01-05T18:24:09Z"],"format":"date-time","type":"string"}},"required":["id","name","email","role","image_url","joined_at"],"title":"HouseholdMemberItemResponse","type":"object"},"HouseholdMembersResponse":{"properties":{"members":{"description":"Everyone who currently belongs to the household, including its owner.","items":{"$ref":"#/components/schemas/HouseholdMemberItemResponse"},"type":"array"},"invitations":{"description":"Invitations that have been sent but not yet accepted, newest first. Expired invitations are left out.","items":{"$ref":"#/components/schemas/HouseholdInviteItemResponse"},"type":"array"}},"required":["members","invitations"],"title":"HouseholdMembersResponse","type":"object"},"UpdateHouseholdPreferencesRequest":{"properties":{"show_recurring_suggestions":{"description":"Whether clients should show the recurring transactions Penny suggests from the household's history. It is a display setting only: the suggestions endpoint returns suggestions either way. `true` for a new household.","examples":[true],"type":"boolean"},"show_advanced_details":{"description":"Whether clients should show extra technical identifiers on transactions, which help when contacting support. `false` for a new household.","examples":[false],"type":"boolean"}},"title":"UpdateHouseholdPreferencesRequest","type":"object"},"MerchantResponse":{"properties":{"id":{"description":"Unique identifier of the merchant. Transactions, recurring series, and rules refer to the merchant by this ID.","examples":["Mr9dL3xT6bQa"],"type":"string"},"name":{"description":"Display name, unique among the household's active merchants ignoring case and accents. A merchant created during a sync starts with the bank's name for it, and users can rename it.","examples":["Trader Joe's"],"type":"string"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Merchant's website. Set by a user, or filled in from bank data when the merchant has none; `null` when unknown.","examples":["https://www.traderjoes.com/"]},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"URL of the image to display for the merchant, already resolved: the custom upload when there is one, otherwise `default_image_url`. `null` when the merchant has no image at all.","examples":["https://cdn.penny.finance/merchants/trader-joes.png"]},"default_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Image that `image_url` falls back to when the custom upload is deleted: Penny's curated logo if the merchant's name matches a known brand, otherwise the logo supplied by the bank. `null` when neither exists.","examples":["https://cdn.penny.finance/logos/trader-joes.png"]},"transaction_count":{"description":"Number of transactions assigned to the merchant in the default list: hidden and deleted transactions, the originals of split transactions and transactions on deleted accounts are not counted.","examples":[18],"type":"integer"},"recurring_transaction_count":{"description":"Number of recurring series set up for the merchant, counting both active and cancelled series.","examples":[1],"type":"integer"}},"required":["id","name","website","image_url","default_image_url","transaction_count","recurring_transaction_count"],"title":"MerchantResponse","type":"object"},"DuplicateName":{"properties":{"code":{"const":"duplicate_name","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["This name is already in use"]}},"required":["code","message"],"title":"DuplicateName","type":"object"},"CreateMerchantRequest":{"properties":{"name":{"description":"Display name shown on the merchant's transactions. Must be unique among the household's active merchants, ignoring case and accents.","examples":["Trader Joe's"],"maxLength":255,"minLength":1,"type":"string"},"website":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}],"description":"Merchant's website as an absolute `http` or `https` URL. Send `null` for no website. Omitting it means no website on create and keeps the current one on an update.","examples":["https://www.traderjoes.com/"]}},"required":["name"],"title":"CreateMerchantRequest","type":"object"},"MerchantListResponse":{"properties":{"merchants":{"description":"Active merchants in the household, including merchants with no transactions, in no guaranteed order. Deleted merchants are left out.","items":{"$ref":"#/components/schemas/MerchantResponse"},"type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as `cursor` to fetch the next page. Null when `has_more` is false.","examples":["eyJpZCI6ICJNcjlkTDN4VDZiUWEifQ=="]},"has_more":{"description":"Whether more results follow this page.","type":"boolean"}},"required":["merchants","next_cursor","has_more"],"title":"MerchantListResponse","type":"object"},"InvalidCursor":{"properties":{"code":{"const":"invalid_cursor","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Invalid pagination cursor. Please start a new query."]}},"required":["code","message"],"title":"InvalidCursor","type":"object"},"MerchantNotFound":{"properties":{"code":{"const":"merchant_not_found","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Merchant not found"]}},"required":["code","message"],"title":"MerchantNotFound","type":"object"},"UpdateMerchantRequest":{"properties":{"name":{"description":"Display name shown on the merchant's transactions. Must be unique among the household's active merchants, ignoring case and accents.","examples":["Trader Joe's"],"maxLength":255,"minLength":1,"type":"string"},"website":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}],"description":"Merchant's website as an absolute `http` or `https` URL. Send `null` for no website. Omitting it means no website on create and keeps the current one on an update.","examples":["https://www.traderjoes.com/"]}},"title":"UpdateMerchantRequest","type":"object"},"AccountProvider":{"enum":["plaid","manual","financekit"],"title":"AccountProvider","type":"string"},"InstitutionConnectionStatus":{"properties":{"id":{"description":"Penny's ID for the institution. The built-in Apple entries use fixed IDs instead: `apple` in the directory and featured list, and `apple-card`, `apple-cash` and `apple-savings` in the connection-status list.","examples":["In5gT2wX8mKd"],"type":"string"},"provider":{"$ref":"#/components/schemas/AccountProvider","description":"How accounts at this institution connect. `plaid` institutions connect through Plaid; `financekit` marks the Apple entries, which connect through Apple's FinanceKit on the user's iPhone.","examples":["plaid"]},"name":{"description":"Institution name as listed in the provider's directory.","examples":["Chase"],"type":"string"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Address of the institution's website. `null` when the provider lists none.","examples":["https://www.chase.com/"]},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"URL of the logo to display for the institution: Penny's own logo for it when there is one, otherwise the provider's. `null` when no logo is available.","examples":["https://cdn.penny.finance/institutions/chase.png"]},"primary_color":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Institution's brand color as a hex string, as reported by the provider. `null` when the provider gives none, and always `null` for Apple.","examples":["#117ACA"]},"popularity_rank":{"anyOf":[{"maximum":30,"minimum":1,"type":"integer"},{"type":"null"}],"description":"Display rank among the top 30 featured Plaid institutions (1–30). Not a Penny usage metric. `null` for Apple and institutions outside that set.","examples":[1]},"login_success_percentage":{"anyOf":[{"maximum":100,"minimum":0,"type":"number"},{"type":"null"}],"description":"Login success percentage: reported by Plaid, or fixed at 100 for Apple. Plaid data is null when unavailable or stale.","examples":[98.5]},"login_success_checked_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When Penny last fetched `login_success_percentage` from Plaid, which it does about once a day. `null` whenever `login_success_percentage` is `null`, and always `null` for Apple.","examples":["2026-08-14T09:30:00Z"]},"notices":{"description":"Open Plaid incidents affecting connections to this institution, most recently updated first. Empty when there are none, when Penny's latest snapshot is more than 26 hours old, and always for Apple.","items":{"$ref":"#/components/schemas/InstitutionNotice"},"type":"array"}},"required":["id","provider","name","website","image_url","primary_color","popularity_rank","login_success_percentage","login_success_checked_at","notices"],"title":"InstitutionConnectionStatus","type":"object"},"InstitutionNotice":{"properties":{"title":{"description":"Headline of the incident, as published by Plaid.","examples":["Intermittent login failures"],"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Text of the most recent update to the incident. `null` when the incident has no update text.","examples":["The bank is returning errors for some sign-in attempts. A fix is underway."]},"status":{"description":"Status from the incident's most recent update. `investigating` means the cause is not yet known, `identified` means it is known and being fixed, and `scheduled` marks a planned event. `unknown` covers an incident with no updates or a status Penny does not recognize.","enum":["investigating","identified","scheduled","unknown"],"examples":["identified"],"type":"string"},"starts_at":{"description":"When the incident began, or is scheduled to begin.","examples":["2026-08-13T21:40:00Z"],"format":"date-time","type":"string"},"updated_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the incident's most recent update was posted. `null` when the incident has no dated update.","examples":["2026-08-14T08:15:00Z"]}},"required":["title","description","status","starts_at","updated_at"],"title":"InstitutionNotice","type":"object"},"PaginatedConnectionStatusResponse":{"properties":{"institutions":{"description":"The requested page of matching institutions. A featured set of popular institutions and Apple products comes first in a fixed order, followed by all others ordered by name.","items":{"$ref":"#/components/schemas/InstitutionConnectionStatus"},"type":"array"},"has_login_success_data":{"description":"Whether any institution that matches `search`, on any page, currently has a `login_success_percentage` value. When `false`, login success data is unavailable as a whole rather than missing for this page.","examples":[true],"type":"boolean"},"total_count":{"description":"Number of institutions that match `search` across all pages.","examples":[10131],"type":"integer"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as `cursor` to fetch the next page. Null when `has_more` is false.","examples":["eyJvZmZzZXQiOiA1MCwgInNoIjogImUzYjBjNDQyOThmYzFjMTQifQ=="]},"has_more":{"description":"Whether more results follow this page.","type":"boolean"}},"required":["institutions","has_login_success_data","total_count","next_cursor","has_more"],"title":"PaginatedConnectionStatusResponse","type":"object"},"FiltersChanged":{"properties":{"code":{"const":"filters_changed","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Filters have changed since the cursor was created. Please start a new query."]}},"required":["code","message"],"title":"FiltersChanged","type":"object"},"InstitutionResponse":{"properties":{"id":{"description":"Penny's ID for the institution. The built-in Apple entries use fixed IDs instead: `apple` in the directory and featured list, and `apple-card`, `apple-cash` and `apple-savings` in the connection-status list.","examples":["In5gT2wX8mKd"],"type":"string"},"provider":{"$ref":"#/components/schemas/AccountProvider","description":"How accounts at this institution connect. `plaid` institutions connect through Plaid; `financekit` marks the Apple entries, which connect through Apple's FinanceKit on the user's iPhone.","examples":["plaid"]},"name":{"description":"Institution name as listed in the provider's directory.","examples":["Chase"],"type":"string"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Address of the institution's website. `null` when the provider lists none.","examples":["https://www.chase.com/"]},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"URL of the logo to display for the institution: Penny's own logo for it when there is one, otherwise the provider's. `null` when no logo is available.","examples":["https://cdn.penny.finance/institutions/chase.png"]},"primary_color":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Institution's brand color as a hex string, as reported by the provider. `null` when the provider gives none, and always `null` for Apple.","examples":["#117ACA"]},"popularity_rank":{"anyOf":[{"maximum":30,"minimum":1,"type":"integer"},{"type":"null"}],"description":"Display rank among the top 30 featured Plaid institutions (1–30). Not a Penny usage metric. `null` for Apple and institutions outside that set.","examples":[1]}},"required":["id","provider","name","website","image_url","primary_color","popularity_rank"],"title":"InstitutionResponse","type":"object"},"PaginatedInstitutionsResponse":{"properties":{"institutions":{"description":"The requested page of matching institutions. Apple comes first when it matches `search`, followed by the rest ordered by name.","items":{"$ref":"#/components/schemas/InstitutionResponse"},"type":"array"},"total_count":{"description":"Number of institutions that match `search` across all pages.","examples":[12847],"type":"integer"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as `cursor` to fetch the next page. Null when `has_more` is false.","examples":["eyJvZmZzZXQiOiA1MCwgInNoIjogImUzYjBjNDQyOThmYzFjMTQifQ=="]},"has_more":{"description":"Whether more results follow this page.","type":"boolean"}},"required":["institutions","total_count","next_cursor","has_more"],"title":"PaginatedInstitutionsResponse","type":"object"},"CuratedInstitutionsResponse":{"properties":{"institutions":{"description":"Featured institutions in display order, with Apple first. A featured institution that is not yet in Penny's directory is left out.","items":{"$ref":"#/components/schemas/InstitutionResponse"},"type":"array"}},"required":["institutions"],"title":"CuratedInstitutionsResponse","type":"object"},"AccountGroup":{"properties":{"type":{"$ref":"#/components/schemas/AccountType","description":"Account type shared by every account in the group. Groups are returned in the order `depository`, `credit`, `investment`, `brokerage`, `loan`, `other`, and a type with no accounts has no group.","examples":["depository"]},"accounts":{"description":"Accounts of this type, including closed accounts but not deleted ones.","items":{"$ref":"#/components/schemas/FinancialAccountResponse"},"type":"array"},"total_balance":{"$ref":"#/components/schemas/Money","description":"Sum of the group's account balances, converted to the household's reporting currency at today's exchange rate. Liabilities are negative, and closed accounts and accounts with no reported balance count as zero.","examples":[{"amount":"2481.33","currency":"USD"}]}},"required":["type","accounts","total_balance"],"title":"AccountGroup","type":"object"},"AccountType":{"enum":["investment","credit","depository","loan","brokerage","other"],"title":"AccountType","type":"string"},"Currency":{"enum":["ADA","AED","AFN","ALL","AMD","AOA","ARS","AUD","AWG","AZN","BAM","BAT","BBD","BCH","BDT","BHD","BIF","BMD","BNB","BND","BOB","BRL","BSD","BTC","BTN","BWP","BYN","BZD","CAD","CDF","CHF","CLP","CNH","CNY","COP","CRC","CUP","CVE","CZK","DASH","DJF","DKK","DOGE","DOP","DZD","EGP","ERN","ETB","ETC","ETH","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLE","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USDT","UYU","UZS","VES","VND","VUV","WST","XAF","XCD","XCG","XLM","XOF","XPF","XRP","YER","ZAR","ZEC","ZMW","ZRX","ZWG"],"title":"Currency","type":"string"},"FinancialAccountResponse":{"properties":{"id":{"description":"Unique ID of the account. Use it in account endpoints and as an `account_ids` filter value.","examples":["Ac7kP2mN9qRs"],"type":"string"},"mask":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Last few characters of the account number, as reported by the bank. `null` when the provider doesn't supply one, which includes Apple and manual accounts.","examples":["4821"]},"name":{"description":"Account name from the provider: the bank's official product name when it gives one, prefixed with the institution's name unless the name already contains it. Display `custom_name` instead when it is set.","examples":["Everyday Checking"],"type":"string"},"type":{"$ref":"#/components/schemas/AccountType","description":"Kind of account, set by the provider. `depository` covers checking and savings, `credit` is credit cards, `loan` covers mortgages and other loans, and `investment` and `brokerage` hold securities. `other` is anything else, including the household's manual Cash account.","examples":["depository"]},"current_balance":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"Latest balance reported by the provider, in the account's own `currency` rather than the household's. Money owed on `credit` and `loan` accounts is negative, and the account list reports `0` for a closed account. `null` when no balance has been reported.","examples":[{"amount":"2481.33","currency":"USD"}]},"currency":{"$ref":"#/components/schemas/Currency","description":"Currency the account is held in, as reported by the provider. Usually an ISO 4217 code; accounts that hold crypto can report unofficial codes such as `BTC`.","examples":["USD"]},"household_id":{"description":"ID of the household the account belongs to.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"custom_name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Name the user gave the account in Penny, to display in place of `name`. `null` when the user hasn't renamed it.","examples":[null]},"provider":{"$ref":"#/components/schemas/AccountProvider","description":"How the account reaches Penny. `plaid` is a bank connection through Plaid, `financekit` is an Apple account synced from the user's iPhone, and `manual` is the household's built-in Cash account, whose balance Penny does not track. `apple` is reserved and not currently returned.","examples":["plaid"]},"transaction_count":{"description":"Number of transactions on the account. Deleted transactions are not counted, and a split transaction counts as its parts rather than the original.","examples":[184],"type":"integer"},"is_closed":{"description":"Whether the account has been marked closed in Penny. A closed account keeps its transactions and stays in the account list with a zero balance, unlike a deleted account, which is removed from lists and reports until it is restored.","examples":[false],"type":"boolean"},"linked_at":{"description":"When the account was first added to Penny.","examples":["2026-01-05T18:31:44Z"],"format":"date-time","type":"string"},"last_synced_at":{"description":"When Penny last finished syncing the account with its provider. Manual accounts are never synced, so this stays at the time the account was created.","examples":["2026-08-14T15:47:03Z"],"format":"date-time","type":"string"},"added_by_id":{"anyOf":[{"examples":["Us2mH7qB5kLp"],"type":"string"},{"type":"null"}],"description":"ID of the user who connected the account, or who created the household for its built-in Cash account. `null` when that user is no longer known, for example after they deleted their Penny account."},"plaid":{"anyOf":[{"$ref":"#/components/schemas/PlaidInfo"},{"type":"null"}],"description":"Connection details for an account linked through Plaid. `null` for other providers, and for a Plaid account whose bank connection has been removed."},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"URL of the image to display for the account: the custom image uploaded for it when there is one, otherwise `default_image_url`. `null` when it has neither.","examples":["https://cdn.penny.finance/institutions/chase.png"]},"default_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Image the account falls back to when its custom image is removed: the institution's logo for a Plaid account, or the Apple product's logo for a FinanceKit account. `null` when Penny has no logo, as for manual accounts.","examples":["https://cdn.penny.finance/institutions/chase.png"]}},"required":["id","mask","name","type","current_balance","currency","household_id","custom_name","provider","transaction_count","is_closed","linked_at","last_synced_at","added_by_id","plaid","image_url","default_image_url"],"title":"FinancialAccountResponse","type":"object"},"GroupedAccountsResponse":{"properties":{"groups":{"description":"One group per account type that has at least one account.","items":{"$ref":"#/components/schemas/AccountGroup"},"type":"array"},"total_balance":{"$ref":"#/components/schemas/Money","description":"Sum of every group's `total_balance`, in the household's reporting currency. Because liabilities are negative, this is the household's net worth.","examples":[{"amount":"2481.33","currency":"USD"}]}},"required":["groups","total_balance"],"title":"GroupedAccountsResponse","type":"object"},"Money":{"properties":{"amount":{"description":"Decimal string in major units of `currency`, so `\"-6.50\"` is six dollars and fifty cents spent. It has as many decimal places as the currency uses (`12.50` USD, `-45000` JPY, `1.250` KWD), plus any further digits the bank reported.","examples":["68.42"],"pattern":"(?:^-?(?:(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?|0E[+-][1-9][0-9]*|[1-9](?:\\.[0-9]+)?E\\+[1-9][0-9]*|[1-9](?:\\.[0-9]+)?E-[1-9][0-9]*)$)$","type":"string"},"currency":{"$ref":"#/components/schemas/Currency","description":"Currency of `amount`. Usually an ISO 4217 code; accounts that hold crypto can report unofficial codes such as `BTC`.","examples":["USD"]}},"required":["amount","currency"],"title":"Money","type":"object"},"PlaidConnectionStatus":{"enum":["healthy","needs_update","pending_expiration","pending_disconnect","revoked"],"title":"PlaidConnectionStatus","type":"string"},"PlaidInfo":{"properties":{"item_id":{"description":"Plaid Item ID of the bank connection the account came from. Accounts linked through the same bank login share one `item_id`.","examples":["item_8d4f1c2a9b7e"],"type":"string"},"connection_status":{"$ref":"#/components/schemas/PlaidConnectionStatus","description":"Health of the bank connection. `healthy` syncs normally. `needs_update` and `revoked` have stopped syncing until the user reconnects; `pending_expiration` and `pending_disconnect` still sync but will stop unless the user reconnects.","examples":["healthy"]},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Plaid error code behind a `needs_update` or `revoked` status, such as `ITEM_LOGIN_REQUIRED`, or `USER_ACCOUNT_REVOKED` when the user withdrew access to this account alone. `null` when the connection has no error.","examples":[null]}},"required":["item_id","connection_status","error_code"],"title":"PlaidInfo","type":"object"},"DeletedAccountsResponse":{"properties":{"accounts":{"description":"Deleted accounts that can still be restored, most recently deleted first. They and their transactions are left out of every other list and report.","items":{"$ref":"#/components/schemas/FinancialAccountResponse"},"type":"array"}},"required":["accounts"],"title":"DeletedAccountsResponse","type":"object"},"AccountNotFound":{"properties":{"code":{"const":"account_not_found","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Account not found"]}},"required":["code","message"],"title":"AccountNotFound","type":"object"},"UpdateAccountRequest":{"properties":{"custom_name":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}],"description":"Name to display for the account in place of the provider's name. Send `null` to clear the override and go back to the provider's name.","examples":["Daily spending"]}},"title":"UpdateAccountRequest","type":"object"},"CloseAccountRequest":{"properties":{"closed_at":{"description":"Date the account closed. The account's current balance reports `0` as soon as it is marked closed, and its daily balance history is `0` from this date onward.","examples":["2026-08-14"],"format":"date","type":"string"}},"required":["closed_at"],"title":"CloseAccountRequest","type":"object"},"AccountBalance":{"properties":{"account_id":{"description":"ID of the account the balance belongs to.","examples":["Ac7kP2mN9qRs"],"type":"string"},"balance":{"$ref":"#/components/schemas/Money","description":"The account's balance on this day, in the account's own currency rather than the household's. Money owed on `credit` and `loan` accounts is negative, and a closed account is `0` from its closure date onward.","examples":[{"amount":"2481.33","currency":"USD"}]},"is_interpolated":{"description":"Whether no balance was recorded for the account on this day. When `true`, `balance` is carried forward from the most recent earlier day that has one.","examples":[false],"type":"boolean"}},"required":["account_id","balance","is_interpolated"],"title":"AccountBalance","type":"object"},"AccountEvent":{"properties":{"date":{"description":"Day the event happened: the first day the account has a recorded balance, or the date it was closed.","examples":["2026-01-05"],"format":"date","type":"string"},"account_id":{"description":"ID of the account the event belongs to.","examples":["Ac7kP2mN9qRs"],"type":"string"},"account_name":{"description":"Name the provider reported for the account. It can differ from `name` on the account endpoints and does not reflect a `custom_name` override.","examples":["Everyday Checking"],"type":"string"},"type":{"$ref":"#/components/schemas/AccountEventType","description":"`first_balance` marks the day the account's balance history begins. `account_closed` marks the date the account was closed in Penny, from which its balance is `0`.","examples":["first_balance"]}},"required":["date","account_id","account_name","type"],"title":"AccountEvent","type":"object"},"AccountEventType":{"enum":["first_balance","account_closed"],"title":"AccountEventType","type":"string"},"DailyBalance":{"properties":{"date":{"description":"Calendar day the balances are for.","examples":["2026-08-14"],"format":"date","type":"string"},"balance":{"$ref":"#/components/schemas/Money","description":"Total of every included account's balance on this day, converted to the household's reporting currency at that day's exchange rate. Liabilities are negative, so with all accounts included this is the household's net worth.","examples":[{"amount":"2481.33","currency":"USD"}]},"accounts":{"description":"Balance of each included account on this day, ordered by account ID. An account appears from the first day it has a recorded balance.","items":{"$ref":"#/components/schemas/AccountBalance"},"type":"array"}},"required":["date","balance","accounts"],"title":"DailyBalance","type":"object"},"HistoricalBalancesResponse":{"properties":{"balances":{"description":"One entry per calendar day in the range, oldest first. Days before any included account has a recorded balance are omitted.","items":{"$ref":"#/components/schemas/DailyBalance"},"type":"array"},"events":{"description":"First-balance and closure events for the included accounts, oldest first. Events are returned for the accounts' whole history, not only the requested date range.","items":{"$ref":"#/components/schemas/AccountEvent"},"type":"array"}},"required":["balances","events"],"title":"HistoricalBalancesResponse","type":"object"},"TagResponse":{"properties":{"id":{"description":"Unique identifier of the tag. Transactions and rule actions refer to the tag by this ID.","examples":["Tg8qN1cK5rWd"],"type":"string"},"name":{"description":"Display name, unique among the household's active tags.","examples":["Shared"],"type":"string"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Display color as a `#RRGGBB` hex string, or `null` when the tag has no color. The value is returned exactly as it was saved.","examples":["#6D5BD0"]},"transaction_count":{"description":"Number of transactions carrying the tag in the default list: hidden and deleted transactions, the originals of split transactions and transactions on deleted accounts are not counted.","examples":[12],"type":"integer"}},"required":["id","name","color","transaction_count"],"title":"TagResponse","type":"object"},"CreateTagRequest":{"properties":{"name":{"description":"Display name. Must be unique among the household's active tags, ignoring case.","examples":["Shared"],"maxLength":255,"minLength":1,"type":"string"},"color":{"anyOf":[{"maxLength":7,"type":"string"},{"type":"null"}],"description":"Display color as a `#RRGGBB` hex string. The format is not validated beyond the 7-character limit. Send `null` for a tag with no color.","examples":["#6D5BD0"]}},"required":["name"],"title":"CreateTagRequest","type":"object"},"TagListResponse":{"properties":{"tags":{"description":"Active tags in the household, including tags no transaction uses, in no guaranteed order. Deleted tags are left out.","items":{"$ref":"#/components/schemas/TagResponse"},"type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as `cursor` to fetch the next page. Null when `has_more` is false.","examples":["eyJpZCI6ICJUZzhxTjFjSzVyV2QifQ=="]},"has_more":{"description":"Whether more results follow this page.","type":"boolean"}},"required":["tags","next_cursor","has_more"],"title":"TagListResponse","type":"object"},"TagNotFound":{"properties":{"code":{"const":"tag_not_found","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Tag not found"]}},"required":["code","message"],"title":"TagNotFound","type":"object"},"UpdateTagRequest":{"properties":{"name":{"description":"Display name. Must be unique among the household's active tags, ignoring case.","examples":["Shared"],"maxLength":255,"minLength":1,"type":"string"},"color":{"anyOf":[{"maxLength":7,"type":"string"},{"type":"null"}],"description":"Display color as a `#RRGGBB` hex string. The format is not validated beyond the 7-character limit. Send `null` for a tag with no color.","examples":["#6D5BD0"]}},"title":"UpdateTagRequest","type":"object"},"AccountSummaryResponse":{"properties":{"id":{"description":"Unique ID of the account. Use it in account endpoints and as an `account_ids` filter value.","examples":["Ac7kP2mN9qRs"],"type":"string"},"mask":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Last few characters of the account number, as reported by the bank. `null` when the provider doesn't supply one, which includes Apple and manual accounts.","examples":["4821"]},"name":{"description":"Account name from the provider: the bank's official product name when it gives one, prefixed with the institution's name unless the name already contains it. Display `custom_name` instead when it is set.","examples":["Everyday Checking"],"type":"string"},"type":{"$ref":"#/components/schemas/AccountType","description":"Kind of account, set by the provider. `depository` covers checking and savings, `credit` is credit cards, `loan` covers mortgages and other loans, and `investment` and `brokerage` hold securities. `other` is anything else, including the household's manual Cash account.","examples":["depository"]},"current_balance":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"Latest balance reported by the provider, in the account's own `currency` rather than the household's. Money owed on `credit` and `loan` accounts is negative, and the account list reports `0` for a closed account. `null` when no balance has been reported.","examples":[{"amount":"2481.33","currency":"USD"}]},"currency":{"$ref":"#/components/schemas/Currency","description":"Currency the account is held in, as reported by the provider. Usually an ISO 4217 code; accounts that hold crypto can report unofficial codes such as `BTC`.","examples":["USD"]},"household_id":{"description":"ID of the household the account belongs to.","examples":["Hh4vK8pQ2sLm"],"type":"string"},"custom_name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Name the user gave the account in Penny, to display in place of `name`. `null` when the user hasn't renamed it.","examples":[null]}},"required":["id","mask","name","type","current_balance","currency","household_id","custom_name"],"title":"AccountSummaryResponse","type":"object"},"AmountFilterResponse":{"properties":{"currency":{"$ref":"#/components/schemas/FiatCurrency","description":"Currency the thresholds are compared in.","examples":["USD"]},"direction":{"$ref":"#/components/schemas/TransactionDirection","description":"Which transactions the filter applies to, by the sign of their amount: `expense` matches negative amounts, and `income` matches positive or zero amounts. To match on direction alone, pair it with `operator` `greater_than_or_equal` and `value` `\"0\"`.","examples":["expense"]},"operator":{"$ref":"#/components/schemas/AmountOperator","description":"How the transaction's absolute amount is compared with `value`: `equals`, `greater_than`, `less_than`, `greater_than_or_equal`, or `less_than_or_equal`. `between` matches from `value` through `value_upper`, both ends included.","examples":["between"]},"value":{"description":"Amount to compare against, or the lower bound for `between`. Send it unsigned and in `currency`: the transaction's sign is ignored, so `direction` is what selects expenses or income. Transactions in other currencies are converted at the transaction date's exchange rate, and both sides are rounded to the currency's minor unit before comparing. 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.","examples":["20.00"],"pattern":"(?:^-?(?:(?:0|[1-9][0-9]{0,19})(?:\\.[0-9]{1,18}0*)?|0E[+-][1-9][0-9]*|[1-9](?:\\.[0-9]+)?E\\+(?:[1-9]|1[0-9])|[1-9](?:\\.[0-9]{1,11}0*)?E-7|[1-9](?:\\.[0-9]{1,10}0*)?E-8|[1-9](?:\\.[0-9]{1,9}0*)?E-9|[1-9](?:\\.[0-9]{1,8}0*)?E-10|[1-9](?:\\.[0-9]{1,7}0*)?E-11|[1-9](?:\\.[0-9]{1,6}0*)?E-12|[1-9](?:\\.[0-9]{1,5}0*)?E-13|[1-9](?:\\.[0-9]{1,4}0*)?E-14|[1-9](?:\\.[0-9]{1,3}0*)?E-15|[1-9](?:\\.[0-9]{1,2}0*)?E-16|[1-9](?:\\.[0-9]0*)?E-17|[1-9](?:\\.0+)?E-18)$)$","type":"string"},"value_upper":{"anyOf":[{"examples":["68.42"],"pattern":"(?:^-?(?:(?:0|[1-9][0-9]{0,19})(?:\\.[0-9]{1,18}0*)?|0E[+-][1-9][0-9]*|[1-9](?:\\.[0-9]+)?E\\+(?:[1-9]|1[0-9])|[1-9](?:\\.[0-9]{1,11}0*)?E-7|[1-9](?:\\.[0-9]{1,10}0*)?E-8|[1-9](?:\\.[0-9]{1,9}0*)?E-9|[1-9](?:\\.[0-9]{1,8}0*)?E-10|[1-9](?:\\.[0-9]{1,7}0*)?E-11|[1-9](?:\\.[0-9]{1,6}0*)?E-12|[1-9](?:\\.[0-9]{1,5}0*)?E-13|[1-9](?:\\.[0-9]{1,4}0*)?E-14|[1-9](?:\\.[0-9]{1,3}0*)?E-15|[1-9](?:\\.[0-9]{1,2}0*)?E-16|[1-9](?:\\.[0-9]0*)?E-17|[1-9](?:\\.0+)?E-18)$)$","type":"string"},{"type":"null"}],"description":"Upper bound when `operator` is `between`; every other operator ignores it. `null` when the rule was saved without one. 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.","examples":["200.00"]}},"required":["currency","direction","operator","value","value_upper"],"title":"AmountFilterResponse","type":"object"},"AmountOperator":{"enum":["equals","greater_than","less_than","greater_than_or_equal","less_than_or_equal","between"],"title":"AmountOperator","type":"string"},"CategoryResponse":{"properties":{"id":{"description":"Unique identifier of the category. Transactions and rules refer to the category by this ID.","examples":["Ct5nR8wY1jFu"],"type":"string"},"name":{"description":"Display name, unique among the household's active categories.","examples":["Groceries"],"type":"string"},"emoji":{"description":"Emoji shown next to the name, unique among the household's active categories.","examples":["🥬"],"type":"string"},"category_type":{"$ref":"#/components/schemas/CategoryType","description":"Kind of money movement the category is for. Transactions in a `transfer` category are left out of income and spending reports. A grouped category always has its group's `group_type`.","examples":["expense"]},"group_id":{"anyOf":[{"examples":["Cg2mV7pL4zXe"],"type":"string"},{"type":"null"}],"description":"Group the category belongs to, or `null` when it is ungrouped."}},"required":["id","name","emoji","category_type","group_id"],"title":"CategoryResponse","type":"object"},"CategoryType":{"enum":["income","transfer","expense"],"title":"CategoryType","type":"string"},"MerchantSummaryResponse":{"properties":{"id":{"description":"Unique identifier of the merchant. Transactions, recurring series, and rules refer to the merchant by this ID.","examples":["Mr9dL3xT6bQa"],"type":"string"},"name":{"description":"Display name, unique among the household's active merchants ignoring case and accents. A merchant created during a sync starts with the bank's name for it, and users can rename it.","examples":["Trader Joe's"],"type":"string"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Merchant's website. Set by a user, or filled in from bank data when the merchant has none; `null` when unknown.","examples":["https://www.traderjoes.com/"]},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"URL of the image to display for the merchant, already resolved: the custom upload when there is one, otherwise `default_image_url`. `null` when the merchant has no image at all.","examples":["https://cdn.penny.finance/merchants/trader-joes.png"]},"default_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Image that `image_url` falls back to when the custom upload is deleted: Penny's curated logo if the merchant's name matches a known brand, otherwise the logo supplied by the bank. `null` when neither exists.","examples":["https://cdn.penny.finance/logos/trader-joes.png"]}},"required":["id","name","website","image_url","default_image_url"],"title":"MerchantSummaryResponse","type":"object"},"NameCondition":{"properties":{"pattern":{"description":"Text compared with the transaction's `name`, which is the user's rename when there is one and the bank's description otherwise. The comparison ignores case. Must contain at least one non-whitespace character.","examples":["trader joe"],"minLength":1,"type":"string"},"mode":{"$ref":"#/components/schemas/NameMatchMode","description":"How `pattern` is compared with the name: `contains` matches when it appears anywhere in the name, and `exact` only when it equals the whole name.","examples":["contains"]}},"required":["pattern","mode"],"title":"NameCondition","type":"object"},"NameMatchMode":{"enum":["contains","exact"],"title":"NameMatchMode","type":"string"},"PennyDetailedCategory":{"enum":["RENT_AND_UTILITIES_RENT","RENT_AND_UTILITIES_GAS_AND_ELECTRICITY","RENT_AND_UTILITIES_INTERNET_AND_CABLE","RENT_AND_UTILITIES_SEWAGE_AND_WASTE_MANAGEMENT","RENT_AND_UTILITIES_TELEPHONE","RENT_AND_UTILITIES_WATER","RENT_AND_UTILITIES_OTHER_UTILITIES","TRANSPORTATION_GAS","TRANSPORTATION_PUBLIC_TRANSIT","TRANSPORTATION_TAXIS_AND_RIDE_SHARES","TRANSPORTATION_TOLLS","TRANSPORTATION_PARKING","TRANSPORTATION_OTHER_TRANSPORTATION","FOOD_AND_DRINK_RESTAURANT","FOOD_AND_DRINK_FAST_FOOD","FOOD_AND_DRINK_COFFEE","FOOD_AND_DRINK_GROCERIES","FOOD_AND_DRINK_BEER_WINE_AND_LIQUOR","FOOD_AND_DRINK_OTHER_FOOD_AND_DRINK","MEDICAL_DENTAL_CARE","MEDICAL_EYE_CARE","MEDICAL_PRIMARY_CARE","MEDICAL_PHARMACIES_AND_SUPPLEMENTS","MEDICAL_VETERINARY_SERVICES","MEDICAL_NURSING_CARE","MEDICAL_OTHER_MEDICAL","ENTERTAINMENT_TV_AND_MOVIES","ENTERTAINMENT_VIDEO_GAMES","ENTERTAINMENT_SPORTING_EVENTS_AMUSEMENT_PARKS_AND_MUSEUMS","ENTERTAINMENT_MUSIC_AND_AUDIO","ENTERTAINMENT_CASINOS_AND_GAMBLING","ENTERTAINMENT_OTHER_ENTERTAINMENT","TRAVEL_FLIGHTS","TRAVEL_LODGING","TRAVEL_RENTAL_CARS","TRAVEL_OTHER_TRAVEL","GENERAL_MERCHANDISE_PET_SUPPLIES","GENERAL_MERCHANDISE_CLOTHING_AND_ACCESSORIES","GENERAL_MERCHANDISE_ONLINE_MARKETPLACES","GENERAL_MERCHANDISE_DEPARTMENT_STORES","GENERAL_MERCHANDISE_DISCOUNT_STORES","GENERAL_MERCHANDISE_SPORTING_GOODS","GENERAL_MERCHANDISE_ELECTRONICS","GENERAL_MERCHANDISE_BOOKSTORES_AND_NEWSSTANDS","GENERAL_MERCHANDISE_GIFTS_AND_NOVELTIES","GENERAL_MERCHANDISE_OFFICE_SUPPLIES","GENERAL_MERCHANDISE_TOBACCO_AND_VAPE","GENERAL_MERCHANDISE_SUPERSTORES","GENERAL_MERCHANDISE_CONVENIENCE_STORES","GENERAL_MERCHANDISE_OTHER_GENERAL_MERCHANDISE","PERSONAL_CARE_HAIR_AND_BEAUTY","PERSONAL_CARE_GYMS_AND_FITNESS_CENTERS","PERSONAL_CARE_LAUNDRY_AND_DRY_CLEANING","PERSONAL_CARE_OTHER_PERSONAL_CARE","INCOME_SALARY","INCOME_CONTRACTOR","INCOME_GIG_ECONOMY","INCOME_MILITARY","INCOME_DIVIDENDS","INCOME_INTEREST_EARNED","INCOME_RETIREMENT_PENSION","INCOME_TAX_REFUND","INCOME_UNEMPLOYMENT","INCOME_LONG_TERM_DISABILITY","INCOME_CHILD_SUPPORT","INCOME_RENTAL","INCOME_OTHER","TRANSFER_IN_DEPOSIT","TRANSFER_IN_INVESTMENT_AND_RETIREMENT_FUNDS","TRANSFER_IN_SAVINGS","TRANSFER_IN_ACCOUNT_TRANSFER","TRANSFER_IN_WIRE","TRANSFER_IN_TRANSFER_IN_FROM_APPS","TRANSFER_IN_OTHER_TRANSFER_IN","TRANSFER_OUT_WITHDRAWAL","TRANSFER_OUT_INVESTMENT_AND_RETIREMENT_FUNDS","TRANSFER_OUT_SAVINGS","TRANSFER_OUT_ACCOUNT_TRANSFER","TRANSFER_OUT_WIRE","TRANSFER_OUT_CRYPTO","TRANSFER_OUT_TRANSFER_OUT_FROM_APPS","TRANSFER_OUT_OTHER_TRANSFER_OUT","LOAN_DISBURSEMENTS_AUTO","LOAN_DISBURSEMENTS_CASH_ADVANCES","LOAN_DISBURSEMENTS_EWA","LOAN_DISBURSEMENTS_MORTGAGE","LOAN_DISBURSEMENTS_PERSONAL","LOAN_DISBURSEMENTS_STUDENT","LOAN_DISBURSEMENTS_OTHER_DISBURSEMENT","LOAN_PAYMENTS_CREDIT_CARD_PAYMENT","LOAN_PAYMENTS_CAR_PAYMENT","LOAN_PAYMENTS_MORTGAGE_PAYMENT","LOAN_PAYMENTS_STUDENT_LOAN_PAYMENT","LOAN_PAYMENTS_PERSONAL_LOAN_PAYMENT","LOAN_PAYMENTS_BNPL","LOAN_PAYMENTS_CASH_ADVANCES","LOAN_PAYMENTS_EWA","LOAN_PAYMENTS_OTHER_PAYMENT","BANK_FEES_ATM_FEES","BANK_FEES_FOREIGN_TRANSACTION_FEES","BANK_FEES_INSUFFICIENT_FUNDS","BANK_FEES_INTEREST_CHARGE","BANK_FEES_OVERDRAFT_FEES","BANK_FEES_LATE_FEES","BANK_FEES_CASH_ADVANCE","BANK_FEES_OTHER_BANK_FEES","GOVERNMENT_AND_NON_PROFIT_DONATIONS","GOVERNMENT_AND_NON_PROFIT_TAX_PAYMENT","GOVERNMENT_AND_NON_PROFIT_GOVERNMENT_DEPARTMENTS_AND_AGENCIES","GOVERNMENT_AND_NON_PROFIT_OTHER_GOVERNMENT_AND_NON_PROFIT","HOME_IMPROVEMENT_FURNITURE","HOME_IMPROVEMENT_HARDWARE","HOME_IMPROVEMENT_REPAIR_AND_MAINTENANCE","HOME_IMPROVEMENT_OTHER_HOME_IMPROVEMENT","GENERAL_SERVICES_ACCOUNTING_AND_FINANCIAL_PLANNING","GENERAL_SERVICES_AUTOMOTIVE","GENERAL_SERVICES_CHILDCARE","GENERAL_SERVICES_CONSULTING_AND_LEGAL","GENERAL_SERVICES_EDUCATION","GENERAL_SERVICES_INSURANCE","GENERAL_SERVICES_POSTAGE_AND_SHIPPING","GENERAL_SERVICES_STORAGE","GENERAL_SERVICES_OTHER_GENERAL_SERVICES"],"title":"PennyDetailedCategory","type":"string"},"RuleResponse":{"properties":{"id":{"description":"Unique identifier of the rule. A transaction's history refers to the rule by this ID when the rule changed the transaction.","examples":["Rl9cF3nV7sQa"],"type":"string"},"priority":{"description":"1-based position in the household's rule order, where `1` is the highest priority. When several matching rules set a category, merchant, or review flag, the highest-priority rule wins. New rules start at `1`; change the order with `POST /v1/households/{household_id}/rules/reorder`.","examples":[1],"type":"integer"},"account_ids":{"anyOf":[{"items":{"examples":["Ac7kP2mN9qRs"],"type":"string"},"type":"array"},{"type":"null"}],"description":"Matches transactions on one of these accounts, or `null` when the rule doesn't filter by account. Deleting an account keeps it here instead of widening the rule to every account; the rule still applies to transactions synced while deleted, which come back if the account is restored."},"deleted_accounts":{"description":"The accounts in `account_ids` that have been deleted, in the same order. The account list leaves deleted accounts out, so these let a client name them. Empty when none are deleted.","examples":[[]],"items":{"$ref":"#/components/schemas/AccountSummaryResponse"},"type":"array"},"merchant_ids":{"anyOf":[{"items":{"examples":["Mr9dL3xT6bQa"],"type":"string"},"type":"array"},{"type":"null"}],"description":"Matches transactions assigned to one of these merchants, or `null` when the rule doesn't filter by merchant. Deleting a merchant keeps it here so the rule matches nothing on it instead of skipping the check.","examples":[null]},"deleted_merchants":{"description":"The merchants in `merchant_ids` and `set_merchant_id` that have been deleted, in that order. The merchant list leaves deleted merchants out, so these let a client name them. Empty when none are deleted.","examples":[[]],"items":{"$ref":"#/components/schemas/MerchantSummaryResponse"},"type":"array"},"category_ids":{"anyOf":[{"items":{"examples":["Ct5nR8wY1jFu"],"type":"string"},"type":"array"},{"type":"null"}],"description":"Matches transactions currently in one of these categories, or `null` when the rule doesn't filter by category. Deleting a category keeps it here so the rule matches nothing on it instead of skipping the check.","examples":[null]},"deleted_categories":{"description":"The categories in `category_ids` and `set_category_id` that have been deleted, in that order. The category list leaves deleted categories out, so these let a client name them. Empty when none are deleted.","examples":[[]],"items":{"$ref":"#/components/schemas/CategoryResponse"},"type":"array"},"amount_filter":{"anyOf":[{"$ref":"#/components/schemas/AmountFilterResponse"},{"type":"null"}],"description":"Direction and amount criterion, or `null` when the rule has none. Amounts are compared in its `currency`."},"classifications":{"anyOf":[{"items":{"$ref":"#/components/schemas/PennyDetailedCategory"},"type":"array"},{"type":"null"}],"description":"Matches transactions whose `classification` is one of these values, or `null` when the rule doesn't filter by classification.","examples":[["FOOD_AND_DRINK_GROCERIES"]]},"name_conditions":{"anyOf":[{"items":{"$ref":"#/components/schemas/NameCondition"},"type":"array"},{"type":"null"}],"description":"Matches transactions whose name matches at least one of these conditions, or `null` when the rule doesn't filter by name."},"filter_uncategorized":{"description":"Whether the rule only matches transactions that have no category. A rule with this criterion is a fallback: it runs after all other rules, only when none of them assigned a category, and only fills in actions that no other rule took.","examples":[false],"type":"boolean"},"set_category_id":{"anyOf":[{"examples":["Ct5nR8wY1jFu"],"type":"string"},{"type":"null"}],"description":"Category action: the category the rule assigns to matching transactions, or `null` when it leaves the category alone. A category set directly on a transaction is never overwritten. Deleting the category leaves it here, and the rule stops assigning it, so a lower-priority rule can assign one instead."},"set_merchant_id":{"anyOf":[{"examples":["Mr9dL3xT6bQa"],"type":"string"},{"type":"null"}],"description":"Merchant action: the merchant the rule assigns to matching transactions, or `null` when it leaves the merchant alone. A merchant set directly on a transaction is never overwritten. Deleting the merchant leaves it here, and the rule stops assigning it, so a lower-priority rule can assign one instead.","examples":[null]},"apply_tag_ids":{"description":"Tag action: tags the rule adds to matching transactions, on top of the tags they already have. Empty when the rule adds none. Deleting a tag leaves it here, and the rule stops adding it.","items":{"examples":["Tg8qN1cK5rWd"],"type":"string"},"type":"array"},"deleted_tags":{"description":"The tags in `apply_tag_ids` that have been deleted, in the same order. The tag list leaves deleted tags out, so these let a client name them. Empty when none are deleted.","examples":[[]],"items":{"$ref":"#/components/schemas/TagSummaryResponse"},"type":"array"},"set_hidden":{"description":"Whether the rule hides matching transactions, which takes them out of regular lists and totals. `false` takes no action: a rule never unhides a transaction.","examples":[false],"type":"boolean"},"set_needs_review":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether the rule changes a matching transaction's `needs_review` flag: `true` flags it for review, `false` clears the flag, and `null` leaves the flag alone.","examples":[null]},"applied_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Number of existing transactions the rule was applied to by this request. Set only in the response to a create or update sent with `apply_to_existing: true`; `null` otherwise, including on every read.","examples":[null]}},"required":["id","priority","account_ids","deleted_accounts","merchant_ids","deleted_merchants","category_ids","deleted_categories","amount_filter","classifications","name_conditions","filter_uncategorized","set_category_id","set_merchant_id","apply_tag_ids","deleted_tags","set_hidden","set_needs_review","applied_count"],"title":"RuleResponse","type":"object"},"TagSummaryResponse":{"properties":{"id":{"description":"Unique identifier of the tag. Transactions and rule actions refer to the tag by this ID.","examples":["Tg8qN1cK5rWd"],"type":"string"},"name":{"description":"Display name, unique among the household's active tags.","examples":["Shared"],"type":"string"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Display color as a `#RRGGBB` hex string, or `null` when the tag has no color. The value is returned exactly as it was saved.","examples":["#6D5BD0"]}},"required":["id","name","color"],"title":"TagSummaryResponse","type":"object"},"TransactionDirection":{"description":"Whether an amount is `income` or `expense`.","enum":["income","expense"],"title":"TransactionDirection","type":"string"},"CategoryNotFound":{"properties":{"code":{"const":"category_not_found","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Category not found"]}},"required":["code","message"],"title":"CategoryNotFound","type":"object"},"AmountFilter":{"properties":{"currency":{"anyOf":[{"$ref":"#/components/schemas/FiatCurrency","examples":["USD"]},{"type":"null"}],"description":"Threshold currency. Creation and preview use the household currency when omitted or null."},"direction":{"$ref":"#/components/schemas/TransactionDirection","description":"Which transactions the filter applies to, by the sign of their amount: `expense` matches negative amounts, and `income` matches positive or zero amounts. To match on direction alone, pair it with `operator` `greater_than_or_equal` and `value` `\"0\"`.","examples":["expense"]},"operator":{"$ref":"#/components/schemas/AmountOperator","description":"How the transaction's absolute amount is compared with `value`: `equals`, `greater_than`, `less_than`, `greater_than_or_equal`, or `less_than_or_equal`. `between` matches from `value` through `value_upper`, both ends included.","examples":["between"]},"value":{"description":"Amount to compare against, or the lower bound for `between`. Send it unsigned and in `currency`: the transaction's sign is ignored, so `direction` is what selects expenses or income. Transactions in other currencies are converted at the transaction date's exchange rate, and both sides are rounded to the currency's minor unit before comparing. 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.","examples":["20.00"],"pattern":"(?:^[+-]?(?: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]+)$)$","type":"string"},"value_upper":{"anyOf":[{"examples":["68.42"],"pattern":"(?:^[+-]?(?: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]+)$)$","type":"string"},{"type":"null"}],"description":"Upper bound for `between`, which requires it; every other operator ignores it. Unsigned and in the same currency as `value`. Nothing matches if it is less than `value`. 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.","examples":["200.00"]}},"required":["direction","operator","value"],"title":"AmountFilter","type":"object"},"CreateRuleRequest":{"properties":{"filter_uncategorized":{"default":false,"description":"Whether the rule only matches transactions that have no category. A rule with this criterion is a fallback: it runs after all other rules, only when none of them assigned a category, and only fills in actions that no other rule took.","examples":[false],"type":"boolean"},"account_ids":{"anyOf":[{"items":{"examples":["Ac7kP2mN9qRs"],"type":"string"},"type":"array"},{"type":"null"}],"description":"Only match transactions on one of these accounts. Omit it, or send `null` or `[]`, to match any account. Deleted accounts' transactions are skipped by dry runs and `apply_to_existing`, though transactions synced while deleted still run through rules. Saving a rule rejects a deleted account it doesn't already have."},"merchant_ids":{"anyOf":[{"items":{"examples":["Mr9dL3xT6bQa"],"type":"string"},"type":"array"},{"type":"null"}],"description":"Only match transactions assigned to one of these merchants (transactions without a merchant never match). Omit it, or send `null` or `[]`, to skip this check. A deleted merchant matches nothing, and saving rejects one the rule doesn't already have.","examples":[null]},"category_ids":{"anyOf":[{"items":{"examples":["Ct5nR8wY1jFu"],"type":"string"},"type":"array"},{"type":"null"}],"description":"Only match transactions currently in one of these categories (uncategorized transactions never match). Omit it, or send `null` or `[]`, to skip this check. A deleted category matches nothing, and saving rejects one the rule doesn't already have.","examples":[null]},"amount_filter":{"anyOf":[{"$ref":"#/components/schemas/AmountFilter"},{"type":"null"}],"description":"Only match transactions on the given side (`income` or `expense`) whose amount passes the comparison. Omit it or send `null` to match any direction and amount."},"classifications":{"anyOf":[{"items":{"$ref":"#/components/schemas/PennyDetailedCategory"},"type":"array"},{"type":"null"}],"description":"Only match transactions whose `classification` is one of these values (transactions without one never match). Omit it, or send `null` or `[]`, to skip this check.","examples":[["FOOD_AND_DRINK_GROCERIES"]]},"name_conditions":{"anyOf":[{"items":{"$ref":"#/components/schemas/NameCondition"},"type":"array"},{"type":"null"}],"description":"Only match transactions whose name matches at least one of these conditions. Omit it, or send `null` or `[]`, to skip this check."},"set_category_id":{"anyOf":[{"examples":["Ct5nR8wY1jFu"],"type":"string"},{"type":"null"}],"description":"Category action: the category assigned to matching transactions. `null` leaves the category alone. A category set directly on a transaction is never overwritten, and when several matching rules set one, the highest-priority rule wins. A deleted category is never assigned, and saving a rule refuses one the rule doesn't already have."},"set_merchant_id":{"anyOf":[{"examples":["Mr9dL3xT6bQa"],"type":"string"},{"type":"null"}],"description":"Merchant action: the merchant assigned to matching transactions. `null` leaves the merchant alone. A merchant set directly on a transaction is never overwritten, and when several matching rules set one, the highest-priority rule wins. A deleted merchant is never assigned, and saving a rule refuses one the rule doesn't already have.","examples":[null]},"apply_tag_ids":{"anyOf":[{"items":{"examples":["Tg8qN1cK5rWd"],"type":"string"},"type":"array"},{"type":"null"}],"description":"Tag action: tags added to matching transactions. Existing tags are kept, and the tags of every matching rule are combined. `null` or `[]` adds none. A deleted tag is never added, and saving a rule refuses one the rule doesn't already have."},"set_hidden":{"default":false,"description":"Whether the rule hides matching transactions, which takes them out of regular lists and totals. `false` takes no action: a rule never unhides a transaction.","examples":[false],"type":"boolean"},"set_needs_review":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether the rule changes a matching transaction's `needs_review` flag: `true` flags it for review, `false` clears the flag, and `null` leaves the flag alone. When several matching rules set it, the highest-priority rule wins.","examples":[null]},"apply_to_existing":{"default":false,"description":"Whether to also apply the saved rule to the household's existing transactions, skipping hidden and deleted ones; the response reports how many as `applied_count`. Only this rule is evaluated, so it takes effect even where a higher-priority rule would otherwise win. When `false`, the rule only affects transactions created or changed afterwards.","examples":[false],"type":"boolean"}},"title":"CreateRuleRequest","type":"object"},"RuleListResponse":{"properties":{"rules":{"description":"The household's active rules in priority order, highest priority first. Deleted rules are left out.","items":{"$ref":"#/components/schemas/RuleResponse"},"type":"array"}},"required":["rules"],"title":"RuleListResponse","type":"object"},"InvalidRuleIds":{"properties":{"code":{"const":"invalid_rule_ids","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Rule IDs must match exactly all rules in the household"]}},"required":["code","message"],"title":"InvalidRuleIds","type":"object"},"ReorderRulesRequest":{"properties":{"rule_ids":{"description":"IDs of every active rule in the household, each exactly once, in the new order with the highest priority first. A missing, repeated, or unknown ID fails the request with `invalid_rule_ids`.","items":{"examples":["Rl9cF3nV7sQa"],"type":"string"},"type":"array"}},"required":["rule_ids"],"title":"ReorderRulesRequest","type":"object"},"DailySumResponse":{"properties":{"date":{"description":"Calendar date the total is for.","examples":["2026-08-14"],"format":"date","type":"string"},"amount":{"$ref":"#/components/schemas/Money","description":"Net of every matching transaction on that date, including those on other pages, in the household's currency: negative when more went out than came in. Transactions in transfer categories are not counted.","examples":[{"amount":"-54.20","currency":"USD"}]}},"required":["date","amount"],"title":"DailySumResponse","type":"object"},"DryRunResponse":{"properties":{"matched_count":{"description":"Total number of transactions matching the criteria across all pages, not only those in `matches`.","examples":[18],"type":"integer"},"total_transactions":{"description":"Number of transactions the criteria were tested against: every transaction in the household that appears in regular lists. Deleted and hidden transactions, the originals of split transactions, and transactions on deleted accounts are not tested.","examples":[436],"type":"integer"},"matches":{"description":"One page of matching transactions, at most `limit` of them, newest first by `date`, with ties ordered by `id` descending.","items":{"$ref":"#/components/schemas/TransactionResponse"},"type":"array"},"daily_sums":{"description":"Signed total of the matches on each date in `matches`, including matches on other pages, newest date first, in the household's currency.","items":{"$ref":"#/components/schemas/DailySumResponse"},"type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as `cursor` to fetch the next page. Null when `has_more` is false.","examples":["eyJkYXRlIjoiMjAyNi0wOC0xMyIsImlkIjoiVHg4YVEya0w1blJlIn0"]},"has_more":{"description":"Whether more results follow this page.","type":"boolean"}},"required":["matched_count","total_transactions","matches","daily_sums","next_cursor","has_more"],"title":"DryRunResponse","type":"object"},"MerchantWithTransactionCountResponse":{"properties":{"id":{"description":"Unique identifier of the merchant. Transactions, recurring series, and rules refer to the merchant by this ID.","examples":["Mr9dL3xT6bQa"],"type":"string"},"name":{"description":"Display name, unique among the household's active merchants ignoring case and accents. A merchant created during a sync starts with the bank's name for it, and users can rename it.","examples":["Trader Joe's"],"type":"string"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Merchant's website. Set by a user, or filled in from bank data when the merchant has none; `null` when unknown.","examples":["https://www.traderjoes.com/"]},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"URL of the image to display for the merchant, already resolved: the custom upload when there is one, otherwise `default_image_url`. `null` when the merchant has no image at all.","examples":["https://cdn.penny.finance/merchants/trader-joes.png"]},"default_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Image that `image_url` falls back to when the custom upload is deleted: Penny's curated logo if the merchant's name matches a known brand, otherwise the logo supplied by the bank. `null` when neither exists.","examples":["https://cdn.penny.finance/logos/trader-joes.png"]},"transaction_count":{"description":"Number of transactions assigned to the merchant in the default list: hidden and deleted transactions, the originals of split transactions and transactions on deleted accounts are not counted.","examples":[18],"type":"integer"}},"required":["id","name","website","image_url","default_image_url","transaction_count"],"title":"MerchantWithTransactionCountResponse","type":"object"},"TransactionImageKind":{"enum":["merchant","account"],"title":"TransactionImageKind","type":"string"},"TransactionListing":{"description":"Where a transaction appears: `visible`, `hidden`, `deleted`, or `unlisted`.\n\nA split appears once. Its children appear in the default list in place of the\nparent, and a hidden or deleted parent appears in the hidden or deleted list in\nplace of its children. The side that is replaced is `unlisted`, and can still be\nfetched by ID.","enum":["visible","hidden","deleted","unlisted"],"title":"TransactionListing","type":"string"},"TransactionResponse":{"properties":{"id":{"description":"Unique ID of the transaction, used in the path of the other endpoints.","examples":["Tx3fJ9mS6vBa"],"type":"string"},"original_name":{"description":"Description of the transaction as the bank reported it, or the name entered when a manual transaction was created. Renaming a transaction never changes it, though a later bank sync can. A split part carries its parent's value.","examples":["TRADER JOE'S #142"],"type":"string"},"custom_name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Custom name a household member gave the transaction, shown in place of `original_name`. `null` when the transaction has not been renamed.","examples":["Weekly groceries"]},"amount":{"$ref":"#/components/schemas/Money","description":"Amount converted to the household's currency at the exchange rate for the transaction's `date`, rounded to that currency's smallest unit. Negative for money out (an expense) and positive for money in (income), on every account type. Equal to `native_amount` when the transaction is already in the household's currency.","examples":[{"amount":"-54.20","currency":"USD"}]},"native_amount":{"$ref":"#/components/schemas/Money","description":"Amount in the transaction's own currency, exactly as the bank reported it or as it was entered, with the same sign convention as `amount`. It is unaffected by exchange rates and is the total that the parts of a split must add up to.","examples":[{"amount":"-54.20","currency":"USD"}]},"lat":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Latitude of the place the transaction was made, in decimal degrees, as reported by the bank. `null` when the bank gives no location, which is the usual case.","examples":[37.7764]},"lon":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Longitude of the place the transaction was made, in decimal degrees, as reported by the bank. `null` when the bank gives no location, which is the usual case.","examples":[-122.4231]},"pending":{"description":"Whether the bank has authorized the transaction but not yet settled it. While `true`, the amount and `original_name` can still change; when it posts, Penny normally updates this same record instead of creating a new one.","examples":[false],"type":"boolean"},"classification":{"anyOf":[{"$ref":"#/components/schemas/PennyDetailedCategory"},{"type":"null"}],"description":"Penny's own classification of the transaction, normalized from the bank's data so that it means the same for every connection type. It is read-only and separate from `category`. `null` when the bank gave no reliable classification, and for manual transactions and split parts.","examples":["FOOD_AND_DRINK_GROCERIES"]},"account":{"$ref":"#/components/schemas/AccountSummaryResponse","description":"Account the transaction belongs to. It is fixed when the transaction is created."},"category":{"anyOf":[{"$ref":"#/components/schemas/CategoryResponse"},{"type":"null"}],"description":"Household category the transaction is filed under, assigned by a household member or a rule. `null` when the transaction is uncategorized."},"merchant":{"anyOf":[{"$ref":"#/components/schemas/MerchantWithTransactionCountResponse"},{"type":"null"}],"description":"Merchant the transaction is assigned to, matched from the bank's data or set by a household member or a rule. `null` when the transaction has no merchant."},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Image to show beside the transaction: the merchant's image when the transaction has a merchant, otherwise the account's image if the amount is positive or the category is a transfer category. `null` when that merchant or account has no image, and when a transaction without a merchant is neither of those.","examples":["https://cdn.penny.finance/merchants/trader-joes.png"]},"image_kind":{"$ref":"#/components/schemas/TransactionImageKind","description":"What `image_url` depicts, so a client can draw a matching placeholder when it is `null`. `account` when the transaction has no merchant and either has a positive amount or is in a transfer category; `merchant` in every other case.","examples":["merchant"]},"tags":{"description":"Tags attached to the transaction by a household member or a rule. Empty when it has none.","items":{"$ref":"#/components/schemas/TagSummaryResponse"},"type":"array"},"hidden_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the transaction itself was hidden, or null. It is not set on the children of a hidden split parent; `listing` says where they appear.","examples":[null]},"deleted_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the transaction itself was deleted, or null. It is not set on the children of a deleted split parent; `listing` says where they appear.","examples":[null]},"listing":{"$ref":"#/components/schemas/TransactionListing","description":"Where the transaction appears: the default list (`visible`), the hidden list (`hidden`), the deleted list (`deleted`), or none of them (`unlisted`). A split appears once. Its children appear in the default list in place of the parent, and a hidden or deleted parent appears in the hidden or deleted list in place of its children. Use this to place a transaction in a list; `hidden_at` and `deleted_at` describe only the transaction itself.","examples":["visible"]},"pending_transaction_id":{"anyOf":[{"examples":["Tx3fJ9mS6vBa"],"type":"string"},{"type":"null"}],"description":"The bank's own identifier for the pending transaction that this posted transaction replaced. It is a provider reference, not a Penny transaction ID, so it cannot be used with these endpoints. `null` when the bank reported no pending predecessor.","examples":[null]},"date":{"description":"Calendar date of the transaction as it appears on the statement, with no time or time zone. The bank supplies it, preferring the authorization date over the posting date; once a household member edits it, bank syncs no longer overwrite it.","examples":["2026-08-14"],"format":"date","type":"string"},"transacted_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the transaction happened, in UTC, if the bank reported a time. `null` when only the `date` is known. Within a date, transactions with a time are listed first, latest first.","examples":["2026-08-14T15:38:00Z"]},"needs_review":{"description":"Whether the transaction is flagged for a household member to look at. The flag is turned on or off by a member (through the bulk review endpoint) or by a rule; nothing else changes it.","examples":[false],"type":"boolean"},"is_editable":{"description":"Whether the update endpoint accepts edits to this transaction. A split parent is edited through its children, and a transaction that is deleted, under a deleted parent or on a deleted account takes no edits.","examples":[true],"type":"boolean"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free-text note written by a household member and visible to the whole household. `null` when there is none.","examples":["Groceries and paper towels"]},"created_at":{"description":"When Penny created the record, in UTC. For a bank transaction this is when it was first imported, not when the purchase happened; use `date` for that.","examples":["2026-08-14T15:41:27Z"],"format":"date-time","type":"string"},"updated_at":{"description":"When the transaction last changed, in UTC. Any change to its own fields or tags moves it, whether a household member, a rule or a bank sync made it, and so does hiding, deleting, restoring or splitting it. A split part reports the later of its own time and its parent's. Receipts, and edits to the category, merchant or tags it points to, do not move it. A transaction that has never changed has a value within a moment of `created_at`.","examples":["2026-08-14T16:02:11Z"],"format":"date-time","type":"string"},"name":{"description":"Name to display: `custom_name` when the transaction has been renamed, otherwise `original_name`.","examples":["Weekly groceries"],"type":"string"},"split_parent_id":{"anyOf":[{"examples":["Tx3fJ9mS6vBa"],"type":"string"},{"type":"null"}],"description":"ID of the parent transaction that this one is a part of. `null` unless this transaction was created by splitting another one.","examples":[null]},"split_child_ids":{"description":"IDs of the parts this transaction has been split into. Empty unless it is a split parent. Spending reports count the parts in place of the parent.","examples":[[]],"items":{"examples":["Tx3fJ9mS6vBa"],"type":"string"},"type":"array"},"is_recurring":{"description":"Whether Penny matched this transaction to an expected occurrence of one of the household's recurring transactions.","examples":[false],"type":"boolean"}},"required":["id","original_name","custom_name","amount","native_amount","lat","lon","pending","classification","account","category","merchant","image_url","image_kind","tags","hidden_at","deleted_at","listing","pending_transaction_id","date","transacted_at","needs_review","is_editable","notes","created_at","updated_at","name","split_parent_id","split_child_ids","is_recurring"],"title":"TransactionResponse","type":"object"},"DryRunRequest":{"properties":{"filter_uncategorized":{"default":false,"description":"Whether the rule only matches transactions that have no category. A rule with this criterion is a fallback: it runs after all other rules, only when none of them assigned a category, and only fills in actions that no other rule took.","examples":[false],"type":"boolean"},"account_ids":{"anyOf":[{"items":{"examples":["Ac7kP2mN9qRs"],"type":"string"},"type":"array"},{"type":"null"}],"description":"Only match transactions on one of these accounts. Omit it, or send `null` or `[]`, to match any account. Deleted accounts' transactions are skipped by dry runs and `apply_to_existing`, though transactions synced while deleted still run through rules. Saving a rule rejects a deleted account it doesn't already have."},"merchant_ids":{"anyOf":[{"items":{"examples":["Mr9dL3xT6bQa"],"type":"string"},"type":"array"},{"type":"null"}],"description":"Only match transactions assigned to one of these merchants (transactions without a merchant never match). Omit it, or send `null` or `[]`, to skip this check. A deleted merchant matches nothing, and saving rejects one the rule doesn't already have.","examples":[null]},"category_ids":{"anyOf":[{"items":{"examples":["Ct5nR8wY1jFu"],"type":"string"},"type":"array"},{"type":"null"}],"description":"Only match transactions currently in one of these categories (uncategorized transactions never match). Omit it, or send `null` or `[]`, to skip this check. A deleted category matches nothing, and saving rejects one the rule doesn't already have.","examples":[null]},"amount_filter":{"anyOf":[{"$ref":"#/components/schemas/AmountFilter"},{"type":"null"}],"description":"Only match transactions on the given side (`income` or `expense`) whose amount passes the comparison. Omit it or send `null` to match any direction and amount."},"classifications":{"anyOf":[{"items":{"$ref":"#/components/schemas/PennyDetailedCategory"},"type":"array"},{"type":"null"}],"description":"Only match transactions whose `classification` is one of these values (transactions without one never match). Omit it, or send `null` or `[]`, to skip this check.","examples":[["FOOD_AND_DRINK_GROCERIES"]]},"name_conditions":{"anyOf":[{"items":{"$ref":"#/components/schemas/NameCondition"},"type":"array"},{"type":"null"}],"description":"Only match transactions whose name matches at least one of these conditions. Omit it, or send `null` or `[]`, to skip this check."},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The `next_cursor` from the previous page. Omit it to start from the first page.","examples":["eyJkYXRlIjoiMjAyNi0wOC0xNCIsImlkIjoiVHgzZko5bVM2dkJhIn0"]},"limit":{"default":50,"description":"The most results to return in one page.","examples":[50],"maximum":200,"minimum":1,"type":"integer"}},"title":"DryRunRequest","type":"object"},"RuleNotFound":{"properties":{"code":{"const":"rule_not_found","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Rule not found"]}},"required":["code","message"],"title":"RuleNotFound","type":"object"},"ReplacementAmountFilter":{"properties":{"currency":{"$ref":"#/components/schemas/FiatCurrency","description":"Required currency for replacement thresholds.","examples":["USD"]},"direction":{"$ref":"#/components/schemas/TransactionDirection","description":"Which transactions the filter applies to, by the sign of their amount: `expense` matches negative amounts, and `income` matches positive or zero amounts. To match on direction alone, pair it with `operator` `greater_than_or_equal` and `value` `\"0\"`.","examples":["expense"]},"operator":{"$ref":"#/components/schemas/AmountOperator","description":"How the transaction's absolute amount is compared with `value`: `equals`, `greater_than`, `less_than`, `greater_than_or_equal`, or `less_than_or_equal`. `between` matches from `value` through `value_upper`, both ends included.","examples":["between"]},"value":{"description":"Amount to compare against, or the lower bound for `between`. Send it unsigned and in `currency`: the transaction's sign is ignored, so `direction` is what selects expenses or income. Transactions in other currencies are converted at the transaction date's exchange rate, and both sides are rounded to the currency's minor unit before comparing. 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.","examples":["20.00"],"pattern":"(?:^[+-]?(?: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]+)$)$","type":"string"},"value_upper":{"anyOf":[{"examples":["68.42"],"pattern":"(?:^[+-]?(?: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]+)$)$","type":"string"},{"type":"null"}],"description":"Upper bound for `between`, which requires it; every other operator ignores it. Unsigned and in the same currency as `value`. Nothing matches if it is less than `value`. 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.","examples":["200.00"]}},"required":["currency","direction","operator","value"],"title":"ReplacementAmountFilter","type":"object"},"UpdateRuleRequest":{"properties":{"filter_uncategorized":{"description":"Whether the rule only matches transactions that have no category. A rule with this criterion is a fallback: it runs after all other rules, only when none of them assigned a category, and only fills in actions that no other rule took.","examples":[false],"type":"boolean"},"account_ids":{"anyOf":[{"items":{"examples":["Ac7kP2mN9qRs"],"type":"string"},"type":"array"},{"type":"null"}],"description":"Only match transactions on one of these accounts. Omit it, or send `null` or `[]`, to match any account. Deleted accounts' transactions are skipped by dry runs and `apply_to_existing`, though transactions synced while deleted still run through rules. Saving a rule rejects a deleted account it doesn't already have."},"merchant_ids":{"anyOf":[{"items":{"examples":["Mr9dL3xT6bQa"],"type":"string"},"type":"array"},{"type":"null"}],"description":"Only match transactions assigned to one of these merchants (transactions without a merchant never match). Omit it, or send `null` or `[]`, to skip this check. A deleted merchant matches nothing, and saving rejects one the rule doesn't already have.","examples":[null]},"category_ids":{"anyOf":[{"items":{"examples":["Ct5nR8wY1jFu"],"type":"string"},"type":"array"},{"type":"null"}],"description":"Only match transactions currently in one of these categories (uncategorized transactions never match). Omit it, or send `null` or `[]`, to skip this check. A deleted category matches nothing, and saving rejects one the rule doesn't already have.","examples":[null]},"amount_filter":{"anyOf":[{"$ref":"#/components/schemas/ReplacementAmountFilter"},{"type":"null"}],"description":"Replaces the rule's direction and amount criterion. Unlike on create, `currency` is required. Send `null` to remove the criterion."},"classifications":{"anyOf":[{"items":{"$ref":"#/components/schemas/PennyDetailedCategory"},"type":"array"},{"type":"null"}],"description":"Only match transactions whose `classification` is one of these values (transactions without one never match). Omit it, or send `null` or `[]`, to skip this check.","examples":[["FOOD_AND_DRINK_GROCERIES"]]},"name_conditions":{"anyOf":[{"items":{"$ref":"#/components/schemas/NameCondition"},"type":"array"},{"type":"null"}],"description":"Only match transactions whose name matches at least one of these conditions. Omit it, or send `null` or `[]`, to skip this check."},"set_category_id":{"anyOf":[{"examples":["Ct5nR8wY1jFu"],"type":"string"},{"type":"null"}],"description":"Category action: the category assigned to matching transactions. `null` leaves the category alone. A category set directly on a transaction is never overwritten, and when several matching rules set one, the highest-priority rule wins. A deleted category is never assigned, and saving a rule refuses one the rule doesn't already have."},"set_merchant_id":{"anyOf":[{"examples":["Mr9dL3xT6bQa"],"type":"string"},{"type":"null"}],"description":"Merchant action: the merchant assigned to matching transactions. `null` leaves the merchant alone. A merchant set directly on a transaction is never overwritten, and when several matching rules set one, the highest-priority rule wins. A deleted merchant is never assigned, and saving a rule refuses one the rule doesn't already have.","examples":[null]},"apply_tag_ids":{"anyOf":[{"items":{"examples":["Tg8qN1cK5rWd"],"type":"string"},"type":"array"},{"type":"null"}],"description":"Tag action: tags added to matching transactions. Existing tags are kept, and the tags of every matching rule are combined. `null` or `[]` adds none. A deleted tag is never added, and saving a rule refuses one the rule doesn't already have."},"set_hidden":{"description":"Whether the rule hides matching transactions, which takes them out of regular lists and totals. `false` takes no action: a rule never unhides a transaction.","examples":[false],"type":"boolean"},"set_needs_review":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether the rule changes a matching transaction's `needs_review` flag: `true` flags it for review, `false` clears the flag, and `null` leaves the flag alone. When several matching rules set it, the highest-priority rule wins.","examples":[null]},"apply_to_existing":{"description":"Whether to also apply the saved rule to the household's existing transactions, skipping hidden and deleted ones; the response reports how many as `applied_count`. Only this rule is evaluated, so it takes effect even where a higher-priority rule would otherwise win. When `false`, the rule only affects transactions created or changed afterwards.","examples":[false],"type":"boolean"}},"title":"UpdateRuleRequest","type":"object"},"AccumulatedSpendingResponse":{"properties":{"income":{"$ref":"#/components/schemas/SpendingSideResponse","description":"Categories whose transactions net to a positive amount over the range, with their combined total and transaction count.","examples":[{"total":{"amount":"5200.00","currency":"USD"},"transaction_count":2,"category_breakdown":[{"category_id":"Ct9bH2kM4wPz","category_name":"Salary","total":{"amount":"5200.00","currency":"USD"},"transaction_count":2,"emoji":"💼"}]}]},"expenses":{"$ref":"#/components/schemas/SpendingSideResponse","description":"Categories whose transactions net to a negative amount over the range, with their combined total and transaction count. Expense amounts are negative.","examples":[{"total":{"amount":"-450.92","currency":"USD"},"transaction_count":12,"category_breakdown":[{"category_id":"Ct5nR8wY1jFu","category_name":"Groceries","total":{"amount":"-312.75","currency":"USD"},"transaction_count":5,"emoji":"🥬"},{"category_id":"Ct3xD6gQ8mVs","category_name":"Dining Out","total":{"amount":"-78.00","currency":"USD"},"transaction_count":4,"emoji":"🍣"},{"category_id":"Ct8fK2rB6yNd","category_name":"Subscriptions","total":{"amount":"-17.99","currency":"USD"},"transaction_count":1,"emoji":"📺"},{"category_id":null,"category_name":null,"total":{"amount":"-42.18","currency":"USD"},"transaction_count":2,"emoji":null}]}]},"net":{"$ref":"#/components/schemas/Money","description":"Income plus expenses over the range, in the household's currency: positive when more came in than went out.","examples":[{"amount":"4749.08","currency":"USD"}]}},"required":["income","expenses","net"],"title":"AccumulatedSpendingResponse","type":"object"},"SpendingCategoryBreakdownResponse":{"properties":{"category_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ID of the category. `null` on the entry that totals transactions with no category.","examples":["Ct5nR8wY1jFu"]},"category_name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Category's display name. `null` on the no-category entry.","examples":["Groceries"]},"total":{"$ref":"#/components/schemas/Money","description":"Net of the category's transactions in the household's currency, so refunds offset purchases: negative under `expenses`, positive under `income`. Excludes transfer categories, hidden or deleted transactions, deleted accounts, and split parents (their children count instead). Pending transactions are included. Amounts in other currencies are converted at the exchange rate for each transaction's date.","examples":[{"amount":"-312.75","currency":"USD"}]},"transaction_count":{"description":"Number of transactions netted into `total`.","examples":[5],"type":"integer"},"emoji":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Emoji shown with the category in the app. `null` on the no-category entry.","examples":["🥬"]}},"required":["category_id","category_name","total","transaction_count","emoji"],"title":"SpendingCategoryBreakdownResponse","type":"object"},"SpendingSideResponse":{"properties":{"total":{"$ref":"#/components/schemas/Money","description":"Sum of every `total` in `category_breakdown`, in the household's currency: zero or positive for income, zero or negative for expenses.","examples":[{"amount":"-450.92","currency":"USD"}]},"transaction_count":{"description":"Number of transactions behind `total`: the sum of every `transaction_count` in `category_breakdown`.","examples":[20],"type":"integer"},"category_breakdown":{"description":"One entry per category, sorted by category name with the no-category entry last. A category is placed by the sign of its net, not by its category type, and is omitted when it nets to zero.","examples":[[{"category_id":"Ct5nR8wY1jFu","category_name":"Groceries","total":{"amount":"-312.75","currency":"USD"},"transaction_count":5,"emoji":"🥬"},{"category_id":"Ct3xD6gQ8mVs","category_name":"Dining Out","total":{"amount":"-78.00","currency":"USD"},"transaction_count":4,"emoji":"🍣"},{"category_id":"Ct8fK2rB6yNd","category_name":"Subscriptions","total":{"amount":"-17.99","currency":"USD"},"transaction_count":1,"emoji":"📺"},{"category_id":null,"category_name":null,"total":{"amount":"-42.18","currency":"USD"},"transaction_count":2,"emoji":null}]],"items":{"$ref":"#/components/schemas/SpendingCategoryBreakdownResponse"},"type":"array"}},"required":["total","transaction_count","category_breakdown"],"title":"SpendingSideResponse","type":"object"},"TimeSegment":{"description":"Calendar period to group by: `daily`, `monthly`, `quarterly` (quarters beginning in January, April, July and October) or `yearly`. Periods follow the calendar, not `start_date`, and a transaction falls in the period containing its `date`. A period only partly inside the range is still returned, but counts only transactions dated inside the range.","enum":["daily","monthly","quarterly","yearly"],"title":"TimeSegment","type":"string"},"SpendingByPeriodResponse":{"properties":{"periods":{"description":"One entry for every calendar period that overlaps the requested range, oldest first. Periods with no matching transactions are included with zero totals.","items":{"$ref":"#/components/schemas/SpendingPeriodResponse"},"type":"array"}},"required":["periods"],"title":"SpendingByPeriodResponse","type":"object"},"SpendingPeriodResponse":{"properties":{"period":{"description":"Calendar period these totals cover, formatted by `time_segment`: `2026-08-14` for `daily`, `2026-08` for `monthly`, `2026-Q3` for `quarterly`, `2026` for `yearly`.","examples":["2026-08"],"type":"string"},"income":{"$ref":"#/components/schemas/SpendingSideResponse","description":"Categories whose transactions in this period net to a positive amount, with their combined total and transaction count. A zero total and an empty breakdown when there are none.","examples":[{"total":{"amount":"5200.00","currency":"USD"},"transaction_count":2,"category_breakdown":[{"category_id":"Ct9bH2kM4wPz","category_name":"Salary","total":{"amount":"5200.00","currency":"USD"},"transaction_count":2,"emoji":"💼"}]}]},"expenses":{"$ref":"#/components/schemas/SpendingSideResponse","description":"Categories whose transactions in this period net to a negative amount, with their combined total and transaction count. Expense amounts are negative; a zero total and an empty breakdown when there are none.","examples":[{"total":{"amount":"-450.92","currency":"USD"},"transaction_count":12,"category_breakdown":[{"category_id":"Ct5nR8wY1jFu","category_name":"Groceries","total":{"amount":"-312.75","currency":"USD"},"transaction_count":5,"emoji":"🥬"},{"category_id":"Ct3xD6gQ8mVs","category_name":"Dining Out","total":{"amount":"-78.00","currency":"USD"},"transaction_count":4,"emoji":"🍣"},{"category_id":"Ct8fK2rB6yNd","category_name":"Subscriptions","total":{"amount":"-17.99","currency":"USD"},"transaction_count":1,"emoji":"📺"},{"category_id":null,"category_name":null,"total":{"amount":"-42.18","currency":"USD"},"transaction_count":2,"emoji":null}]}]},"net":{"$ref":"#/components/schemas/Money","description":"Income plus expenses in this period, in the household's currency: positive when more came in than went out.","examples":[{"amount":"4749.08","currency":"USD"}]}},"required":["period","income","expenses","net"],"title":"SpendingPeriodResponse","type":"object"},"CashflowByPeriodResponse":{"properties":{"periods":{"description":"One entry for every calendar period that overlaps the requested range, oldest first. Periods with no transactions are included with zero amounts.","items":{"$ref":"#/components/schemas/CashflowPeriodResponse"},"type":"array"}},"required":["periods"],"title":"CashflowByPeriodResponse","type":"object"},"CashflowPeriodResponse":{"properties":{"start_date":{"description":"First day of the calendar period. It is the start of the whole period even when the requested range begins partway through it.","examples":["2026-08-01"],"format":"date","type":"string"},"end_date":{"description":"Last day of the calendar period, inclusive. It is the end of the whole period even when the requested range stops earlier.","examples":["2026-08-31"],"format":"date","type":"string"},"income":{"$ref":"#/components/schemas/Money","description":"Sum of the period's transactions with a positive amount, in the household's currency; zero or positive. Each transaction counts by its own sign, so a refund adds to `income` instead of reducing `expenses`. Excludes transfer categories, hidden or deleted transactions, deleted accounts, and split parents (their children count instead). Pending transactions are included.","examples":[{"amount":"5200.00","currency":"USD"}]},"expenses":{"$ref":"#/components/schemas/Money","description":"Sum of the period's transactions with a negative amount, in the household's currency; zero or negative. Excludes transfer categories, hidden or deleted transactions, deleted accounts, and split parents (their children count instead). Pending transactions are included.","examples":[{"amount":"-450.92","currency":"USD"}]},"net":{"$ref":"#/components/schemas/Money","description":"`income` plus `expenses`. Negative when the household spent more than it received in the period.","examples":[{"amount":"4749.08","currency":"USD"}]},"is_complete":{"description":"Whether the period is over: `true` once today's date in the household's time zone is after `end_date`. The current period and future ones are `false`, and their totals are partial.","examples":[false],"type":"boolean"}},"required":["start_date","end_date","income","expenses","net","is_complete"],"title":"CashflowPeriodResponse","type":"object"},"MerchantBreakdownResponse":{"properties":{"merchants":{"description":"One entry per merchant, ordered by the absolute value of `amount`, largest first. Merchants whose transactions net to zero are left out.","examples":[[{"merchant_id":"Mr7cJ2wN5sXe","merchant_name":"Payroll","amount":{"amount":"5200.00","currency":"USD"},"transaction_count":2},{"merchant_id":"Mr9dL3xT6bQa","merchant_name":"Trader Joe's","amount":{"amount":"-312.75","currency":"USD"},"transaction_count":5},{"merchant_id":"Mr5tG8wB2nHk","merchant_name":"Chipotle","amount":{"amount":"-78.00","currency":"USD"},"transaction_count":4},{"merchant_id":null,"merchant_name":null,"amount":{"amount":"-42.18","currency":"USD"},"transaction_count":2},{"merchant_id":"Mr4hT7wK2cNe","merchant_name":"Netflix","amount":{"amount":"-17.99","currency":"USD"},"transaction_count":1}]],"items":{"$ref":"#/components/schemas/MerchantItemResponse"},"type":"array"},"income":{"$ref":"#/components/schemas/Money","description":"Sum of `amount` over the merchants whose transactions net to a positive amount.","examples":[{"amount":"5200.00","currency":"USD"}]},"expenses":{"$ref":"#/components/schemas/Money","description":"Sum of `amount` over the merchants whose transactions net to a negative amount, so it is negative or zero.","examples":[{"amount":"-450.92","currency":"USD"}]}},"required":["merchants","income","expenses"],"title":"MerchantBreakdownResponse","type":"object"},"MerchantItemResponse":{"properties":{"merchant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ID of the merchant. `null` on the entry that totals transactions with no merchant.","examples":["Mr9dL3xT6bQa"]},"merchant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Merchant's display name. `null` on the no-merchant entry.","examples":["Trader Joe's"]},"amount":{"$ref":"#/components/schemas/Money","description":"Net of the merchant's transactions over the range, in the household's currency: negative when the household spent more at the merchant than it received, positive when it received more. Excludes transfer categories, hidden or deleted transactions, deleted accounts, and split parents (their children count instead). Pending transactions are included.","examples":[{"amount":"-312.75","currency":"USD"}]},"transaction_count":{"description":"Number of transactions netted into `amount`.","examples":[5],"type":"integer"}},"required":["merchant_id","merchant_name","amount","transaction_count"],"title":"MerchantItemResponse","type":"object"},"CategoryItemResponse":{"properties":{"category_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ID of the category. `null` on the entry that totals transactions with no category.","examples":["Ct5nR8wY1jFu"]},"category_name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Category's display name. `null` on the no-category entry.","examples":["Groceries"]},"emoji":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Emoji shown with the category in the app. `null` on the no-category entry.","examples":["🥬"]},"amount":{"$ref":"#/components/schemas/Money","description":"Net of the category's transactions over the range, in the household's currency, as a positive magnitude on the expenses side as well as the income side. On the no-category entry it is the sum of the uncategorized transactions with this side's sign. Excludes transfer categories, hidden or deleted transactions, deleted accounts, and split parents (their children count instead). Pending transactions are included.","examples":[{"amount":"312.75","currency":"USD"}]},"percentage":{"description":"Share of the side's `total` that `amount` makes up, from `0` to `100`, rounded to two decimal places.","examples":["69.36"],"pattern":"(?:^-?(?:(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?|0E[+-][1-9][0-9]*|[1-9](?:\\.[0-9]+)?E\\+[1-9][0-9]*|[1-9](?:\\.[0-9]+)?E-[1-9][0-9]*)$)$","type":"string"}},"required":["category_id","category_name","emoji","amount","percentage"],"title":"CategoryItemResponse","type":"object"},"FullCategoryBreakdownResponse":{"properties":{"income":{"$ref":"#/components/schemas/GroupTypeBreakdownResponse","description":"Categories whose transactions net to a positive amount over the range, plus uncategorized transactions with a positive amount. A category is placed by the sign of its net, not by its category type.","examples":[{"group_type":"income","total":{"amount":"5200.00","currency":"USD"},"groups":[{"group_id":"Cg6tJ1nR8dKa","group_name":"Income","amount":{"amount":"5200.00","currency":"USD"},"percentage":"100.00","categories":[{"category_id":"Ct9bH2kM4wPz","category_name":"Salary","emoji":"💼","amount":{"amount":"5200.00","currency":"USD"},"percentage":"100.00"}]}],"ungrouped_categories":[]}]},"expenses":{"$ref":"#/components/schemas/GroupTypeBreakdownResponse","description":"Categories whose transactions net to a negative amount or to zero over the range, plus uncategorized transactions with a negative amount. Amounts are reported as positive magnitudes.","examples":[{"group_type":"expense","total":{"amount":"450.92","currency":"USD"},"groups":[{"group_id":"Cg2mV7pL4zXe","group_name":"Everyday Expenses","amount":{"amount":"390.75","currency":"USD"},"percentage":"86.66","categories":[{"category_id":"Ct5nR8wY1jFu","category_name":"Groceries","emoji":"🥬","amount":{"amount":"312.75","currency":"USD"},"percentage":"69.36"},{"category_id":"Ct3xD6gQ8mVs","category_name":"Dining Out","emoji":"🍣","amount":{"amount":"78.00","currency":"USD"},"percentage":"17.30"}]}],"ungrouped_categories":[{"category_id":"Ct8fK2rB6yNd","category_name":"Subscriptions","emoji":"📺","amount":{"amount":"17.99","currency":"USD"},"percentage":"3.99"},{"category_id":null,"category_name":null,"emoji":null,"amount":{"amount":"42.18","currency":"USD"},"percentage":"9.35"}]}]},"start_date":{"description":"The `start_date` the breakdown was requested for.","examples":["2026-08-01"],"format":"date","type":"string"},"end_date":{"description":"The `end_date` the breakdown was requested for.","examples":["2026-08-31"],"format":"date","type":"string"}},"required":["income","expenses","start_date","end_date"],"title":"FullCategoryBreakdownResponse","type":"object"},"GroupItemResponse":{"properties":{"group_id":{"description":"ID of the category group.","examples":["Cg2mV7pL4zXe"],"type":"string"},"group_name":{"description":"Category group's display name.","examples":["Everyday Expenses"],"type":"string"},"amount":{"$ref":"#/components/schemas/Money","description":"Sum of every `amount` in `categories`, as a positive magnitude in the household's currency.","examples":[{"amount":"390.75","currency":"USD"}]},"percentage":{"description":"Share of the side's `total` that the group makes up, from `0` to `100`, rounded to two decimal places.","examples":["86.66"],"pattern":"(?:^-?(?:(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?|0E[+-][1-9][0-9]*|[1-9](?:\\.[0-9]+)?E\\+[1-9][0-9]*|[1-9](?:\\.[0-9]+)?E-[1-9][0-9]*)$)$","type":"string"},"categories":{"description":"The group's categories that fall on this side, largest `amount` first. A category with no transactions in the range, or whose net has the other side's sign, is left out.","examples":[[{"category_id":"Ct5nR8wY1jFu","category_name":"Groceries","emoji":"🥬","amount":{"amount":"312.75","currency":"USD"},"percentage":"69.36"},{"category_id":"Ct3xD6gQ8mVs","category_name":"Dining Out","emoji":"🍣","amount":{"amount":"78.00","currency":"USD"},"percentage":"17.30"}]],"items":{"$ref":"#/components/schemas/CategoryItemResponse"},"type":"array"}},"required":["group_id","group_name","amount","percentage","categories"],"title":"GroupItemResponse","type":"object"},"GroupTypeBreakdownResponse":{"properties":{"group_type":{"$ref":"#/components/schemas/CategoryType","description":"Side this breakdown covers: `income` or `expense`. `transfer` never appears, because transfers are excluded.","examples":["expense"]},"total":{"$ref":"#/components/schemas/Money","description":"Sum of every group in `groups` and every entry in `ungrouped_categories`, in the household's currency. Always a positive magnitude: expenses are positive here, unlike the other analytics endpoints.","examples":[{"amount":"450.92","currency":"USD"}]},"groups":{"description":"Category groups of this side's type that have at least one category on this side, largest `amount` first.","items":{"$ref":"#/components/schemas/GroupItemResponse"},"type":"array"},"ungrouped_categories":{"description":"Amounts on this side that are outside `groups`: categories with no group, or in a group of another type, largest first. A final entry with `category_id` `null` totals transactions that have no category, when there are any.","examples":[[{"category_id":"Ct8fK2rB6yNd","category_name":"Subscriptions","emoji":"📺","amount":{"amount":"17.99","currency":"USD"},"percentage":"3.99"},{"category_id":null,"category_name":null,"emoji":null,"amount":{"amount":"42.18","currency":"USD"},"percentage":"9.35"}]],"items":{"$ref":"#/components/schemas/CategoryItemResponse"},"type":"array"}},"required":["group_type","total","groups","ungrouped_categories"],"title":"GroupTypeBreakdownResponse","type":"object"},"CategoryGroupNotFound":{"properties":{"code":{"const":"category_group_not_found","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Category group not found"]}},"required":["code","message"],"title":"CategoryGroupNotFound","type":"object"},"CategoryDuplicateEmoji":{"properties":{"code":{"const":"duplicate_emoji","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Category with this emoji already exists"]}},"required":["code","message"],"title":"CategoryDuplicateEmoji","type":"object"},"CreateCategoryRequest":{"properties":{"name":{"description":"Display name. Must be unique among the household's active categories, ignoring case.","examples":["Garden supplies"],"maxLength":255,"minLength":1,"type":"string"},"emoji":{"description":"Emoji shown next to the name. Must be unique among the household's active categories.","examples":["🪴"],"maxLength":50,"minLength":1,"type":"string"},"category_type":{"$ref":"#/components/schemas/CategoryType","description":"Kind of money movement the category is for. Transactions in a `transfer` category are left out of income and spending reports. Ignored when `group_id` is set, because a grouped category always takes its group's `group_type`.","examples":["expense"]},"group_id":{"anyOf":[{"examples":["Cg2mV7pL4zXe"],"type":"string"},{"type":"null"}],"description":"Group the category belongs to. Send `null` for an ungrouped category, which on an update removes the category from its current group. Omitting it means no group on create and keeps the current group on an update."}},"required":["name","emoji","category_type"],"title":"CreateCategoryRequest","type":"object"},"CategoriesListResponse":{"properties":{"categories":{"description":"The household's active categories, grouped and ungrouped, in no guaranteed order. Deleted categories are left out.","items":{"$ref":"#/components/schemas/CategoryResponse"},"type":"array"},"groups":{"description":"Every category group in the household, including groups with no categories, in no guaranteed order. Match a category's `group_id` to a group's `id`.","items":{"$ref":"#/components/schemas/CategoryGroupResponse"},"type":"array"}},"required":["categories","groups"],"title":"CategoriesListResponse","type":"object"},"CategoryGroupResponse":{"properties":{"id":{"description":"Unique identifier of the group. A category's `group_id` refers to its group by this ID.","examples":["Cg2mV7pL4zXe"],"type":"string"},"name":{"description":"Display name, unique among the household's category groups.","examples":["Everyday Expenses"],"type":"string"},"group_type":{"$ref":"#/components/schemas/CategoryType","description":"Type shared by every category in the group: `income`, `expense`, or `transfer`. Fixed when the group is created.","examples":["expense"]}},"required":["id","name","group_type"],"title":"CategoryGroupResponse","type":"object"},"UpdateCategoryRequest":{"properties":{"name":{"description":"Display name. Must be unique among the household's active categories, ignoring case.","examples":["Garden supplies"],"maxLength":255,"minLength":1,"type":"string"},"emoji":{"description":"Emoji shown next to the name. Must be unique among the household's active categories.","examples":["🪴"],"maxLength":50,"minLength":1,"type":"string"},"category_type":{"allOf":[{"$ref":"#/components/schemas/CategoryType"}],"description":"Kind of money movement the category is for. Transactions in a `transfer` category are left out of income and spending reports. Ignored when `group_id` is set, because a grouped category always takes its group's `group_type`.","examples":["expense"]},"group_id":{"anyOf":[{"examples":["Cg2mV7pL4zXe"],"type":"string"},{"type":"null"}],"description":"Group the category belongs to. Send `null` for an ungrouped category, which on an update removes the category from its current group. Omitting it means no group on create and keeps the current group on an update."}},"title":"UpdateCategoryRequest","type":"object"},"CreateCategoryGroupRequest":{"properties":{"name":{"description":"Display name. Must be unique among the household's category groups, ignoring case.","examples":["Everyday Expenses"],"maxLength":255,"minLength":1,"type":"string"},"group_type":{"$ref":"#/components/schemas/CategoryType","description":"Type given to every category placed in the group: `income`, `expense`, or `transfer`. It cannot be changed after the group is created.","examples":["expense"]}},"required":["name","group_type"],"title":"CreateCategoryGroupRequest","type":"object"},"UpdateCategoryGroupRequest":{"properties":{"name":{"description":"New display name. Must be unique among the household's category groups, ignoring case.","examples":["Everyday Expenses"],"maxLength":255,"minLength":1,"type":"string"}},"title":"UpdateCategoryGroupRequest","type":"object"},"PaginatedTransactionsResponse":{"properties":{"transactions":{"description":"Matching transactions, at most `limit` of them, newest `date` first. Within a date, transactions the bank gave a time for come first, latest first, followed by the rest with the most recently added first.","items":{"$ref":"#/components/schemas/TransactionResponse"},"type":"array"},"daily_sums":{"description":"One net total for each date in `transactions`, newest first. Each total covers every matching transaction on that date, including those on other pages. Dates whose transactions are all in transfer categories have no entry.","items":{"$ref":"#/components/schemas/DailySumResponse"},"type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as `cursor` to fetch the next page. Null when `has_more` is false.","examples":["eyJkYXRlIjogIjIwMjYtMDgtMTQiLCAidGEiOiAiMjAyNi0wOC0xNFQxNTozODowMCswMDowMCIsICJjYSI6ICIyMDI2LTA4LTE0VDE1OjQxOjI3KzAwOjAwIiwgImlkIjogIlR4M2ZKOW1TNnZCYSIsICJmaCI6ICJkZmYyODU3NWJmMjU4NDdkIn0="]},"has_more":{"description":"Whether more results follow this page.","type":"boolean"}},"required":["transactions","daily_sums","next_cursor","has_more"],"title":"PaginatedTransactionsResponse","type":"object"},"AccountNotManual":{"properties":{"code":{"const":"account_not_manual","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Transactions can only be created for manually-added accounts."]}},"required":["code","message"],"title":"AccountNotManual","type":"object"},"CreateTransactionRequest":{"properties":{"account_id":{"description":"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.","examples":["Ac7kP2mN9qRs"],"type":"string"},"name":{"description":"What the transaction was for. It is stored as the transaction's `original_name`, with surrounding whitespace removed, and must not be blank.","examples":["Trader Joe's"],"maxLength":255,"minLength":1,"type":"string"},"amount":{"description":"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.","examples":["-54.20"],"pattern":"(?:^[+-]?(?: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]+)$)$","type":"string"},"date":{"description":"Calendar date the transaction took place, with no time or time zone.","examples":["2026-08-14"],"format":"date","type":"string"},"category_id":{"anyOf":[{"examples":["Ct5nR8wY1jFu"],"type":"string"},{"type":"null"}],"description":"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":{"anyOf":[{"examples":["Mr9dL3xT6bQa"],"type":"string"},{"type":"null"}],"description":"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":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free-text note. Omitted or `null` creates the transaction without one.","examples":["Groceries and paper towels"]},"tag_ids":{"default":[],"description":"IDs of tags to attach, each an active tag in the household. The household's rules may add further tags.","items":{"examples":["Tg8qN1cK5rWd"],"type":"string"},"type":"array"}},"required":["account_id","name","amount","date"],"title":"CreateTransactionRequest","type":"object"},"BulkTransactionSkipCode":{"enum":["transaction_not_found","account_deleted","transaction_deleted","split_parent_not_editable"],"title":"BulkTransactionSkipCode","type":"string"},"BulkTransactionsResponse":{"properties":{"transactions":{"description":"Successfully processed transactions after the operation, including those already in the requested state. Listing changes also include affected split children, even when their IDs were not requested. Repeated IDs are returned once.","items":{"$ref":"#/components/schemas/TransactionResponse"},"type":"array"},"skipped":{"description":"Requested IDs that could not be processed, with one reason each, in request order. Repeated IDs appear once. Empty when every requested ID succeeded. If every ID is skipped, the response is still 200 with an empty transactions list.","examples":[[]],"items":{"$ref":"#/components/schemas/SkippedTransaction"},"type":"array"}},"required":["transactions","skipped"],"title":"BulkTransactionsResponse","type":"object"},"SkippedTransaction":{"properties":{"id":{"description":"Requested transaction ID that was not processed.","examples":["Tx8nQ2cL5pVr"],"type":"string"},"code":{"$ref":"#/components/schemas/BulkTransactionSkipCode","description":"Why this ID was skipped. `transaction_not_found` covers both missing IDs and IDs outside the household. `account_deleted` means its account is deleted. `transaction_deleted` means the transaction or its split parent is deleted. `split_parent_not_editable` means its split children must be edited instead. When several reasons apply, account deletion takes precedence over transaction deletion, which takes precedence over being a split parent."}},"required":["id","code"],"title":"SkippedTransaction","type":"object"},"BulkTransactionsRequest":{"properties":{"transaction_ids":{"description":"IDs of the transactions to change. IDs not found in the household, or on a deleted account, are skipped.","items":{"examples":["Tx3fJ9mS6vBa"],"type":"string"},"maxItems":1000,"minItems":1,"type":"array"}},"required":["transaction_ids"],"title":"BulkTransactionsRequest","type":"object"},"BulkTagsRequest":{"properties":{"transaction_ids":{"description":"IDs of the transactions whose tags should change. IDs that are not found, deleted or split parents are skipped.","items":{"examples":["Tx3fJ9mS6vBa"],"type":"string"},"maxItems":1000,"minItems":1,"type":"array"},"tag_ids":{"description":"IDs of the tags to add or remove from every matched transaction, depending on the endpoint. Other tags are preserved. Each must be an active tag in the household, or the request fails with `tag_not_found` before anything is changed. Repeated IDs are handled once.","items":{"examples":["Tg8qN1cK5rWd"],"type":"string"},"maxItems":1000,"minItems":1,"type":"array"}},"required":["transaction_ids","tag_ids"],"title":"BulkTagsRequest","type":"object"},"BulkReviewRequest":{"properties":{"transaction_ids":{"description":"IDs of the transactions to update. IDs that are not found, deleted or split parents are skipped.","items":{"examples":["Tx3fJ9mS6vBa"],"type":"string"},"maxItems":1000,"minItems":1,"type":"array"},"needs_review":{"description":"Whether the transactions should be flagged for review. `true` puts them in the review queue; `false` marks them as reviewed.","examples":[false],"type":"boolean"}},"required":["transaction_ids","needs_review"],"title":"BulkReviewRequest","type":"object"},"BulkSetCategoryRequest":{"properties":{"transaction_ids":{"description":"IDs of the transactions to recategorize. IDs that are not found, deleted or split parents are skipped.","items":{"examples":["Tx3fJ9mS6vBa"],"type":"string"},"maxItems":1000,"minItems":1,"type":"array"},"category_id":{"anyOf":[{"examples":["Ct5nR8wY1jFu"],"type":"string"},{"type":"null"}],"description":"Category to assign to every matched transaction. Omit it or send `null` to clear their category and leave them uncategorized."}},"required":["transaction_ids"],"title":"BulkSetCategoryRequest","type":"object"},"DuplicateGroupResponse":{"properties":{"transactions":{"description":"Two or more visible transactions that Penny linked as possible duplicates of one another, either directly or through another member of the group. Sorted by `date`, oldest first.","items":{"$ref":"#/components/schemas/TransactionResponse"},"type":"array"}},"required":["transactions"],"title":"DuplicateGroupResponse","type":"object"},"DuplicateGroupsResponse":{"properties":{"groups":{"description":"Groups of possible duplicates, ordered by the date of the oldest transaction in each group, most recent first. Empty when nothing is flagged.","items":{"$ref":"#/components/schemas/DuplicateGroupResponse"},"type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as `cursor` to fetch the next page. Null when `has_more` is false.","examples":["eyJkYXRlIjoiMjAyNi0wOC0xMyIsImlkIjoiVHg4YVEya0w1blJlIn0"]},"has_more":{"description":"Whether more results follow this page.","type":"boolean"}},"required":["groups","next_cursor","has_more"],"title":"DuplicateGroupsResponse","type":"object"},"TransactionNotFound":{"properties":{"code":{"const":"transaction_not_found","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Transaction not found"]}},"required":["code","message"],"title":"TransactionNotFound","type":"object"},"UpdateTransactionRequest":{"properties":{"custom_name":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}],"description":"Custom name to display instead of the bank description; stored as the transaction's `custom_name`. Send `null` to remove the custom name, so that `name` falls back to `original_name`.","examples":["Weekly groceries"]},"category_id":{"anyOf":[{"examples":["Ct5nR8wY1jFu"],"type":"string"},{"type":"null"}],"description":"Category to file the transaction under. Send `null` to leave the transaction uncategorized. Once the category is changed here, including to `null`, the household's rules no longer overwrite it."},"merchant_id":{"anyOf":[{"examples":["Mr9dL3xT6bQa"],"type":"string"},{"type":"null"}],"description":"Merchant to assign. Send `null` to remove the merchant. Once the merchant is changed here, including to `null`, rules and bank syncs no longer overwrite it."},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free-text note. Send `null` to remove the existing note.","examples":["Groceries and paper towels"]},"date":{"description":"Calendar date of the transaction. Once changed here, bank syncs no longer overwrite it.","examples":["2026-08-14"],"format":"date","type":"string"},"tag_ids":{"description":"IDs of every tag the transaction should have. This replaces the existing set, so send `[]` to remove all tags. Each ID must be an active tag in the household and appear only once.","items":{"examples":["Tg8qN1cK5rWd"],"type":"string"},"type":"array"}},"title":"UpdateTransactionRequest","type":"object"},"AffectedTransactionsResponse":{"properties":{"transactions":{"description":"The affected transactions after the operation, including split children.","items":{"$ref":"#/components/schemas/TransactionResponse"},"type":"array"}},"required":["transactions"],"title":"AffectedTransactionsResponse","type":"object"},"DismissDuplicatesRequest":{"properties":{"transaction_ids":{"description":"IDs of the transactions to mark as not duplicates. Their possible-duplicate flags are cleared, along with every other transaction's flag pointing at them. An ID that is not in the household, or is on a deleted account, fails the whole request with `transaction_not_found`.","items":{"examples":["Tx3fJ9mS6vBa"],"type":"string"},"maxItems":1000,"type":"array"}},"required":["transaction_ids"],"title":"DismissDuplicatesRequest","type":"object"},"ChangeSource":{"enum":["user","plaid","financekit","rules","system"],"title":"ChangeSource","type":"string"},"FieldChange":{"properties":{"field":{"description":"What changed: a transaction field (`original_name`, `custom_name`, `amount`, `currency`, `date`, `merchant`, `category`, `notes`, `pending`, `needs_review`, `deleted_at`, `hidden_at`, `split_at` or `transacted_at`) or an event (`tag_added`, `tag_removed`, `receipt_added` or `receipt_removed`). `original_name` is the bank description, and `transacted_at` is the exact time the bank reported. `deleted_at`, `hidden_at` and `split_at` hold a timestamp while the transaction is deleted, hidden or split, and are `null` otherwise.","examples":["category"],"type":"string"},"before":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value before the change, as a string; `null` when there was none. For `merchant`, `category` and `tag_removed` it is the name the record had when the change was made (a category's name is preceded by its emoji), or `null` if that name is no longer known. Booleans appear as `True` or `False`, and an `amount` is in the currency given by `before_currency`.","examples":["🍣 Dining Out"]},"after":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value after the change, in the same format as `before`. `null` when the value was cleared or removed.","examples":["🥬 Groceries"]},"before_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ID of the merchant, category, tag or receipt image that `before` names. `null` for every other kind of change and when there was no previous value.","examples":["Ct3dM7qA9sXe"]},"after_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ID of the merchant, category, tag or receipt image that `after` names. `null` for every other kind of change and when the value was cleared or removed.","examples":["Ct5nR8wY1jFu"]},"before_currency":{"anyOf":[{"$ref":"#/components/schemas/Currency","examples":["USD"]},{"type":"null"}],"description":"Currency of the amount in `before`. Set only when `field` is `amount`; `null` for every other change.","examples":[null]},"after_currency":{"anyOf":[{"$ref":"#/components/schemas/Currency","examples":["USD"]},{"type":"null"}],"description":"Currency of the amount in `after`. Set only when `field` is `amount`; `null` for every other change.","examples":[null]}},"required":["field","before","after","before_id","after_id","before_currency","after_currency"],"title":"FieldChange","type":"object"},"HistoryType":{"enum":["created","updated","deleted"],"title":"HistoryType","type":"string"},"TransactionHistoryEntryResponse":{"properties":{"history_id":{"description":"Identifier of the entry, unique within this transaction's history. It is a number for changes to the transaction itself and is prefixed with `receipt:` for a receipt image being added or removed.","examples":["48213"],"type":"string"},"history_date":{"description":"When the change was recorded, in UTC.","examples":["2026-08-14T16:02:11Z"],"format":"date-time","type":"string"},"history_type":{"$ref":"#/components/schemas/HistoryType","description":"`created` for the entry that records the transaction being created, and `updated` for every later change, including receipt images being added or removed. Soft-deleting a transaction is recorded as an `updated` entry with a `deleted_at` change rather than as `deleted`.","examples":["updated"]},"change_source":{"anyOf":[{"$ref":"#/components/schemas/ChangeSource"},{"type":"null"}],"description":"What made this particular change: `user` (a household member), `rules` (one of the household's rules), `plaid` (a bank sync through Plaid), `financekit` (an Apple account sync through FinanceKit) or `system` (Penny itself). `null` for entries recorded without attribution.","examples":["user"]},"change_source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Identifier of whatever `change_source` names: a user ID for `user`, a rule ID for `rules`, and a sync run identifier for `plaid` and `financekit`. `null` for `system`, when no identifier was recorded, and after the user's account was deleted.","examples":["Us2mH7qB5kLp"]},"action_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"UUID shared by every entry that came from the same operation, such as a member's edit and the rule changes it triggered, or everything one sync changed. Group entries by it to show them as one event. `null` for entries recorded without an action.","examples":["8e394bc8-d5cc-4c48-a2fd-58c37c9838f6"]},"initiated_by":{"anyOf":[{"$ref":"#/components/schemas/TransactionHistoryUserResponse"},{"type":"null"}],"description":"Household member whose action led to this change, even when something else carried it out. When a member's edit triggers a rule, the rule's entry has `change_source` `rules` and `user` `null`, while `initiated_by` is that member. `null` when a sync or Penny started the operation, or the member is unknown or has been deleted."},"user":{"anyOf":[{"$ref":"#/components/schemas/TransactionHistoryUserResponse"},{"type":"null"}],"description":"Household member who made this change directly. Set only when `change_source` is `user`; `null` otherwise, and when that member's account has been deleted."},"rule":{"anyOf":[{"$ref":"#/components/schemas/TransactionHistoryRuleResponse"},{"type":"null"}],"description":"Rule that made this change. Set only when `change_source` is `rules`; `null` otherwise.","examples":[null]},"changes":{"description":"What this entry changed, one item per field or event. Empty for the `created` entry.","items":{"$ref":"#/components/schemas/FieldChange"},"type":"array"}},"required":["history_id","history_date","history_type","change_source","change_source_id","action_id","initiated_by","user","rule","changes"],"title":"TransactionHistoryEntryResponse","type":"object"},"TransactionHistoryResponse":{"properties":{"entries":{"description":"Recorded changes to the transaction, newest first: field edits, tags added or removed, and receipt images added or removed.","items":{"$ref":"#/components/schemas/TransactionHistoryEntryResponse"},"type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as `cursor` to fetch the next page. Null when `has_more` is false.","examples":["eyJ0cmFuc2FjdGlvbl9pZCI6ICJUeDNmSjltUzZ2QmEiLCAiYXQiOiAiMjAyNi0wOC0xNFQxNjowMjoxMSswMDowMCIsICJpZCI6ICI0ODIxMyJ9"]},"has_more":{"description":"Whether more results follow this page.","type":"boolean"}},"required":["entries","next_cursor","has_more"],"title":"TransactionHistoryResponse","type":"object"},"TransactionHistoryRuleResponse":{"properties":{"id":{"description":"ID of the rule. The rule may have been deleted since it made the change.","examples":["Rl9cF3nV7sQa"],"type":"string"}},"required":["id"],"title":"TransactionHistoryRuleResponse","type":"object"},"TransactionHistoryUserResponse":{"properties":{"id":{"description":"ID of the user who made or initiated the change.","examples":["Us2mH7qB5kLp"],"type":"string"},"name":{"description":"The member's current display name, which may differ from the one they had when the change was made.","examples":["Alex Rivera"],"type":"string"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"URL of the member's profile image. `null` when they have not uploaded one.","examples":["https://cdn.penny.finance/users/Us2mH7qB5kLp.png"]}},"required":["id","name","image_url"],"title":"TransactionHistoryUserResponse","type":"object"},"ListSplitsResponse":{"properties":{"parent":{"$ref":"#/components/schemas/TransactionResponse","description":"The original transaction that was split, whether the parent's ID or one of its parts' IDs was requested."},"children":{"description":"The parts the parent was split into, sorted by `id`. Their `native_amount` values add up to the parent's.","items":{"$ref":"#/components/schemas/TransactionResponse"},"type":"array"}},"required":["parent","children"],"title":"ListSplitsResponse","type":"object"},"TransactionNotSplit":{"properties":{"code":{"const":"transaction_not_split","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Transaction is not currently split."]}},"required":["code","message"],"title":"TransactionNotSplit","type":"object"},"SplitTransactionResponse":{"properties":{"parent":{"$ref":"#/components/schemas/TransactionResponse","description":"The original transaction that was split, whether the parent's ID or one of its parts' IDs was requested."},"children":{"description":"The parts the parent was split into, in the order of `splits` in the request. Their `native_amount` values add up to the parent's.","items":{"$ref":"#/components/schemas/TransactionResponse"},"type":"array"},"removed_transaction_ids":{"description":"Children of an earlier split of this transaction, deleted and replaced.","items":{"examples":["Tx3fJ9mS6vBa"],"type":"string"},"type":"array"}},"required":["parent","children","removed_transaction_ids"],"title":"SplitTransactionResponse","type":"object"},"SplitChildCannotSplit":{"properties":{"code":{"const":"child_cannot_split","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Cannot split a transaction that is already a child of another split."]}},"required":["code","message"],"title":"SplitChildCannotSplit","type":"object"},"SplitTransactionDeleted":{"properties":{"code":{"const":"transaction_deleted","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Cannot split a deleted transaction."]}},"required":["code","message"],"title":"SplitTransactionDeleted","type":"object"},"SplitTransactionPending":{"properties":{"code":{"const":"transaction_pending","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Cannot split a pending transaction."]}},"required":["code","message"],"title":"SplitTransactionPending","type":"object"},"SplitSignMismatch":{"properties":{"code":{"const":"split_sign_mismatch","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Each split's sign must match the original transaction."]}},"required":["code","message"],"title":"SplitSignMismatch","type":"object"},"SplitSumMismatch":{"properties":{"code":{"const":"sum_does_not_match_total","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["The sum of the split amounts must equal the original transaction amount."]}},"required":["code","message"],"title":"SplitSumMismatch","type":"object"},"SplitTooFew":{"properties":{"code":{"const":"too_few_splits","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["A split must contain at least two parts."]}},"required":["code","message"],"title":"SplitTooFew","type":"object"},"SplitZeroAmount":{"properties":{"code":{"const":"zero_amount_split","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Split amounts must not be zero."]}},"required":["code","message"],"title":"SplitZeroAmount","type":"object"},"SplitItemRequest":{"properties":{"amount":{"description":"Amount of this part, in the currency of the parent's `native_amount`. It must be non-zero and have the parent's sign, and the parts must add up to the parent's `native_amount` exactly. 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.","examples":["-41.70"],"pattern":"(?:^[+-]?(?: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]+)$)$","type":"string"},"category_id":{"anyOf":[{"examples":["Ct5nR8wY1jFu"],"type":"string"},{"type":"null"}],"description":"Category for this part. When omitted or `null` the part is uncategorized; it does not inherit the parent's category."},"merchant_id":{"anyOf":[{"examples":["Mr9dL3xT6bQa"],"type":"string"},{"type":"null"}],"description":"Merchant for this part. When omitted or `null` the part has no merchant; it does not inherit the parent's merchant."},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free-text note for this part. The parent's note is not copied to its parts.","examples":["Produce and pantry staples"]},"tag_ids":{"default":[],"description":"IDs of tags to attach to this part, each an active tag in the household. The parent's tags are not copied to its parts.","items":{"examples":["Tg8qN1cK5rWd"],"type":"string"},"type":"array"},"date":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"Date of this part. When omitted or `null` it takes the parent's `date`.","examples":["2026-08-14"]},"custom_name":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}],"description":"Custom name for this part. When omitted or `null` the part is shown under the parent's `original_name`.","examples":["Groceries"]}},"required":["amount"],"title":"SplitItemRequest","type":"object"},"SplitTransactionRequest":{"properties":{"splits":{"description":"The complete set of parts to split the transaction into, at least two. If the transaction is already split, these replace its existing parts, which are permanently deleted.","examples":[[{"amount":"-41.70","category_id":"Ct5nR8wY1jFu","merchant_id":"Mr9dL3xT6bQa","notes":"Produce and pantry staples","tag_ids":["Tg8qN1cK5rWd"],"date":"2026-08-14","custom_name":"Groceries"},{"amount":"-12.50","category_id":"Ct3dM7qA9sXe","merchant_id":"Mr9dL3xT6bQa","custom_name":"Paper goods"}]],"items":{"$ref":"#/components/schemas/SplitItemRequest"},"maxItems":52,"type":"array"}},"required":["splits"],"title":"SplitTransactionRequest","type":"object"},"UnsplitTransactionResponse":{"properties":{"parent":{"$ref":"#/components/schemas/TransactionResponse","description":"The transaction as it is after unsplitting, listed again in its own right."},"removed_transaction_ids":{"description":"The split's children, which unsplitting deletes.","items":{"examples":["Tx3fJ9mS6vBa"],"type":"string"},"type":"array"}},"required":["parent","removed_transaction_ids"],"title":"UnsplitTransactionResponse","type":"object"},"UnsplitChildCannotUnsplit":{"properties":{"code":{"const":"child_cannot_unsplit","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Cannot unsplit a child of a split; pass the parent transaction id."]}},"required":["code","message"],"title":"UnsplitChildCannotUnsplit","type":"object"},"TransactionImageListResponse":{"properties":{"images":{"description":"The transaction's images. Listing returns every attached image, oldest upload first; uploading returns only the images just created, in the order the files were sent.","items":{"$ref":"#/components/schemas/TransactionImageResponse"},"type":"array"}},"required":["images"],"title":"TransactionImageListResponse","type":"object"},"TransactionImageResponse":{"properties":{"id":{"description":"ID of the attached image. Use it to delete the image from the transaction.","examples":["Im4nD8qR2sVk"],"type":"string"},"image_url":{"description":"Signed URL for downloading the image. It stops working 15 minutes after the response is generated; list the transaction's images again to get a fresh one.","examples":["https://cdn.penny.finance/transactions/Tx3fJ9mS6vBa/receipt.png"],"type":"string"},"created_at":{"description":"When the image was uploaded, in UTC.","examples":["2026-08-14T16:02:11Z"],"format":"date-time","type":"string"}},"required":["id","image_url","created_at"],"title":"TransactionImageResponse","type":"object"},"ImageNotFound":{"properties":{"code":{"const":"image_not_found","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Image not found."]}},"required":["code","message"],"title":"ImageNotFound","type":"object"},"BulkDeleteTransactionImagesRequest":{"properties":{"image_ids":{"description":"IDs of the images to delete permanently. IDs that are not attached to this transaction are skipped.","items":{"examples":["Im4nD8qR2sVk"],"type":"string"},"maxItems":1000,"minItems":1,"type":"array"}},"required":["image_ids"],"title":"BulkDeleteTransactionImagesRequest","type":"object"},"RecurringFrequency":{"enum":["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"],"title":"RecurringFrequency","type":"string"},"RecurringTransactionResponse":{"properties":{"id":{"description":"Unique identifier of the series. Use it to fetch, update or delete the series and to list its occurrences.","examples":["Rt6wP4dM8xNc"],"type":"string"},"merchant":{"$ref":"#/components/schemas/MerchantSummaryResponse","description":"Merchant the series is tied to. Only transactions at this merchant can be matched to its occurrences.","examples":[{"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"}]},"name":{"description":"Display name of the series.","examples":["Netflix"],"type":"string"},"amount":{"$ref":"#/components/schemas/Money","description":"Expected amount of each occurrence, in the currency the series was saved with rather than the household's currency. Negative for expenses and positive for income.","examples":[{"amount":"-17.99","currency":"USD"}]},"direction":{"$ref":"#/components/schemas/TransactionDirection","description":"Direction of the money: `expense` for a bill or subscription, `income` for a paycheck or other deposit.","examples":["expense"]},"frequency":{"$ref":"#/components/schemas/RecurringFrequency","description":"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.","examples":["every_month"]},"start_date":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"Date of the first expected occurrence and the anchor the schedule is counted from; no occurrences are expected before it. `null` for the twice-monthly frequencies, which are expected in every month.","examples":["2026-03-09"]},"status":{"$ref":"#/components/schemas/RecurringTransactionStatus","description":"`active` while the series is expected to keep recurring, `cancelled` once it has been ended. A cancelled series keeps its occurrences up to `end_date`.","examples":["active"]},"end_date":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"Date the series was cancelled, in the household's time zone. Occurrences are expected up to and including this date and none after it. `null` while the series is active.","examples":[null]},"notes":{"description":"Free-form note about the series. An empty string when there is none.","examples":["Standard monthly plan"],"type":"string"}},"required":["id","merchant","name","amount","direction","frequency","start_date","status","end_date","notes"],"title":"RecurringTransactionResponse","type":"object"},"RecurringTransactionStatus":{"enum":["active","cancelled"],"title":"RecurringTransactionStatus","type":"string"},"InvalidFrequencyFields":{"properties":{"code":{"const":"invalid_frequency_fields","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Invalid frequency fields: twice-monthly frequencies must omit start_date; all other frequencies require start_date"]}},"required":["code","message"],"title":"InvalidFrequencyFields","type":"object"},"CreateRecurringTransactionRequest":{"properties":{"merchant_id":{"description":"ID of the merchant the series is tied to. Only transactions at this merchant can be matched to the series' occurrences.","examples":["Mr4hT7wK2cNe"],"type":"string"},"name":{"description":"Display name of the series, such as the subscription or bill it tracks. It does not have to match the merchant's name.","examples":["Netflix"],"type":"string"},"amount":{"description":"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.","examples":["-17.99"],"pattern":"(?:^[+-]?(?: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]+)$)$","type":"string"},"currency":{"anyOf":[{"$ref":"#/components/schemas/Currency","examples":["USD"]},{"type":"null"}],"description":"Currency of `amount`, which may be a crypto code for a series detected in a crypto account. Defaults to the household's currency when omitted or `null`."},"frequency":{"$ref":"#/components/schemas/RecurringFrequency","description":"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.","examples":["every_month"]},"start_date":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"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`.","examples":["2026-03-09"]},"notes":{"default":"","description":"Free-form note about the series. Defaults to an empty string.","examples":["Standard monthly plan"],"type":"string"}},"required":["merchant_id","name","amount","frequency"],"title":"CreateRecurringTransactionRequest","type":"object"},"RecurringTransactionListResponse":{"properties":{"recurring_transactions":{"description":"Every series that matches the filters, sorted by `name`. The list is not paginated.","items":{"$ref":"#/components/schemas/RecurringTransactionResponse"},"type":"array"}},"required":["recurring_transactions"],"title":"RecurringTransactionListResponse","type":"object"},"RecurringTransactionPreviewResponse":{"properties":{"since":{"description":"First day the preview covers: the series' `start_date`, or a year before today in the household's time zone when that is later or there is no start date.","examples":["2026-03-09"],"format":"date","type":"string"},"matching_transactions":{"description":"Transactions the series would match from `since` on, newest first. Matching follows the same rules as `transaction_id` on an occurrence, competing with the household's saved series: a transaction satisfies only one occurrence, and one that fits a saved series equally well stays with it.","items":{"$ref":"#/components/schemas/TransactionResponse"},"type":"array"},"missed_count":{"description":"How many dates from `since` to yesterday the series would expect a transaction on and find none.","examples":[0],"type":"integer"},"claimed_count":{"description":"How many of the merchant's transactions in the past year at about this amount already belong to the household's saved series. The series can't match them, whatever its start date.","examples":[0],"type":"integer"},"suggested_start":{"anyOf":[{"$ref":"#/components/schemas/RecurringTransactionStartSuggestion"},{"type":"null"}],"description":"A start date that matches more transactions than the requested one, found among the merchant's transactions in the past year at about this amount. `null` when no start would match more, and always for twice-monthly frequencies, which take no start date."}},"required":["since","matching_transactions","missed_count","claimed_count","suggested_start"],"title":"RecurringTransactionPreviewResponse","type":"object"},"RecurringTransactionStartSuggestion":{"properties":{"start_date":{"description":"The date of one of the merchant's transactions in the past year: starting the series on it matches more transactions than the requested `start_date` does.","examples":["2025-12-29"],"format":"date","type":"string"},"matching_transactions":{"description":"Transactions the series would match starting on `start_date`, newest first, matched as in `matching_transactions` of the preview.","items":{"$ref":"#/components/schemas/TransactionResponse"},"type":"array"},"missed_count":{"description":"How many dates from `start_date` to yesterday the series would expect a transaction on and find none.","examples":[0],"type":"integer"}},"required":["start_date","matching_transactions","missed_count"],"title":"RecurringTransactionStartSuggestion","type":"object"},"PreviewRecurringTransactionRequest":{"properties":{"merchant_id":{"description":"ID of the merchant the series is tied to. Only transactions at this merchant can be matched to the series' occurrences.","examples":["Mr4hT7wK2cNe"],"type":"string"},"amount":{"description":"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.","examples":["-17.99"],"pattern":"(?:^[+-]?(?: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]+)$)$","type":"string"},"currency":{"anyOf":[{"$ref":"#/components/schemas/Currency","examples":["USD"]},{"type":"null"}],"description":"Currency of `amount`. Defaults to the household's currency when omitted or `null`."},"frequency":{"$ref":"#/components/schemas/RecurringFrequency","description":"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.","examples":["every_month"]},"start_date":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"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`.","examples":["2026-03-09"]}},"required":["merchant_id","amount","frequency"],"title":"PreviewRecurringTransactionRequest","type":"object"},"RecurringTransactionSummaryResponse":{"properties":{"total_recurring_expense":{"$ref":"#/components/schemas/Money","description":"Expected total of the month's expense occurrences: the magnitude of each series' `amount` times the number of occurrences it has in the month, as a positive magnitude in the household's currency. Paid, missed and upcoming occurrences all count. Series in other currencies are converted at the rate for each occurrence's expected date.","examples":[{"amount":"17.99","currency":"USD"}]},"total_recurring_income":{"$ref":"#/components/schemas/Money","description":"Expected total of the month's income occurrences: each income series' `amount` times the number of occurrences it has in the month, in the household's currency. Paid, missed and upcoming occurrences all count.","examples":[{"amount":"0.00","currency":"USD"}]},"paid_expense":{"$ref":"#/components/schemas/Money","description":"Total of the transactions matched to the month's expense occurrences, as a positive magnitude in the household's currency. It sums the actual transaction amounts, so it can differ from `total_recurring_expense` even when every occurrence is paid.","examples":[{"amount":"17.99","currency":"USD"}]},"received_income":{"$ref":"#/components/schemas/Money","description":"Total of the transactions matched to the month's income occurrences, in the household's currency. It sums the actual transaction amounts, so it can differ from `total_recurring_income` even when every occurrence is paid.","examples":[{"amount":"0.00","currency":"USD"}]}},"required":["total_recurring_expense","total_recurring_income","paid_expense","received_income"],"title":"RecurringTransactionSummaryResponse","type":"object"},"InvalidMonthFormat":{"properties":{"code":{"const":"invalid_month_format","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["month must be in YYYY-MM format"]}},"required":["code","message"],"title":"InvalidMonthFormat","type":"object"},"OccurrenceStatus":{"enum":["paid","missed","upcoming"],"title":"OccurrenceStatus","type":"string"},"RecurringTransactionOccurrence":{"properties":{"recurring_transaction_id":{"description":"ID of the recurring transaction this occurrence belongs to.","examples":["Rt6wP4dM8xNc"],"type":"string"},"name":{"description":"Display name of the recurring transaction this occurrence belongs to.","examples":["Netflix"],"type":"string"},"expected_date":{"description":"Date the schedule expects the payment on. A matched transaction can be dated a few days before or after it.","examples":["2026-08-09"],"format":"date","type":"string"},"expected_amount":{"$ref":"#/components/schemas/Money","description":"The series' amount converted to the household's currency at the exchange rate for `expected_date`. Negative for expenses and positive for income, with the same sign as a matching `transaction_amount`.","examples":[{"amount":"-17.99","currency":"USD"}]},"direction":{"$ref":"#/components/schemas/TransactionDirection","description":"Direction of the money: `expense` for a bill or subscription, `income` for a paycheck or other deposit.","examples":["expense"]},"status":{"$ref":"#/components/schemas/OccurrenceStatus","description":"`paid` when a transaction is matched to the occurrence; for an income series this means the money was received. Without a match, `missed` if `expected_date` is before today in the household's time zone and `upcoming` if it is today or later.","examples":["paid"]},"transaction_id":{"anyOf":[{"examples":["Tx3fJ9mS6vBa"],"type":"string"},{"type":"null"}],"description":"ID of the transaction matched to the occurrence; `null` unless `status` is `paid`. A match is a non-transfer transaction at the series' merchant, with the series' direction, dated within 3 days of `expected_date` for `every_week`, 6 days for `every_2_weeks` and the twice-monthly frequencies, and 7 days otherwise. Its amount must be within 2% of the expected amount, or within 40% when another cycle bills about the same changed amount, and a transaction can satisfy only one occurrence.","examples":["Tx7nB4wK9dGh"]},"transaction_amount":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"Amount of the matched transaction in the household's currency, with the transaction's own sign: negative for an expense, positive for income. It can differ from `expected_amount`; `null` unless `status` is `paid`.","examples":[{"amount":"-17.99","currency":"USD"}]},"merchant":{"$ref":"#/components/schemas/MerchantSummaryResponse","description":"Merchant the series is tied to.","examples":[{"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"}]}},"required":["recurring_transaction_id","name","expected_date","expected_amount","direction","status","transaction_id","transaction_amount","merchant"],"title":"RecurringTransactionOccurrence","type":"object"},"RecurringTransactionOccurrenceListResponse":{"properties":{"occurrences":{"description":"Occurrences expected within the requested range, sorted by `expected_date`, earliest first.","items":{"$ref":"#/components/schemas/RecurringTransactionOccurrence"},"type":"array"}},"required":["occurrences"],"title":"RecurringTransactionOccurrenceListResponse","type":"object"},"RecurringTransactionNotFound":{"properties":{"code":{"const":"recurring_transaction_not_found","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Recurring transaction not found"]}},"required":["code","message"],"title":"RecurringTransactionNotFound","type":"object"},"RecurringTransactionSuggestion":{"properties":{"merchant":{"$ref":"#/components/schemas/MerchantSummaryResponse","description":"Merchant whose transactions show the repeating pattern.","examples":[{"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"}]},"suggested_name":{"description":"Proposed `name` for the series. Penny uses the merchant's name.","examples":["Netflix"],"type":"string"},"suggested_amount":{"$ref":"#/components/schemas/Money","description":"Typical amount of the detected transactions, in their own currency, negative for expenses and positive for income, rounded to the currency's minor unit. Send this exact value as `amount` when creating the series or dismissing the suggestion; unlike `display_amount`, it does not depend on the household's currency.","examples":[{"amount":"-17.99","currency":"USD"}]},"display_amount":{"$ref":"#/components/schemas/Money","description":"`suggested_amount` converted to the household's currency at today's exchange rate, for display only. Equal to `suggested_amount` when the currencies match.","examples":[{"amount":"-17.99","currency":"USD"}]},"suggested_direction":{"$ref":"#/components/schemas/TransactionDirection","description":"`expense` when the detected transactions are negative, `income` when they are positive.","examples":["expense"]},"suggested_frequency":{"$ref":"#/components/schemas/RecurringFrequency","description":"Cadence detected from the dates of `matching_transactions`. The values mean the same as `frequency` on a recurring transaction.","examples":["every_month"]},"suggested_start_date":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"Date of the earliest posted transaction at the merchant with a matching amount, which can be older than the six months of history used for detection. `null` when `suggested_frequency` is twice-monthly, because those frequencies take no start date.","examples":["2026-03-09"]},"confidence":{"description":"Score from `0` to `1` for how regular the pattern is, combining how even the intervals are, how consistent the amounts are and how many occurrences were seen. Suggestions are returned highest first.","examples":[0.93],"type":"number"},"matching_transactions":{"description":"Posted transactions from the last six months that make up the detected pattern, newest first.","items":{"$ref":"#/components/schemas/TransactionResponse"},"type":"array"}},"required":["merchant","suggested_name","suggested_amount","display_amount","suggested_direction","suggested_frequency","suggested_start_date","confidence","matching_transactions"],"title":"RecurringTransactionSuggestion","type":"object"},"RecurringTransactionSuggestionListResponse":{"properties":{"suggestions":{"description":"Detected patterns that are not already tracked or dismissed, highest `confidence` first. A pattern that covers several identical subscriptions is listed once for each one not yet tracked.","items":{"$ref":"#/components/schemas/RecurringTransactionSuggestion"},"type":"array"}},"required":["suggestions"],"title":"RecurringTransactionSuggestionListResponse","type":"object"},"DismissSuggestionRequest":{"properties":{"merchant_id":{"description":"ID of the suggestion's merchant, from `merchant.id`.","examples":["Mr4hT7wK2cNe"],"type":"string"},"amount":{"$ref":"#/components/schemas/SuggestionAmount","description":"The suggestion's `suggested_amount`, sent back unchanged. The dismissal also covers suggestions for the same merchant and frequency whose amount is within 10% of it."},"frequency":{"$ref":"#/components/schemas/RecurringFrequency","description":"The suggestion's `suggested_frequency`. A pattern at the same merchant with a different frequency is unaffected.","examples":["every_month"]}},"required":["merchant_id","amount","frequency"],"title":"DismissSuggestionRequest","type":"object"},"SuggestionAmount":{"properties":{"amount":{"description":"The suggestion's `suggested_amount.amount`, exactly as it was returned. 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.","examples":["-17.99"],"pattern":"(?:^[+-]?(?: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]+)$)$","type":"string"},"currency":{"$ref":"#/components/schemas/Currency","description":"The suggestion's `suggested_amount.currency`, exactly as it was returned.","examples":["USD"]}},"required":["amount","currency"],"title":"SuggestionAmount","type":"object"},"DismissedSuggestionNotFound":{"properties":{"code":{"const":"suggestion_not_found","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Dismissed suggestion not found"]}},"required":["code","message"],"title":"DismissedSuggestionNotFound","type":"object"},"RestoreSuggestionRequest":{"properties":{"merchant_id":{"description":"The `merchant_id` the suggestion was dismissed with.","examples":["Mr4hT7wK2cNe"],"type":"string"},"amount":{"$ref":"#/components/schemas/SuggestionAmount","description":"The `amount` the suggestion was dismissed with. Both the amount and the currency must match exactly."},"frequency":{"$ref":"#/components/schemas/RecurringFrequency","description":"The `frequency` the suggestion was dismissed with.","examples":["every_month"]}},"required":["merchant_id","amount","frequency"],"title":"RestoreSuggestionRequest","type":"object"},"UpdateRecurringTransactionRequest":{"properties":{"merchant_id":{"description":"ID of the merchant the series is tied to. Only transactions at this merchant can be matched to the series' occurrences.","examples":["Mr4hT7wK2cNe"],"type":"string"},"name":{"description":"Display name of the series, such as the subscription or bill it tracks. It does not have to match the merchant's name.","examples":["Netflix"],"type":"string"},"amount":{"description":"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.","examples":["-17.99"],"pattern":"(?:^[+-]?(?: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]+)$)$","type":"string"},"currency":{"allOf":[{"$ref":"#/components/schemas/Currency"}],"description":"Currency of `amount`, which may be a crypto code for a series detected in a crypto account. Unlike on create, it cannot be `null`: it does not default to the household's currency.","examples":["USD"]},"frequency":{"allOf":[{"$ref":"#/components/schemas/RecurringFrequency"}],"description":"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.","examples":["every_month"]},"start_date":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"Date of the first occurrence and the anchor every later occurrence is counted from. After the update, it must be set for every frequency except `twice_monthly_1st_15th` and `twice_monthly_15th_last`, which need `null`; otherwise the request fails with `invalid_frequency_fields`.","examples":["2026-03-09"]},"status":{"allOf":[{"$ref":"#/components/schemas/RecurringTransactionStatus"}],"description":"`active` keeps the series producing expected occurrences. `cancelled` ends it: `end_date` is set to today in the household's time zone, unless it is already set, and no later occurrences are expected. Sending `active` for a cancelled series clears `end_date` and resumes it.","examples":["active"]},"notes":{"description":"Free-form note about the series. Send an empty string to clear it.","examples":["Standard monthly plan"],"type":"string"}},"title":"UpdateRecurringTransactionRequest","type":"object"},"SecurityListResponse":{"properties":{"securities":{"description":"Every benchmark Penny provides price history for. The catalog is fixed and shared across all accounts.","items":{"$ref":"#/components/schemas/SecurityResponse"},"type":"array"}},"required":["securities"],"title":"SecurityListResponse","type":"object"},"SecurityResponse":{"properties":{"slug":{"description":"URL-safe identifier for the benchmark. Pass it to `GET /v1/securities/{slug}/prices` to get its price history.","examples":["sp500"],"type":"string"},"symbol":{"description":"Ticker symbol the benchmark is quoted under by Penny's market-data source, such as `^GSPC` for the S&P 500.","examples":["^GSPC"],"type":"string"},"name":{"description":"Display name of the index or asset the benchmark tracks.","examples":["S&P 500"],"type":"string"}},"required":["slug","symbol","name"],"title":"SecurityResponse","type":"object"},"SecurityDailyPriceEntry":{"properties":{"date":{"description":"Trading day the closing value is for.","examples":["2026-08-13"],"format":"date","type":"string"},"close_price":{"description":"Closing value on that day, as a decimal string with four decimal places. Stock indexes are in index points and `btc` is in US dollars; values are never converted to a household's currency.","examples":["6466.5800"],"pattern":"(?:^-?(?:(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?|0E[+-][1-9][0-9]*|[1-9](?:\\.[0-9]+)?E\\+[1-9][0-9]*|[1-9](?:\\.[0-9]+)?E-[1-9][0-9]*)$)$","type":"string"}},"required":["date","close_price"],"title":"SecurityDailyPriceEntry","type":"object"},"SecurityPriceHistoryResponse":{"properties":{"slug":{"description":"URL-safe identifier of the benchmark, as given in the request path.","examples":["sp500"],"type":"string"},"symbol":{"description":"Ticker symbol the benchmark is quoted under by Penny's market-data source, such as `^GSPC` for the S&P 500.","examples":["^GSPC"],"type":"string"},"name":{"description":"Display name of the index or asset the benchmark tracks.","examples":["S&P 500"],"type":"string"},"prices":{"description":"Daily closing values within the requested range, oldest first. Days with no stored close, such as weekends and market holidays for the stock indexes, are omitted rather than filled in.","items":{"$ref":"#/components/schemas/SecurityDailyPriceEntry"},"type":"array"}},"required":["slug","symbol","name","prices"],"title":"SecurityPriceHistoryResponse","type":"object"},"SecurityNotFound":{"properties":{"code":{"const":"security_not_found","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Security not found"]}},"required":["code","message"],"title":"SecurityNotFound","type":"object"},"DataExportResponse":{"properties":{"id":{"description":"Unique ID of the export. Use it to poll the export until it finishes.","examples":["Ex7mQ2vK9pLd"],"type":"string"},"status":{"$ref":"#/components/schemas/JobStatus","description":"Where the export is in its lifecycle. `pending` is queued, `processing` is building the archive, `completed` has an archive ready to download, and `failed` produced none, so request a new export. An export still unfinished two hours after it was requested is marked `failed`.","examples":["completed"]},"requested_by_email":{"anyOf":[{"format":"email","type":"string"},{"type":"null"}],"description":"Email address of the user who requested the export. `null` if that user's Penny account has since been deleted.","examples":["alex.rivera@example.com"]},"file_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Size of the ZIP archive in bytes. `null` until the export completes.","examples":[2487316]},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Temporary URL for downloading the ZIP archive, generated fresh for each response and valid for 15 minutes. `null` unless `status` is `completed`. Fetch the export again for a new URL at any time before `expires_at`.","examples":["https://downloads.penny.finance/exports/Hh4vK8pQ2sLm/Ex7mQ2vK9pLd/penny-export-2026-08-14.zip"]},"expires_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the archive and this export record are deleted, seven days after `completed_at`. `null` until the export completes.","examples":["2026-08-21T15:59:12Z"]},"completed_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the archive finished building. `null` while the export is `pending` or `processing`, and for a `failed` export.","examples":["2026-08-14T15:59:12Z"]},"created_at":{"description":"When the export was requested.","examples":["2026-08-14T15:58:40Z"],"format":"date-time","type":"string"}},"required":["id","status","requested_by_email","file_size_bytes","download_url","expires_at","completed_at","created_at"],"title":"DataExportResponse","type":"object"},"JobStatus":{"description":"Status of an asynchronous job (`pending`, `processing`, `completed`, or `failed`).","enum":["pending","processing","completed","failed"],"title":"JobStatus","type":"string"},"DataExportInProgress":{"properties":{"code":{"const":"export_in_progress","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["An export is already being prepared for this household"]}},"required":["code","message"],"title":"DataExportInProgress","type":"object"},"DataExportListResponse":{"properties":{"exports":{"description":"The household's ten most recently requested exports, newest first.","items":{"$ref":"#/components/schemas/DataExportResponse"},"type":"array"}},"required":["exports"],"title":"DataExportListResponse","type":"object"},"DataExportNotFound":{"properties":{"code":{"const":"export_not_found","description":"Stable, machine-readable error code. Branch on this value rather than on `message`.","type":"string"},"message":{"description":"Human-readable explanation of the error. The wording can change, so don't parse it.","type":"string","examples":["Export not found"]}},"required":["code","message"],"title":"DataExportNotFound","type":"object"}},"securitySchemes":{"PersonalApiToken":{"type":"http","scheme":"bearer","bearerFormat":"Personal API token","description":"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."}}},"servers":[{"url":"https://api.penny.finance","description":"Production"}],"tags":[{"name":"users","description":"Your profile and account preferences."},{"name":"households","description":"The shared container that owns every other resource."},{"name":"accounts","description":"Connected and manual financial accounts, and their balances."},{"name":"transactions","description":"Reading, editing, splitting, tagging, and hiding transactions."},{"name":"transaction-images","description":"Receipts and other images attached to a transaction."},{"name":"categories","description":"Household categories and the groups they roll up into."},{"name":"merchants","description":"Merchant records and their logos."},{"name":"tags","description":"Free-form labels that cut across categories."},{"name":"rules","description":"Categorization rules, their ordering, and dry runs."},{"name":"recurring-transactions","description":"Recurring series, occurrences, and detected suggestions."},{"name":"spending","description":"Aggregated cashflow, category, and merchant breakdowns."},{"name":"historical-balances","description":"Balance history behind the net worth chart."},{"name":"securities","description":"A fixed catalog of benchmark securities and their daily closing prices."},{"name":"institutions","description":"Financial institution metadata and logos."},{"name":"exports","description":"Household data exports and their download links."}]}