Skip to content

Commit 2a2d7bb

Browse files
PROMO-1296 Added exclude_characters field for bulk coupon api /v3/promotions/{promotion id}/codegen
1 parent 92b93c6 commit 2a2d7bb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

reference/promotions.v3.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,12 @@ paths:
338338
description: 'An optional single character (_ or -) that will be placed between the prefix and the randomly generated code, and again between the randomly generated code and the suffix. It will only be applied if a valid prefix or suffix is present.'
339339
example: _
340340
maxLength: 1
341+
exclude_characters:
342+
pattern: '[A-Z0-9]'
343+
type: array
344+
description: 'An optional array of single length string elements to exclude from the generated coupon codes. Only capital letters and numbers are allowed. The default value is an empty array [].'
345+
example: ["1", "2", "3", "4", "5", "A", "B", "C", "D", "E"]
346+
maxLength: 26
341347
code_length:
342348
type: integer
343349
description: 'The length of the random string to be generated for each coupon code. The value must be between 6 and 16. The default length is 16. The total length of each generated coupon code is calculated as: `code_length` + length of `prefix` + length of `suffix`. The maximum total length of a coupon code is 50.'

0 commit comments

Comments
 (0)