#maxime1992
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- maxime1992, 4 days ago, 32 messages
- maxime1992, 4 days ago, 30 messages
I understand that, but not the other way around right?
So while looking for a promotion code from a coupon code, why would it give an array as a response? I thought that searching for a coupon code using a promotion code would only give 1 result or none, not potentially many
yes but you can filter on multiple other parameters that could return an array
that's why it's a unified response type
all /list APIs would return an array of objects even if while filtering there is only one result
Umh I think that makes sense, but from the documentation for the coupon code param it says "Only return promotion codes for this coupon."
So it's plural and I thought it'd be written singular for the description in that field (even though I understand that there would be an array with only 1 param).
Do you then confirm that when calling the promotion codes list endpoint and passing a coupon code, it'll only ever return 1 result?