Skip to content

Commit 391ee3e

Browse files
PROMO-1256: Added prefix, suffix and code_length fields for bulk coupon api /v3/promotions/{promotion id}/codegen
1 parent 0d52991 commit 391ee3e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

reference/promotions.v3.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,24 @@ paths:
320320
example: 5
321321
minimum: 0
322322
maximum: 100000
323+
prefix:
324+
pattern: '[A-Z0-9_-]'
325+
type: string
326+
description: 'The fixed text or characters that will appear at the beginning of every generated coupon code. Only capital letters, numbers, underscores and hyphens are allowed.'
327+
example: PRE-
328+
maxLength: 20
329+
suffix:
330+
pattern: '[A-Z0-9_-]'
331+
type: string
332+
description: 'The fixed text or characters that will appear at the end of every generated coupon code. Only capital letters, numbers, underscores and hyphens are allowed.'
333+
example: _POST
334+
maxLength: 20
335+
code_length:
336+
type: integer
337+
description: 'The length of the random string to be generated for each coupon code. The value must be between 6 and 20. 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.'
338+
example: 10
339+
minimum: 6
340+
maximum: 20
323341
required: true
324342
responses:
325343
'201':

0 commit comments

Comments
 (0)