External API Returning 400 Error

Hi,

I am building a new site for a client and looking into migrating their custom API plugin into the built in External API that the Pro Theme offers. The endpoint I am trying to work with processes fine when tested in Postman. However I am returning a 400 error when trying the same endpoint in Pro. Any help would be appreciated!

Hello @coverberg,

Thank you for the inquiry.

We may need to access the site in order to better understand the issue. Please provide the login details in the secure note.

Best regards.

Ok the login is added to the secure note

Thank you for the info.

It works when we change the endpoint to https://secure2.chambermaster.com/api/associations(xxxx)/events/details without the filter and orderby parameters, which means that the previous arguments for these parameters are invalid. Please check the API documentation for the correct parameter values.

https://integration.growthzone.com/chambermaster-memberzone-api/

The " /details" path is probably missing from the previous endpoint.

Thanks Ismael. I don’t understand why it would work in Postman but not the API tester through Pro… See screenshot of Postman

The API tester had a different URL then the Postman image you posted. You just need associations(2470)/events.

You can add the query args here in the attribute section too.

image

Have a great day.

Thanks Charlie, that worked great. This feature is super cool! Would there be a way to use an API feed to populate Archive templates that then display Members based on the categories from the API? Something like this:

https://secure2.chambermaster.com/api/associations(2470)/members/types --> Archive Template --> All Lodging Members

Hey @coverberg,

Please refer to the API documentation if there is one that returns all the lodging members. This is the only URI that I can find:

Thanks.