Error in REST API v1 documentation for opportunities

Hi,
I am trying to get the opportunity stages via the API, but it keeps getting errors.

Here is the entrypoint i am using

It returns an error with message “Opportunity id must valid.”

I tried adding ?opportunity_id=3 but it does not work.

Could somebody help?

I tried the endpoint using Postman and it worked w/o any issues.

I wish I could tell you what was wrong, but I couldn’t replicate the error.

I used this endpoint:
https://api.infusionsoft.com/crm/rest/v1/opportunity/stage_pipeline

I would suggest minimizing your code to just the request like I did using Postman, and see if it works. Then you can start debugging your code to find what is negatively influencing it and causing the malformed request.

The endpoint you referenced is just a list endpoint the available stages. There is no filter for opportunity_id. I also checked for that error and it is not returned by the endpoint you linked. Can you double check the endpoint you are calling and maybe provide a sample request you are sending?