Skip to content

Conversation

@YevenLourance
Copy link
Contributor

@YevenLourance YevenLourance commented Jan 15, 2026

PROMO-1393

What changed?

add new field when get promotions
number_of_codes and number_of_used_codes

Release notes draft

Screenshot 2026-01-15 at 1 18 18 pm

Anything else?

ping {names}

Comment on lines +634 to +635
- number_of_codes
- number_of_used_codes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the intention is to have those fields as optional, and we can query them in adhoc with "include" parameter, somethingg like "GET /promotions?include=number_of_codes,number_of_used_codes"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably we can do the same for those number_of_codes and number_of_used_codes, make it available for internal usage for now ?

Copy link
Contributor

@donald-nguyen-bc donald-nguyen-bc Jan 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if so, probably we don't need to update this swagger doc.

Copy link
Contributor Author

@YevenLourance YevenLourance Jan 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i will implement as GET /promotions?include=number_of_codes,number_of_used_codes then
do we want to hide if promotion is automatic or maybe number of codes are 0 for automatic promotions?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably we can return 0 for automatic promotions, similar to how we are handling the codes and multiple_codes ?

image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks ! @donald-nguyen-bc ill try with that in my implementation 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants