Spending Rules
List Spending Rules
Retrieve the spending rules in your Finrock sub-account: who can send, where, how much, and whether approval is needed.
GET
MCP scope:
dac.read
Spending rules decide which outgoing transactions are allowed, which need approval, and how much can be sent. Use this endpoint to list the rules in your sub-account and see each one’s status.
Response
A successful request returns HTTP200 with an array of spending rules.
Unique ID of the rule. Use it with Delete Spending Rule.
Who the rule applies to. See initiated_by values.
Where funds are going. See destination_type values.
For
External destinations, the kind of address. See destination_id values.For
WhitelistedAddress rules, the name of the whitelist. null for ad-hoc addresses.For
WhitelistedAddress rules, the ID of the whitelist. For AdhocAddress rules, the specific address outside Finrock that the rule applies to, or Any if it covers every address. For SubAccount destinations, the ID of the sub-account.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. 0 for PerTransaction.What happens to a matching transaction. See sr_action values.
The rule’s status. See status values.

