Create credit purchase
create_credit_purchaseBuy prepaid credit: returns a Stripe Checkout URL for a human payer, who accepts the customer terms there. Credit is granted once, after Stripe confirms payment. Requires scope 'billing:checkout'.
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": {
"amount_cents": "<amount_cents>",
"client_purchase_key": "<client_purchase_key>"
},
"name": "create_credit_purchase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rail | No | checkout | |
| customer | No | Required for rail=checkout. | |
| accept_terms | No | ||
| amount_cents | Yes | ||
| idempotency_key | No | Optional. Same key + same arguments within 24 h returns the original result. | |
| client_purchase_key | Yes | Durable key; a retry returns the same purchase. | |
| test_payment_method | No | rail=test_payment_method only (TEST mode). |