Skip to main content
Build a three-tier test: one payment is approved, one waits for approval, and one is denied. More scenarios covers blocked recipients and time windows.

Prerequisites

To try rules without saving a policy or creating payment requests, use Try before saving in the policy editor. The steps below test saved policies through the payment flow.
A Conto account and organization
An active agent with a linked, funded wallet and an SDK key in CONTO_API_KEY. The Quickstart walks through creating the wallet, connecting the agent, and generating the key

Keep the test isolated

Use a dedicated DEV test agent and its Tempo Testnet wallet so nothing else changes the results:
  • A production agent holds its first payment to a new address for payee review.
  • Organization policies, approval workflows, and wallet caps still apply. Set the wallet’s per-transaction cap to at least 20 and leave enough daily cap for the tests. Pass its walletId when the agent has more than one wallet.
  • The starter policies ($25 per payment, review above $10) do not change these results.
Authorization tests create request records and send no funds unless you execute. Conto re-checks controls before a managed payment executes, so a policy change can stop a request that was approved earlier. Read lifecycle and recovery before resuming.

Step 1: Verify your setup

Confirm the agent is configured before you create policies:
Check that the setup summary shows:
  • the agent is available for payment calls
  • at least one wallet is available
If either check fails, go back to the Quickstart.

Step 2: Create policies

Policy A: Spend limit

1

Create the policy

Go to Policies > Create policy.
  • Policy name: “Manual Spend Test”
  • Applies to: Specific agents, then choose your test agent
  • Policy type: Spend limit
  • Per payment ($): 15
  • Description: “Deny transactions over $15”
2

Check the rule

The form creates this rule:This allows transactions up to $15. Anything above is denied.
How rule actions work: an ALLOW rule is a required condition, so a transaction that does not match it is denied. A DENY or REQUIRE_APPROVAL rule triggers when its condition matches. DENY + GREATER_THAN 15 has the same effect as this rule. REQUIRE_APPROVAL + GREATER_THAN 10 requires manual approval when the amount is over $10. See how policies are evaluated.

Policy B: Approval threshold

1

Create the policy

Go to Policies > Create policy.
  • Policy name: “Manual Approval Test”
  • Applies to: Specific agents, then choose your test agent
  • Policy type: Approval threshold
  • Require approval above ($): 10
  • Description: “Require approval for transactions over $10”
2

Check the rule

The form creates this rule:Transactions over $10 require manual approval in the dashboard before they can execute.

Step 3: Check the policies on the agent

1

Open the agent detail page

Navigate to your agent’s detail page.
2

Go to the Policies tab

Click the Policies tab.
3

Check both policies

“Manual Spend Test” and “Manual Approval Test” should be listed. Use Assign policy to add one you left out. All assigned policies are evaluated with AND logic. The most restrictive rule wins.
To confirm, re-run the GET /api/sdk/setup call from Step 1 and check that the payment-control summary reflects the assigned policies.

Step 4: Run test transactions

Use curl or any HTTP client. With the SDK, call conto.payments.request({ amount, recipientAddress, walletId, idempotencyKey }) with amounts 5, 12, and 20. Use a different key for each test, and reuse a key only to retry the same test. See Payments.

Test 1: $5 payment (expect APPROVED)

Expected response:

Test 2: $12 payment (expect REQUIRES_APPROVAL)

Expected response:

Test 3: $20 payment (expect DENIED)

Expected response:

Step 5: Execute an approved payment

If Test 1 returned APPROVED, you can execute it onchain:
The response includes receipt.txHash, receipt.transactionId, and receipt.settlementMode. Submission is not confirmation. Follow Track and recover a payment to verify the final state. Held and denied requests appear in Inbox and Audit logs, not on Transactions, which lists executed payments. Each audit entry shows which policies were evaluated, which rules matched, and the final decision.

More scenarios

Both scenarios use the same agent and a $5 payment, so only the new policy can change the result. Create each policy in Policies > Create policy with Applies to set to Specific agents, and choose the agent.

Blocked counterparty

Expect DENIED with the reason This recipient is not allowed by the current payment controls. The amount does not matter. The address itself is blocked.

Time window

The Timezone field starts at your browser’s timezone. Set it to UTC, or read the times below in the zone you chose. The form also adds a Mon to Fri DAY_OF_WEEK rule. Send a $5 payment outside 09:00 to 17:00 in that zone, or on a Saturday or Sunday. Expect DENIED with the reason This payment is outside the permitted schedule. Remove the policy afterward so it does not block your other tests.
A time rule created over the API without a timezone in its value is evaluated in UTC. See time windows.

Troubleshooting

For setup issues such as a lost SDK key or an unfunded wallet, see If the result needs attention in the Quickstart.
Check the Policies tab on the agent detail page. Assigned policies apply only to the agents they are assigned to, and only while they are active. Also check that each policy has rules.
Every applicable policy is evaluated with AND logic, whatever its priority. If one policy denies while another would require approval, the denial wins. For example, if both an approval threshold (>$10) and a spend limit (>$15) match, DENY wins over REQUIRES_APPROVAL. Priority changes sort order only. It does not override a failing rule. Check which policies are assigned on the Policies tab.
Every applicable policy must pass, so the strictest cap wins. New agents are linked to the starter policies ($25 per payment, $100 per day, review above $10). If the starter cap is $25 and your policy allows $100, the $25 cap wins. Edit or unassign the starter policy on the Policies tab.

Next steps

SDK reference

Full SDK payment methods and options

Go live checklist

Checks before you enable live funds