Create payment intent
curl -X POST "https://api.52-28-238-205.sslip.io/v1/payment-intents" \ -H "Authorization: Bearer agk_test_..." \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{"service_id":"svc_01jd2x3k4m5n6p7q8r9s0t1v2w","task_id":"weekly-report-42","idempotency_key":"weekly-report-42-forecast","purpose":"Forecast for the weekly report"}'An agent asks to buy a catalog service or a paid URL; Abazi quotes, runs the policy, reserves budget and pays, waiting up to wait_seconds for the result. Agent credential only; requires an Idempotency-Key (header or body).
https://api.52-28-238-205.sslip.ioAuthorization
agentKeyAuthorization: Bearer agk_test_...
Headers
Idempotency-KeystringRequired (header, or idempotency_key in the body). A retry with the same key returns the first result instead of paying twice.
Body
application/json · required. Fields are listed under Request body below.
agentKeyAuthorizationBearer <agk_test_...>Agent credential
Idempotency-Key?|Required (header, or idempotency_key in the body). A retry with the same key returns the first result instead of paying twice.
application/json- body
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.
method?string|nullinput?|Input passed to the merchant's resource, as a JSON object.
task_id?|The agent's own task reference, stored with the intent for tracing.
purpose?|The agent's stated purpose (up to 500 characters). Shown to approvers and screened by Shield; not in the public receipt.
rail_hint?|Preferred rail when the service accepts more than one (x402, wdk or card). Abazi still applies the mandate.
wait_seconds?Wait SecondsHow long the call waits for the payment result before returning the current state.
20idempotency_key?|Unique key per purchase; a retry with the same key returns the first result instead of paying twice.
Success.
application/json- response
status*StatusCurrent state; the allowed values and moves are in the state machines reference.
intent_id?|Payment intent id (pi_...).
payment_status?|Payment state of the intent; the allowed values and moves are in the state machines reference.
fulfillment_status?|Whether the paid resource was delivered.
decision?|Policy decision: ALLOW, REQUIRE_APPROVAL or DENY.
reason_code?|Machine-readable reason from the reason code catalog, for example ABOVE_AUTO_THRESHOLD.
receipt_id?|Receipt id (rcpt_...).
amount_base_units?|Amount in integer base units, carried as a string (USDC and USDT have 6 decimals: "50000" = 0.05).
asset?|Asset symbol, for example USDC or USDT; USD for card amounts.
network?|Network as a CAIP-2 id, for example eip155:84532 (Base Sepolia) or solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1 (Solana devnet).
rail?|Payment rail: x402 (stablecoin over HTTP 402), wdk (direct USDT transfer) or card.
merchant?|nullresource?|nullapproval_expires_at?string|nullpoll_after_ms?integer|nullmessage?string|null[key: string]?anyGETList payment intents
Returns payment intents, newest first, with status-tab counts for the current filters. Console session or API key with payment:read; a merchant account sees payments it received.
POSTExecute payment intent
Starts payment of an allowed (reserved) intent and waits up to wait_seconds for the result; on an intent already running it only waits. Agent credential only, for the agent's own intents.