API User
Monday, April 12, 2021 - 22:44
When filtering with dateRange on the OrderHistory_v1 API i get a statusCode 400 returned. Other filters work fine for me and return expected results
I am using the following payload
{
"filters": {
"dateRange": [
"PAST_7_DAYS"
]
}
}
The errors i receive errors:
code: "EQX-171-1212"
"/filters/dateRange"
message: "instance value (%s) not found in enum (possible values: %s)"
"PAST_7_DAYS"
Thank you in advance
Hi there,
The dateRange values has to be passed as a key-value string instead as an array.
i.e
{
"filters": {
"dateRange": "PAST_7_DAYS"
}
}
Hope this helps!