-
Notifications
You must be signed in to change notification settings - Fork 48
PROMO-933 add bulk coupon code generation #970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
b2368fc
to
281881b
Compare
reference/promotions.v3.yml
Outdated
- batch_size | ||
type: object | ||
properties: | ||
prefix: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets add a minLength
, maxLength
and pattern
to this property.
reference/promotions.v3.yml
Outdated
type: string | ||
description: A prefix to add to the generated codes. | ||
example: 'PROMO' | ||
suffix: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here. A minLength
, maxLength
and pattern
could be helpful here
reference/promotions.v3.yml
Outdated
batch_size: | ||
type: integer | ||
description: The number of coupon codes to generate in each batch. The maximum value is 250. | ||
example: 5 | ||
max_uses: | ||
type: integer | ||
description: The maximum number of times each coupon code can be used. The default value is 0, which represents unlimited uses. | ||
example: 10 | ||
max_uses_per_customer: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can define a minimum
and maximum
for these values
reference/promotions.v3.yml
Outdated
example: 5 | ||
max_uses: | ||
type: integer | ||
description: The maximum number of times each coupon code can be used. The default value is 0, which represents unlimited uses. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Considering the use case for batch creation of codes would a default of 1
make more sense?
reference/promotions.v3.yml
Outdated
|
||
**Note:** | ||
* batch_size is limited to 250 codes per request for first version. If batch_size is not an integer or larger than 250, it will return a 400 error code. | ||
* The default rate limit for this endpoint is 40 concurrent requests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we start with small number first ?
* The default rate limit for this endpoint is 40 concurrent requests. | |
* The default rate limit for this endpoint is 10 concurrent requests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe lets just not expose what our concurrent limits are? Since these are dynamic, probably not very useful to add a hard number in the docs
64da408
to
05c6903
Compare
0aba0df
to
4c36f48
Compare
92348bd
to
f64b1fe
Compare
add bulk coupon code generation
add max and min length and change based on feedback
…e settings to response remove prefix and suffix and add more code settings to response change to capital letters
add bulk coupon code generation
PROMO-933
What changed?
Release notes draft
in progress
Anything else?
in progress
ping {names}