Read-only eligible-offers endpoint for badge campaigns (Smart! Weeks etc.) #13456
yousellpolska
started this conversation in
Suggestions
Replies: 1 comment
-
|
Thanks for your suggestion. If we decide to implement this solution, we will inform you about it in the thread. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Following up on #13424 - that issue is resolved (the documented
/sale/badgesendpoints work as expected). @PrzemyslawLukanowski suggested moving the remaining feature request here.Context
For AlleObnizka there is
GET /sale/alle-discount/{campaignId}/eligible-offers, which returns, per offer and before any submission: eligibility,requiredMerchantPrice, and the minimum guaranteed discount percentage. An integrator can therefore decide whether an offer qualifies and at what price without submitting anything.For badge campaigns (the
/sale/badgesfamily - Smart! Weeks and similar) there is no equivalent. The seller panel UI (Reklama i promowanie ? Kampanie i programy ? campaign ? Zglos oferty) clearly has this data - it shows, per offer, before submission:najnizsza cena oferty z ostatnich 30 dni- the omnibus MIN30d basecena promocyjna- the suggested promotional pricewarunki uczestnictwa- eligibility flag (meets / does not meet)limit na kupujacego- purchase limitNone of this is reachable from the API. The only workarounds are both poor:
rejectionReasons- this pollutes submission history with noise.Suggestion
A read-only endpoint, mirroring the AlleObnizka one:
Why it matters
This is the missing piece for any automated repricing / dynamic-pricing integration: to set a price programmatically you first need the campaign-eligible thresholds that the panel already computes and enforces. Today badge campaigns can be operated reliably only from the UI, not from the API - the submission endpoints exist, but the data needed to submit correctly does not.
Originally raised in #13424.
Beta Was this translation helpful? Give feedback.
All reactions