Bolt Developer

Welcome to the Bolt developer hub. You'll find comprehensive guides and documentation to help you start working with Bolt as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    Docs

5. Discount hook

By implementing discount hook, you can allow consumers to enter discount code within Bolt checkout modal. Bolt then calls your server to retrieve the details of discount.

{
  "type": "discounts.code.apply",
  "discount_code": "THISISCODE",
  "cart": {
    "order_reference": "123456789",
  },
  "customer_name": "John Smith",
  "customer_email": "test@example.com"
}
{
  "status": "success",
  "discount_code": "THISISCODE",
  "description": "Summer $20 off sale",
  "discount_type": "fixed_amount",
  "discount_amount": 2000
}

5. Discount hook


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.