Create a gift card
Issues a gift card scoped to the current store. The code is
auto-generated when omitted. currency defaults to the store’s
configured currency. Pass user_id (prefixed ID) to attach the
card to a specific customer.
Required scope: write_gift_cards (for API-key authentication).
POST
Spree Admin SDK
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Body
application/json
Decimal amount, greater than zero.
Example:
"25.00"
ISO 4217 currency code. Defaults to the store currency.
Example:
"USD"
Optional caller-supplied code. Auto-generated when omitted.
Example:
"WELCOME50"
ISO 8601 date.
Example:
"2030-12-31"
Optional customer prefixed ID.
Example:
"cus_UkLWZg9DAJ"
Response
gift card created
Spree Admin SDK

