Storeware Docs
Command reference

function sample

Print a sample input for a kind of checkout function, as JSON.

npx @storeware/cli function sample <kind>

Arguments

ArgumentRequiredWhat it is
<kind>YesThe kind: discount, delivery_rates, payment_methods or cart_validation.

Examples

npx @storeware/cli function sample discount
npx @storeware/cli function sample cart_validation

More in Checkout functions. Every command also takes the flags on the reference page.

On this page