Payment intents
POST/v1/sandbox/purchases

Run sandbox purchase

View as .md
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.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/sandbox/purchasesBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
Body

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

Authorization

session
cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Request Body

application/json
  1. body
agent_id*Agent Id

Agent 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.

Response Body

Success.

application/json
  1. response

POST /v1/sandbox/purchases (lives here: the orchestrator module is owned elsewhere).

intent_id?|

Payment intent id (pi_...).

status*Status

Current state; the allowed values and moves are in the state machines reference.

[key: string]?any