Get information about all subscriptions using API

I try to use the first api method - https://resellers.pipedrive.com/api-doc/#/subscription/getSubscriptions.

When I was testing it on that page (using “Try it out”) all works as expected.
But when I make curl request in php, than get 401 (unauthorized) or 500 error.

And I noticed that it checks cookies. When I launch it on browser where cookies are set, then all ok. But like I said on server side it becomes problematic.

So main question, can I avoid using cookies?

I’m not really familiar with the Resellers API, but it’s not likely the issue has to do with cookies.

Could you share curl request you’re making and perhaps we can see something wrong there?

Thank you for reply. The problem was expired token. Now it works.

1 Like