Skip to content

Commit 381a959

Browse files
PROMO-1257: Added optional delimiter field for bulk coupon api /v3/promotions/{promotion id}/codegen
1 parent 808e06c commit 381a959

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
@@ -332,6 +332,12 @@ paths:
332332
description: 'The fixed text that will appear at the end of every generated coupon code. Only capital letters, numbers, underscores and hyphens are allowed.'
333333
example: POST
334334
maxLength: 20
335+
delimiter:
336+
pattern: '[_-]'
337+
type: string
338+
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.'
339+
example: _
340+
maxLength: 1
335341
code_length:
336342
type: integer
337343
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)