Accept Rule Suggestion
transaction_accept_rule_suggestionAccept a rule suggestion from transaction_get_list_rule_suggestions: saves a categorization rule for that merchant and account as a DRAFT. A draft books nothing and categorizes no transactions until a person approves it on the Rules screen, so tell the user it is a draft awaiting their approval, never that it is live; rule_status in the response confirms it. Accepting the same suggestion again reuses the draft; it fails if the merchant already has a live rule booking to a different account.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyId | Yes | UUID value wrapper. | |
| conditions | No | ||
| glAccountPath | No | ||
| counterpartyId | Yes | UUID value wrapper. |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ruleId | No | ||
| failures | No | ||
| ruleReused | No | ||
| ruleStatus | No | ||
| skippedCount | No | ||
| updatedCount | No | ||
| closedMonthCount | No |