Read tasks
Changed onGenerated 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.
Request
- Base URLhttps://api.medianfi.com/api/v1
- Auth
- HTTP bearer
- or API key in header X-API-Key
Query parameters
One assigned customer's tasks only.
Stored task status (pending, in_progress, completed, cancelled).
Exact task type, for example bookkeeping_question. Lowercase letters, digits and underscores; anything else is 422.
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.
meta.nextCursor of the preceding page.
Response
Success envelope; see the route handler for the payload shape
Changes
- info
added the new optional
queryrequest parameterscope
- info
- info
added the new optional
queryrequest parametercursor - info
added the new optional
queryrequest parametercustomerId
5 more changes in this revision
- info