automation_rule_scope_invalid
The scope you sent is not in the automation catalogue. There are only two: the company that creates the rule, and the portfolio of its account (its other tax IDs and the ones another account cedes to it with operate level).
| Code | Type | HTTP | Category |
|---|---|---|---|
automation_rule_scope_invalid | invalid_request_error | 422 | Automations |
Cause
The scope you sent is not in the automation catalogue. There are only two: the company that creates the rule, and the portfolio of its account (its other tax IDs and the ones another account cedes to it with operate level).
What to do
Send one of the two scopes published by GET /v1/companies/{company}/automations/catalog under «scopes», or leave the field out to keep the single-company scope.
Related
All Automations error codes
Causes and actions for errors in this category.
Error codes by category
Find an error by the category that emits it.
Full reference table
All codes, HTTP statuses, types and descriptions in one reference.
Error model
Interpret the error envelope and handle errors by code.