Spree Admin SDK
List gift card batches
Returns the gift card batches issued by the current store. Each batch
groups the cards generated together for a campaign or bulk-issuance
— the cards themselves live under /admin/gift_cards and reference
the batch via gift_card_batch_id.
Required scope: read_gift_cards (for API-key authentication).
GET
Spree Admin SDK
Filters
Filter withq[<attribute>_<predicate>]=value, for example q[prefix_cont]=…. Send a list as q[<attribute>_in][]=a&q[<attribute>_in][]=b. How filters work.
Sort by:
created_at, id, prefix, updated_at. Prefix a field with - to sort descending.Authorizations
Secret API key for admin access
JWT token for admin user authentication
Headers
Bearer token for admin authentication
Query Parameters
Page number
Records per page
Attribute filters, as q[<attribute>_<predicate>]=value. See Filters above for the list.
Sort by field. Prefix with - for descending.

