Create a gift card batch
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).
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Body
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"

