Run sandbox purchase
curl -X POST "https://api.52-28-238-205.sslip.io/v1/sandbox/purchases" \ -H "Cookie: <console session cookie>" \ -H "Content-Type: application/json" \ -d '{"agent_id":"agt_01jd2x3k4m5n6p7q8r9s0t1v2w"}'Runs a test purchase for one of the organization's agents from the console and returns the intent id at once. Console session only, for users who can create agents or developers; the agent needs an active credential.
https://api.52-28-238-205.sslip.ioAuthorization
sessionCookie: <console session cookie>
Body
application/json · required. Fields are listed under Request body below.
sessionuapg_session<token>Console session cookie (HttpOnly, SameSite=Lax)
application/json- body
agent_id*Agent IdAgent id (agt_...).
service_id?|Catalog service id (svc_...).
url?|URL of a paid resource. Use it for a merchant that is not in the Catalog; Abazi reads its 402 response.
input?|Input passed to the merchant's resource, as a JSON object.
Success.
application/json- response
POST /v1/sandbox/purchases (lives here: the orchestrator module is owned elsewhere).
intent_id?|Payment intent id (pi_...).
status*StatusCurrent state; the allowed values and moves are in the state machines reference.
[key: string]?anyGETGet spending status
Returns the calling agent's own budget (available, reserved, spent, limit) and mandate limits and expiry. Agent credential only.
POSTReport delivery
The merchant reports whether a paid request was delivered or failed, by intent_id or settlement_ref; this sets the intent's fulfillment status, not its payment status. API key; a merchant key can update only its own payments.