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. A bookkeeping_question is answered with answer (words) or categoryGlAccountId (the account, which categorizes the transaction); the bookkeeping agent reads the answer back from GET /accountant/tasks. The bookkeeping service key may answer a bookkeeping_question the same way (exactly one of answer or categoryGlAccountId, optionally status: done; the question is then completed and the answer recorded under the service user); every other update by that key is refused with 403 SERVICE_TASK_UPDATE_NOT_ALLOWED except the producer-owned schedule review advance. A closed question is 409 QUESTION_ALREADY_CLOSED. Any accountant assigned to the task's customer may answer a bookkeeping_question filed to another accountant the same way; every other update of a task they do not own is 403 ACCOUNTANT_TASK_OWNERSHIP_REQUIRED. The bookkeeping agent's own key cannot update tasks. An agent_review task is decided through POST /accountant/tasks/{taskId}/decision; this route refuses it with 422.

patch/accountant/tasks/{taskId}

Request

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

Path parameters

taskId, string required

Request body

object required

Response

Success envelope; see the route handler for the payload shape

object required

Changes