Accountant Portal

Generated minimal contract (#1940): parameters, auth, and status codes are authoritative; see the route handler for the exact body/response shape. Enrichment tracked by the x-median-spec-stage marker. Each task carries sourceKey and, for an agent_review task (#3813), decision (approved, rejected or null), answer (the reason), answeredAt and answeredByUserId: the agent reads its decisions here. type=bookkeeping_question lists only the questions the bookkeeping agent queued for the accountant. A bookkeeping_question task carries question, whose waitingTransactionCount is how many other transactions of the same payee, still in review, wait on that question's answer: an integer (0 when none and for a closed question), counted on each read, or null when it could not be read. Counted and listed are the rows the picked account is really applied to: not a row of the Stripe integration, and not a row with an open question of its own. waitingTransactions lists them newest first, at most 25 (id, occurredOn, description, merchantName, amountCents, direction); the count is the true total. question.park projects the active deliberate park record (reason, responsibleUserId, responsibleAccountantId, responsibleName, parkedByUserId, parkedByName, parkedAt, taskId) from the linked transaction's metadata.deliberatePark, or null when not parked. The bookkeeping agent's read leaves out a bookkeeping_question whose txn: transaction is deleted or absent (a person's read still lists it, with question.transaction null), so its page can hold fewer than limit tasks. A person's read also carries question.clientQuestion (#5926): its id, month, state and revision while it is queued for the client's package, else null; absent where it can't be read.

get/accountant/tasks

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    • HTTP bearer
    • or API key in header X-API-Key

Query parameters

customerId, string uuid

One assigned customer's tasks only.

status, string

Stored task status (pending, in_progress, completed, cancelled).

priority, string
type, string

Exact task type, for example bookkeeping_question. Lowercase letters, digits and underscores; anything else is 422.

scope, 'team'

team: with the accountant's own tasks, the bookkeeping_question and schedule_proposal_review tasks filed to any accountant at the assigned customers. Every other task is listed to its owner only. The bookkeeping service key reads its customers' whole queue either way. Any other value is 422 for a person; the bookkeeping service key ignores this parameter.

limit, integer
cursor, string

meta.nextCursor of the preceding page.

Response

Success envelope; see the route handler for the payload shape

object required

Changes

    • info

      added the new optional query request parameter scope

    • info

      added the new optional query request parameter cursor

    • info

      added the new optional query request parameter customerId

    5 more changes in this revision