Skip to main content
Your payment errors should fail closed. If the agent cannot verify a seller, fit a payment inside policy, sign a guarantee, or connect the payment to the task, it should stop or ask for approval instead of spending blindly.

Common error categories

For collateral, network, or wallet issues, inspect your account in 4mica dashboard before retrying.

Retry rules

Do not retry forever. Automated retries can turn a small issue into unexpected spend or noisy traffic. Use strict retry rules that separate temporary transport failures from payment or policy decisions. Always record the final failure reason in the task log. If retries create duplicate-looking activity, stop the agent and share the request IDs with support.
Never let retries bypass policy. A retry should repeat a valid attempt, not turn a blocked payment into an approved one.

User-facing status

Keep payment state understandable. You should be able to tell whether the agent needs approval, lacks collateral, hit a blocked seller, failed during signing or verification, exhausted its budget, or successfully received a paid response. Use stable status names so your UI, logs, and support process speak the same language.

What you should log

Log enough to debug without guessing. The payment record should connect the task, request, seller, amount, policy, failure reason, retry count, approval state, and final outcome.