Accountant Portal

Create a thread, with an optional first message and attachments

Creates an accountant-owned thread. When content is non-empty or attachments are present, the first message is written with it: thread, message and attachments are stored together or not at all. Attachments with empty content become an attachment-only first message. Every attached document or transaction is admitted against the path's company and the caller's authority before anything is written. When an open thread already exists for one of transactionIds, that thread is returned with 200 and nothing is written.

post/accountant/companies/{customerId}/threads

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    HTTP bearer

Path parameters

customerId, string uuid required

Request body

CreateAccountantThreadInput required
customerId, string uuid

The customer company. Required on /accountant/threads, where the path does not name it.

companyId, string uuid

Accepted as an alias of customerId.

subject, string required
content, string nullable

Text of the first message. May be empty when attachments are present.

transactionIds, string[]
category, 'categorization' | 'documentation' | 'approval' | 'general'
blocksClose, boolean
attachments, ThreadAttachmentInput[]

Response

An open thread already existed for the given transactions; it is returned unchanged

AccountantThreadSummaryResponse required
success, boolean
data, object

The thread summary the accountant thread list returns. It carries no attachments. On create (#4359) it also carries messageId (the first message, or null) and holdUntil (ISO time the first message's 10 s send hold ends, or null), for the Undo action.

Changes

No recorded changes to this operation across all 110 revisions of this API.