New to the community? Welcome! Please read our Community Rules and Guidelines
Coming soon: We are giving your Community a new look.
i'm using “https://api-m.paypal.com/v1/oauth2/token” api to get access token
before today it workes fine, but now it keeping return 403 http code
and here is the raw return from request :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<h1>Error 403 Forbidden</h1>
<p>Forbidden</p>
<h3>Guru Mediation:</h3>
<p>Details: cache-qpg1255-QPG 163072300[Removed. Phone #s not permitted]span></p>
<hr>
<p>Varnish cache server</p>
</body>
</html>
Solved! Go to Solution.
thanks for you reply, I have solved this problem.
Seems I refresh token every 5 minutes is too frequently , so I changed it to refresh token 5 minutes before the token expires.
everything works fine for now
Hi @qp-96
You can use our "Apex tool" here to test out an API call for an access token. Be sure that your call mirrors what the Apex Tool is doing. If there is an issue with your call, there may be a firewall or issue with your server that could be blocking the request. Keep in mind, the Apex Tool is for Sandbox calls and not live calls.
I hope that helps!
-Aaron
thanks for you reply, I have solved this problem.
Seems I refresh token every 5 minutes is too frequently , so I changed it to refresh token 5 minutes before the token expires.
everything works fine for now
©1999-2023 PayPal, Inc. All rights reserved.