Skip to main content
POST
Buy a plan for your key's account in one x402 call

Authorizations

Authorization
string
header
required

Ironflow API key, format if_xxxx. Free keys at https://ironflow.sh/key. Optional on read endpoints.

Headers

Idempotency-Key
string

Up to 128 letters, digits, dots, underscores, colons and dashes. The same key on the same account answers the same order.

Pattern: ^[A-Za-z0-9._:-]{1,128}$

Body

application/json
plan
enum<string>
required

A plan on sale (GET /v1/billing/plans)

Available options:
explorer,
explorer-12m,
builder,
builder-12m,
pro,
pro-12m

Response

Paid (the plan starts once the payment settles), or a retry with a used Idempotency-Key (replayed, nothing charged).

POST /v1/billing/buy, paid or replayed.

status
enum<string>
required

paid: settled, the plan starts within a minute; on a replay, the first order's status

Available options:
paid,
pending,
expired
plan
string
required
request_id
string
required
status_url
string<uri>
required
replayed
boolean

A retry with a used Idempotency-Key; nothing was charged

plan_name
string
tier
string
days
integer
price_usdc
number
account
string

The account's email, masked (t***@g***.com)

plan_active_until
string<date-time>
message
string