Skip to main content

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.

CommandHTTPDescription
credit-purchases createPOST /v1/credit_purchasesBuy 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​