Skip to main content

billing

Manage app billing — one-time charges, recurring subscriptions, transactions, and usage billing. 14 API commands.

All billing commands share these flags:

FlagShortDescription
--paramsPath/query parameters as JSON
--dataRequest body as JSON
--jq-qjq expression to filter output
--dry-runPreview the request without executing

one-time

Manage one-time charges for your app.

shoplazza billing one-time create --data @charge.json
shoplazza billing one-time get --params '{"charge_id":"123"}'
shoplazza billing one-time list
shoplazza billing one-time transactions --params '{"charge_id":"123"}'

recurring

Manage recurring subscriptions.

shoplazza billing recurring create --data @subscription.json
shoplazza billing recurring get --params '{"subscription_id":"123"}'
shoplazza billing recurring list
shoplazza billing recurring update --params '{"subscription_id":"123"}' --data @subscription.json
shoplazza billing recurring cancel --params '{"subscription_id":"123"}'
shoplazza billing recurring transactions --params '{"subscription_id":"123"}'

transactions

Query individual transactions.

shoplazza billing transactions get --params '{"transaction_id":"123"}'

usage

Manage usage-based billing records.

shoplazza billing usage create --data @usage.json
shoplazza billing usage get --params '{"usage_id":"123"}'
shoplazza billing usage list