Discount Name with Only Emojis – Odd Bug and Repeatable Edge Case

Hey everyone,

I came across a strange bug while working with discounts in Shopify.

It seems you cannot name a discount using only emojis — but there’s a bit of a loophole:

  • You can create a discount name with just one emoji once.
    • If you try to create another discount with the same single emoji (or even a different single emoji), you’ll get a unique error.
  • You can create a discount name with two emojis once.
    • Same story — any second attempt (with the same or different two emojis) fails with a different unique error.

What’s interesting is that it doesn’t seem to be an issue with mixed emoji + text names — only pure emoji names.

I tested this in both the admin UI and through the API, and the behavior is consistent.

Has anyone else run into this? Is this an intentional limitation or some sort of edge case in validation?

Would love to hear if others can reproduce it and whether there’s an official explanation from Shopify’s side.

Thanks,
Pius

1 Like

Hey @Pius_Osuji! Thanks for reporting this.

I was able to reproduce the behavior you described:

:white_check_mark: What Works:

  • Emoji titles (single or multiple emojis): Works fine
  • First emoji used as a discount code: Works perfectly
  • Mixed emoji + text codes: No issues
  • Regular alphanumeric codes: Works as expected

:cross_mark: What Breaks:

  • Any subsequent emoji codes after the first one: Fails with “Code must be unique”
  • This happens even with completely different emoji characters
  • The error occurs regardless of single vs multiple emojis in the code

I’ll take a look in to this closer and report back here what I find

Hey @Pius_Osuji ,

I have an update here. We have created an issue to look in to this further. Thanks so much for reporting this. I don’t have a timeline on a fix at this moment, but will try and update you here when there is.