Your organisation's payment rules
const url = 'https://api.sotirea.com/v1/rules';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.sotirea.com/v1/rules \ --header 'Authorization: Bearer <token>'The rules every payment is checked against before it is priced, as people in your organisation set them in the console. A rule for one network and asset wins over a general one.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done.
object
object
Whether money may go only to approved addresses.
A payment of this much or more waits for approval.
How many people must approve a payment that waits.
Native, a token’s contract, or empty for every asset.
The network, or empty for a rule that applies to every network.
The most one payment may move, in the asset’s smallest unit.
The most payments may move together within window_seconds.
How long a newly approved address waits before it can be paid; 0 is off.
Open, limited, allowlist or dual_control.
object
Quote it when asking about a request; it is in the X-Request-Id header too.
Example
{ "success": true}default
Section titled “default”Refused or failed, in words a person can act on.
object
object
object
object
Quote it when asking about a request.
Example
{ "success": false}