Accountant Portal

Set the legal entity of a file that has none (#5669)

Changed on

Human only: a signed-in accountant assigned to the client. Never a service principal or an API key. Only a file with no entity, no link to money and no amount, vendor or invoice number; a file that has an entity is never moved (409 DOCUMENT_ASSIGNMENT_CONFLICT). The entity must be one of the client's own and not a group. One document.entity_set audit row keeps the entity, the reason and who, in the same transaction. It starts no work and posts nothing.

post/accountant/companies/{customerId}/documents/{documentId}/entity

Request

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

Path parameters

customerId, string uuid required
documentId, string uuid required

Request body

object required
entityId, string uuid required
reason, string required

Response

The accountant document DTO, with its entity

Changes