Forum Discussion
API_User
5 years agoEquinix Employee
Unable to filter using "dateRange" for OrderHistory_v1
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 are:
code: "EQX-171-1212"
path: "/filters/dateRange"
message: "instance value (%s) not found in enum (possible values: %s) PAST_7_DAYS"
Thank you in advance
1 Reply
- API_UserEquinix Employee
Hi there,
The dateRange values has to be passed as a key-value string instead as an array.
{ "filters": { "dateRange": "PAST_7_DAYS" } }
Hope this helps!
Related Content
- 7 years ago
Recent Discussions
Featured Places
Discussions
Engage with industry experts, share insights, ask questions, and grow your network.Ideas
We're listening! Submit your ideas to shape the future of Equinix!Groups
Ready to collaborate? Join a Group or upcoming beta program.What's New
Stay ahead with the latest from Equinix. Discover new product announcements, insightful tutorials, and practical use cases.Events
Your Guide to Upcoming Events - Online, Hybrid, and In-Person!