Accountant Portal

Delete a document with a reason (p11,

Changed on

Human only. The client's reviewer, or a reviewer when the client has none, or the firm admin (403 DOCUMENT_DELETE_ROLE_REQUIRED otherwise). A statement dated in a month that is not open is kept (409 DOCUMENT_STATEMENT_MONTH_CLOSED, with periodStart and periodEnd). The row keeps its category and entry; the document's matches go with it. One document.deleted audit row keeps the reason, the file's name and type, and who. Nothing is sent to the client. The 10-second Undo is the app holding the request; the API has no undo.

delete/accountant/companies/{customerId}/documents/{documentId}

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
reason, 'wrong_client' | 'not_business' | 'duplicate' required

Uploaded to the wrong client, not a business document, or an exact duplicate of a filed copy.

Response

Deleted

Changes

    • breaking

      added required request body

    • breaking

      removed the success response with the status

    • info

      added the non-success response with the status

    2 more changes in this revision