Accountant Portal

Rule hits and people's corrections for the p12 Rules tab (#2587)

Changed on

For the last days (1 to 365, default 90), per merchant rule: hits, the rows whose categorization cites the rule in the decision log (#3039), and correctedByPeople, those a person (accountant or client) later moved to another account, with the newest correction and who made it. Rules with no hit in the window are absent; join to GET …/merchant-rules by ruleId. peopleKeepCorrecting flags a rule people keep correcting: at least 3 corrections that are at least a quarter of its hits in the window (provisional thresholds, a call for Jacob). Read-only. A signed-in person only: every API key is refused, the service token included (404).

get/accountant/companies/{customerId}/merchant-rule-stats

Request

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

Path parameters

customerId, string uuid required

Query parameters

days, integer

Response

Hits and corrections per rule

object required
success, true required
data, object required

Changes