Forum Discussion

API_User's avatar
API_User
Equinix Employee
5 years ago

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_User's avatar
    API_User
    Equinix 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!

Featured Places

  • Node avatar for Discussions

    Discussions

    Engage with industry experts, share insights, ask questions, and grow your network.
  • Node avatar for Ideas

    Ideas

    We're listening! Submit your ideas to shape the future of Equinix!
  • Node avatar for Groups

    Groups

    Ready to collaborate? Join a Group or upcoming beta program.
  • Node avatar for What's New

    What's New

    Stay ahead with the latest from Equinix. Discover new product announcements, insightful tutorials, and practical use cases.
  • Node avatar for Events

    Events

    Your Guide to Upcoming Events - Online, Hybrid, and In-Person!