CLICommands
promo-code
snug promo-code <COMMAND>Promo code generation, redemption, and entitlement locks.
Subcommands
| Command | What it does |
|---|---|
generate | Generate a batch of promo codes |
batch | Batch inspection |
redeem | Redeem a promo code |
stored-value | Stored-value operations |
lock | Create an intent-to-claim lock |
commit | Commit a previously created lock |
release | Release a previously created lock |
quarantine | Quarantine a batch |
resume | Resume a quarantined or paused batch |
archive | Archive a batch |
caps | Cap management |
redemptions | List redemptions for a batch |
Run snug promo-code <command> --help for that command's own options.
The global options apply everywhere.
Examples
snug promo-code generate --count 1000 --name spring_promo --reward '{"type":"account_credit","amount":25}'
snug promo-code batch get --batch-id <uuid>
snug promo-code batch list --page-size 10
snug promo-code batch export --batch-id <uuid>
snug promo-code redeem --code SPRING-7K9Q2M4P8X-VIP
snug promo-code redeem --code SPRING-7K9Q2M4P8X-VIP --idempotency-key checkout:ord_123
snug promo-code stored-value redeem --code GIFT-ABCD --amount 5
snug promo-code lock --code SPRING-7K9Q2M4P8X-VIP --ttl-seconds 300
snug promo-code commit --lock-id <lock> --commit-token <token>
snug promo-code release --lock-id <lock>
snug promo-code quarantine --batch-id <uuid> --reason suspected_leak
snug promo-code resume --batch-id <uuid> --note reviewed
snug promo-code archive --batch-id <uuid>
snug promo-code caps update --batch-id <uuid> --global 50000 --per-code 1
snug promo-code redemptions --batch-id <uuid> --status committedNext
- promo-code guide - what the service does and when to reach for it.
- CLI reference - global options, output modes, and exit codes.