Skip to content

[Bug Report: API Field Missing] Opportunity Search Filters Return 401 #74

Description

@i-am-rad

🐛 Describe the Bug

If attempting to use new opportunity search filters it gives us this error:

{
    "statusCode": 401,
    "message": "This route is not yet supported by the IAM Service. Please update your IAM config."
}

📍 API Endpoint

/opportunities/search

✅ Expected Behavior

Let us use these new filters. Give us docs. We need this ability asap.

💻 Screenshots or Code Samples

Example searches:

{
    "sort": [
        {
            "field": "date_added",
            "direction": "desc"
        }
    ],
    "query": "",
    "locationId": "20LBRTqdZ9RABw4peezb",
    "additionalDetails": {
        "notes": true,
        "tasks": true,
        "calendarEvents": true,
        "unReadConversations": true
    },
    "filters": [
        {
            "field": "pipeline_id",
            "operator": "eq",
            "value": "Xw9kVyznsaK4uUJuf6yA"
        },
        {
            "field": "status",
            "operator": "eq",
            "value": [
                "open"
            ]
        },
        {
            "field": "custom_fields.test123",
            "operator": "eq",
            "value": "123"
        },
        {
            "field": "pipeline_stage_id",
            "operator": "eq",
            "value": "8a276577-58c5-45dc-946b-55521527641f"
        }
    ],
    "limit": 20,
    "page": 1,
    "aggregations": [
        {
            "name": "pipeline_stages",
            "type": "terms",
            "field": "pipeline_stage_id",
            "size": 100,
            "aggregations": [
                {
                    "name": "revenues",
                    "type": "sum",
                    "field": "monetary_value"
                }
            ]
        }
    ]
}

Product Area

opportunities

🧠 Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-missing-api-fieldSomething isn't working in the Highlevel API or fields are missing in the API Endpoints.opportunitiesprocessed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions