Spending Rules
Create Spending Rule
Add a spending rule that allows outgoing transactions up to a limit, or requires approval for them.
POST
MCP scope:
dac.write
Use this endpoint to add a spending rule to your sub-account. A new rule starts as UnApproved and takes effect once the owner, or at least 2 admins, approve it in the dashboard. Check its status with List Spending Rules.
Body Parameters
Who the rule applies to. See initiated_by values.
What happens to a matching transaction. See sr_action values.
Where funds are going. See destination_type values.
For
External destinations, the kind of address. See destination_id values.Depends on
destination_id:WhitelistedAddress: the ID of the whitelist the rule applies to. The rule then covers every active address on that whitelist.AdhocAddress: a specific address outside Finrock, not one of your Finrock wallets, for example your cold wallet.
SubAccount destinations, the ID of the sub-account the rule allows transfers to.The period the amount applies to. See rule_type values.
The length of the period, in units of
rule_type. For example, Hourly with 24 means any 24-hour window.
