You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting the error "Requested value 'EcommSpent' was not found", which is evidently because it is trying to parse the "condition_type" field. When I hit the API end point in PostMan I am getting this response:
(I have worked around this with my customer by changing the condition from "Amount Spent In Total > 0.01GBP" to "Average Amount Spent Per Order > 0.01GPB", I don't care about the segment with this condition at all, I just need to get the list of ALL segments in order to find the one I do care about, and for that they all need to parse.)
When retrieving list segments for one particular customer
ListSegment[] segments = (await mcm.ListSegments.GetAllAsync(listId, request)).ToArray();
I am getting the error "Requested value 'EcommSpent' was not found", which is evidently because it is trying to parse the "condition_type" field. When I hit the API end point in PostMan I am getting this response:
and "EcommSpent" does not seem to exist in the ConditionType enum.
In the ConditionType enum there is an entry
so I assume the problem is that "EcommSpent" does not match "EcommSpentAll".
Would an appropriate fix be to add EcommSpent to the enum? Or to rename EcommSpentAll to EcommSpent?
Either way, would you like me to submit a pull request with one change or the other, or would it be easier for you to do it as it's a 1 line change?
The text was updated successfully, but these errors were encountered: