payment-purchase
Charge an existing account's saved Stripe payment method and add account API credits. This is not x402. Requires the separately scoped Agent Billing Key, fixed 2,000-credit increments, and an idempotency key.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"credits": "<credits>",
"billingKey": "<billingKey>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "payment-purchase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| credits | Yes | Number of account API credits to purchase in fixed increments of 2,000 | |
| billingKey | Yes | Separately scoped Agent Billing Key from payments.builtwith.com/agent-payment-api-config | |
| idempotencyKey | Yes | Unique operation identifier; reuse only when retrying the identical purchase |