Maximum length of redeem codes?

Hello,

When using the discountRedeemCodeBulkAdd mutation, what is the maximum length (in characters) of a single redeem code? Unfortunately, we couldn’t find this documented anywhere.

Thanks,

Tobe

Hi @tobebuilds

I’m digging into this now - are you seeing this fail if you hit a certain character number (eg: 20)?

Hi Liam, we are not seeing it fail, but the codes seem to be truncated to 16 characters max.

Here is what the merchant told us:

What is the maximum possible length for the code?
By default, I see 10 characters, but if I increase it to, say, 15, I get codes with a maximum of > 11 characters after the code name.
For example: Discount name- followed by 11 characters.

Is this correct? Is 11 the maximum number of characters the system can handle after the code name? Or max. 10 is better for a high number of random codes?

In this message, they were talking about a feature in our app that uses the discountRedeemCodeBulkAdd API to add new redeem codes to existing discounts. It appends random characters to the base discount code, for example: EXAMPLE-1A2H3F, EXAMPLE-D2JA2FL, etc. So the length of each individual code depends on the base code’s length and the number of random characters the merchant has chosen to generate.

Hence, our question: Is there a maximum length for redeem codes?

Thanks in advance,

Tobe

Thanks for sharing this context @tobebuilds - checking internally on this now!