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.
Request
- Base URLhttps://api.medianfi.com/api/v1
- AuthHTTP bearer
Path parameters
Request body
The customer company. Required on /accountant/threads, where the path does not name it.
Accepted as an alias of customerId.
Text of the first message. May be empty when attachments are present.
Response
An open thread already existed for the given transactions; it is returned unchanged
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.