Accountant Portal

Read learned merchant rules for an assigned customer

#2383 read route for the bookkeeping service token. Lists every rule that can categorize this customer's transactions: its company rules first, then the global rules, paged (follow meta.nextCursor while meta.hasMore is true; scope=company or scope=global narrows it). The last page also carries the built-in rules for well-known merchants (#3039): read-only rows with an id of the form global-vocab:<pattern>, scope global and builtIn true, all of them, and none for scope=company. So the rule a transaction records (GET .../transactions/{transactionId}/merchant-rule) is always in this list. Does not create or update a rule. Assignment is required; an unassigned company is forbidden.

get/accountant/companies/{customerId}/merchant-rules

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    • HTTP bearer
    • or API key in header X-API-Key

Path parameters

customerId, string uuid required

Response

Success envelope of merchant rules for this customer only

object required
success, boolean
data, object[]

Changes

No recorded changes to this operation across all 110 revisions of this API.