Credit purchases
A one-off purchase of prepaid credits of a credits-type product, independent of any subscription: it creates and finalizes an invoice (billing_reason = credit_purchase), and the balance takes effect once it is paid. Usage and balance live in usage credits.
| Command | HTTP | Description |
|---|---|---|
credit-purchases create | POST /v1/credit_purchases | Buy credits |
Examples​
--params carries query and path parameters (id, page, filters); --json carries the request body; --fields limits which fields come back — worth using on every list/get to save context. See Global flags for the full reference.
# Buy credits
kobana billing credit-purchases create \
--json '{"billing_account_id": "BILLING_ACCOUNT_ID", "product_id": "PRODUCT_ID", "quantity": 100}'
Next steps​
- Portal users
- Schema introspection — every parameter this resource accepts.