Issues a batch of gift cards in a single call. The server generates
codes_count cards inline for small batches (configurable via
Spree.config.gift_card_batch_web_limit, default 500) or enqueues
a background job for larger ones. Each card’s code is the batch
prefix followed by random hex.
Required scope: write_gift_cards (for API-key authentication).
Documentation Index
Fetch the complete documentation index at: https://spreecommerce.org/docs/llms.txt
Use this file to discover all available pages before exploring further.
Secret API key for admin access
JWT token for admin user authentication
Lowercased and prepended to every generated code.
"WELCOME"
Decimal amount per card, greater than zero.
"25.00"
Number of cards to generate. Capped at gift_card_batch_limit.
100
ISO 4217 currency code. Defaults to the store currency.
"USD"
"2030-12-31"