Accountant Portal

Change who owns Penny and who backs them up (HM-75)

Changed on

A signed-in firm admin only (403 for any other accountant; every API key is refused, the service token included, 404). The two people are Augusto and Jacob; the backup is always named and is never the owner (migration 623 stores both on every metric version). The registry is append-only: each metric in force whose owner or backup differs gets a new version with the same lines and approvals and the new pair, and one audit_logs row (entity penny_metric_registry, no company) records who changed it, the pairs before, the pair after, the metrics and the two people told, all in one statement (409 PENNY_OWNERS_CHANGED when another change landed first). Both people are told; on QA the notice is recorded only and no email leaves (delivery.status suppressed_qa, emailsSent 0; Lead ruling, #2587 c7066018013). The same pair again changes nothing and tells no one.

put/accountant/penny/owners

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    HTTP bearer

Request body

object required
owner, 'augusto' | 'jacob' required
backup, 'augusto' | 'jacob' required

Never the same person as owner (422).

Response

The pair now in force, whether anything changed, and what the notice did

object required
success, true required
data, object required

Changes