TheShop
  • Home
    • TheShop: Headless e-commerce platform with API-first approach
  • GETTING STARTED
    • Quickstart guide
  • frontstore
    • Introduction
      • Types of frontstores
    • API
      • Frontstore API
      • Template customization
    • API client for Laravel
      • Example: Find products by keyword and include sold out products with available attributes to filter
    • Basic selling flow
      • Homepage
      • Product list
      • Product detail
        • Availability and count info in products
        • Add products to cart
        • Variants tree
      • Shopping cart (Basket)
        • Shopping cart list
        • Voucher (discount code)
      • Shipping and payment
      • Checkout
        • Completing order – payment flow
    • Contact form
    • Headless CMS
    • Caching
    • Known Issues
    • FAQ
Powered by GitBook
On this page
  1. frontstore
  2. Basic selling flow
  3. Shopping cart (Basket)

Voucher (discount code)

PreviousShopping cart listNextShipping and payment

Last updated 2 years ago

The voucher (discount code) feature is a promotional tool that allows customers to enter a code during the checkout in their Shopping cart to receive a discount on their purchase.

When adding a voucher to the Shopping cart, check if it's available.

checks if a voucher is available.

This API call