Accountant Portal

File an agent review task for one held item (#3813)

Changed on

The bookkeeping service files one task for each item it holds instead of posting. Only the service token may file (a signed-in person gets 403 REVIEW_TASK_FILER_NOT_SERVICE). The task goes to the company's primary assigned person, or else the earliest assigned, never to the service that filed it; a company with no assigned person answers 409 REVIEW_TASK_NO_ACCOUNTANT, also for a key already filed. The task's description carries the proposal and its evidence. Filing is idempotent per sourceKey: 201 when this call filed the task, 200 with the task already filed for the item, decided or not. A filed task's text never changes, so a person always decides exactly what they read. The same key with other content answers 409 REVIEW_TASK_SOURCE_KEY_REUSED, and a new attempt at an item uses a new sourceKey. A pending, undecided task moves to the current primary person only when its owner is no longer assigned to the company.

post/accountant/companies/{customerId}/review-tasks

Request

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

Path parameters

customerId, string uuid required

Request body

object required
sourceKey, string required
title, string required
proposal, string required

What the agent will do on approval.

evidence, string required

The rows, documents and rules it relied on.

priority, 'critical' | 'high' | 'medium' | 'low'

Response

The task already filed for this item, unchanged

object required
success, true required
data, AgentReviewTask required

An accountant task of type agent_review (#3813), as stored.

Changes