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:authorize'.
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). |