Edit one of this customer's merchant rules
#3039. Accountant login only: the service token is refused, because a repointed rule categorizes every later matching row at 99% without review. Only a rule that belongs to this customer can be edited; another company's rule and a global rule are 404. When glAccountCode is sent it must be an active account in this customer's chart (400 otherwise) that may be posted to: a locked, non-postable or parent account (judged against the whole chart) is 422, as on create. The rule's glAccountName and glAccountType are taken from that account; values sent for those two fields are ignored. merchantPattern needs at least 3 characters, cannot contain %, _, a backslash or a control character, and cannot consist only of generic words such as fee or payment (422 otherwise); a pattern and match field another rule of this customer already has is 409. A non-UUID path id is 422. Writes an audit_logs row (entity_type merchant_rule, action update) with the rule before and after, in the same transaction as the change: if the row cannot be written, nothing changes. A PATCH that changes nothing writes none.
Request
- Base URLhttps://api.medianfi.com/api/v1
- AuthHTTP bearer
Path parameters
Request body
Response
The updated rule
Changes
No recorded changes to this operation across all 110 revisions of this API.