Accountant Portal

Record what the bookkeeping agent would have done in shadow

Changed on

The bookkeeping agent's key only (a person gets 403 AGENT_ONLY, the shared cloud-bookkeeping service token 404). One verdict per company, capability and subject: a repeat returns the first (200), a new one 201. For transfers.pairs the blocker must be this company's open, unambiguous unresolved_transfer_pair close blocker whose pairKey is the two transactions' ids, sorted (422 otherwise; 404 for no such blocker). For documents the pair must be the document match policy's own match verdict with writeAllowed for that document, on that bank row, as the agent's key reads it: never a match of that document a person unmatched or rejected, and only once its date window has settled (not window_open; 422 otherwise; 404 for no such document); the API records the policy's version itself. If expectedDocumentType is supplied, the fresh judgment must also report a receipt (422 otherwise). 409 AGENT_CAPABILITY_NOT_SHADOW when the capability is not in shadow. Touches no books and spends no write allowance. Ids and codes only.

post/accountant/companies/{customerId}/agent/shadow-verdicts

Request

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

Path parameters

customerId, string uuid required

Request body

union required
object required
OR
object required

Response

The verdict already recorded for this pair

AgentShadowVerdictEnvelope required
success, boolean required
data, object required

Changes

    • breaking

      the request's body type changed from object to no type

    • warning

      removed the request property blockerId

    • warning

      removed the request property capability

    6 more changes in this revision