Request installment purchase
curl -X POST "https://api.52-28-238-205.sslip.io/v1/installment-purchases" \ -H "Authorization: Bearer agk_test_..." \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{"plan_id":"pof_01jd2x3k4m5n6p7q8r9s0t1v2w","task_id":"research-feed","idempotency_key":"research-feed-plan-1"}'An agent asks to buy a published plan offer (installments or subscription); the full terms go through policy and usually one approval. Agent credential only; requires an Idempotency-Key (header or body), and a retry with the same key returns the first result.
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 same plan and intent.
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 same plan and intent.
application/json- body
plan_id?|Plan id (pln_...).
plan_offer_id?string|nulltask_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.
idempotency_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.
plan_id*Plan IdPlan id (pln_...).
intent_id*Intent IdPayment intent id (pi_...).
plan_status*Plan Statuspayment_status*Payment StatusPayment state of the intent; the allowed values and moves are in the state machines reference.
decision?|Policy decision: ALLOW, REQUIRE_APPROVAL or DENY.
reason_code?|Machine-readable reason from the reason code catalog, for example ABOVE_AUTO_THRESHOLD.
total_base_units*Total Base UnitsTotal in integer base units, carried as a string.
count*Countamount_base_units*Amount Base UnitsAmount in integer base units, carried as a string (USDC and USDT have 6 decimals: "50000" = 0.05).
period_seconds*Period Secondsasset?|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).
schedule?array<>[]approval_id?|Approval id (apr_...).
approval_expires_at?string|nullpoll_after_ms?integer|nullmessage?string|null[key: string]?anyPOSTClose card
Closes the card for good; a closed card cannot be resumed. Requires card:manage.
GETList plans
Returns the organization's plans, newest first (up to 200), with status, next payment and progress. Callable with a console session or an API key holding payment:read; a team approver sees only its own team's plans.