Docs

Discount codes are now case-insensitive

Customers can now enter discount codes with any casing, for example `blackfriday`, `BLACKFRIDAY`, or `blackFriday`. The Paddle API no longer treats codes against the discount entity as case-sensitive.

Product area

  • Catalog

Tooling

  • API
  • Paddle.js
  • Platform

Released

October 14, 2024

Status

Released

API version

Version 1

What's new?

We've updated the Paddle platform so that discount codes are case-insensitive across the Paddle API and Paddle.js.

How it works

When creating a discount, you can set a discount code to let customers apply a discount at checkout easily.

Previously, discount codes were case-sensitive. For example, blackfriday, BLACKFRIDAY, and blackFriday were interpreted as different discount codes when creating a discount and when entered at checkout.

With this update, discount codes are now case-insensitive. This means discounts are applied when the correct code is entered, regardless of the casing. This makes for a better customer experience and reduces the likelihood of checkout abandonment.

Next steps

This change is available now in version 1 of the Paddle API and in the latest version of Paddle.js. You don't need to do anything to get the latest version of Paddle.js — we serve the latest version automatically.

You shouldn't need to make any changes to your implementation. A small number of Paddle platform users had discounts that shared the same code with different casing. We reached out to those users directly.

Summary of changes

Entity Field Change Type
Discount discount.code ~ Updated Field
Codes must be unique,
Paddle.Checkout.open() discountCode ~ Updated Field
Case not checked when applying a discount.
Paddle.Checkout.updateCheckout() discountCode ~ Updated Field
Case not checked when applying a discount.

Was this page helpful?