CLICommands

promo-code

snug promo-code <COMMAND>

Promo code generation, redemption, and entitlement locks.

Subcommands

CommandWhat it does
generateGenerate a batch of promo codes
batchBatch inspection
redeemRedeem a promo code
stored-valueStored-value operations
lockCreate an intent-to-claim lock
commitCommit a previously created lock
releaseRelease a previously created lock
quarantineQuarantine a batch
resumeResume a quarantined or paused batch
archiveArchive a batch
capsCap management
redemptionsList 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 committed

Next

On this page