Update Merchant
Updates a merchant's name or website everywhere it appears in the household.
Send 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.
Authorization
PersonalApiToken Personal API token (penny_pat_…). Paste only the token; the Bearer prefix is added automatically. Read-only tokens only allow read requests, and read/write tokens follow your current household membership and role. See https://penny.finance/docs/api#authentication.
In: header
Path Parameters
ID of the household that owns the resource. GET /v1/households lists the households you can access.
ID of the merchant.
Request Body
application/json
Display name shown on the merchant's transactions. Must be unique among the household's active merchants, ignoring case and accents.
1 <= length <= 255Merchant'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.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://api.penny.finance/v1/households/Hh4vK8pQ2sLm/merchants/Mr9dL3xT6bQa" \ -H "Authorization: Bearer $PENNY_API_TOKEN" \ -H "Content-Type: application/json" \ --data-raw '{ "name": "Trader Joe'\''s"}'{ "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, "recurring_transaction_count": 1}