File an agent review task for one held item (#3813)
Changed onThe 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.
Request
- Base URLhttps://api.medianfi.com/api/v1
- Auth
- HTTP bearer
- or API key in header X-API-Key
Path parameters
Request body
What the agent will do on approval.
The rows, documents and rules it relied on.
Response
The task already filed for this item, unchanged
An accountant task of type agent_review (#3813), as stored.
Changes
- info
endpoint added
- info