Mandates
POST/v1/mandates/simulate

Simulate mandate

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/mandates/simulate" \  -H "Cookie: <console session cookie>" \  -H "Content-Type: application/json" \  -d '{"agent_id":"agt_01jd2x3k4m5n6p7q8r9s0t1v2w","service_id":"svc_01jd2x3k4m5n6p7q8r9s0t1v2w","amount_base_units":"250000"}'

Runs the same policy evaluation as live payments against draft fields, a mandate or an agent's mandate, and returns the decision, reason code and trace. Console session or API key with mandate:edit; nothing is reserved or sent.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/mandates/simulateBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Body

application/json · required. Fields are listed under Request body below.

Requires permissionmandate:edit
Held by owner, admin, finance, operator. The caller must hold this permission, or the call is refused with 403.
Policy decisionALLOW · REQUIRE_APPROVAL · DENY
The policy engine decides this call. The result carries the decision and a reason code; see reason codes.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Request Body

application/json
  1. body
mandate?|null
mandate_id?|

Mandate id (mdt_...).

merchant?string|null
url?|

URL of a paid resource. Use it for a merchant that is not in the Catalog; Abazi reads its 402 response.

service_id?|

Catalog service id (svc_...).

amount_base_units*|

Amount in integer base units, carried as a string (USDC and USDT have 6 decimals: "50000" = 0.05).

rail?|

Payment rail: x402 (stablecoin over HTTP 402), wdk (direct USDT transfer) or card.

network?|

Network as a CAIP-2 id, for example eip155:84532 (Base Sepolia) or solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1 (Solana devnet).

agent_id?|

Agent id (agt_...).

Response Body

Success.

application/json
  1. response
decision*Decision

Policy decision: ALLOW, REQUIRE_APPROVAL or DENY.

reason_code?|

Machine-readable reason from the reason code catalog, for example ABOVE_AUTO_THRESHOLD.

scope?string|null
message?string|null
next_action?string|null
trace*array<>
policy_version?string|null
inputs*
[key: string]?any