Apply gift card to cart
documentedApplies a gift card code to the current cart.
POST /api/v2/storefront/cart/apply_gift_cardCartno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://demo.spreecommerce.org/api/v2/storefront/cart/apply_gift_card" \
-X POST \
-H "Content-Type: application/vnd.api+json" \
-H "Accept: application/vnd.api+json" \
-H "X-Spree-Order-Token: {{SPREECOMMERCE_API_KEY}}" \
-d '{"gift_card_code": "{{$gift_card_code}}"}'