- My goal: Connect to the PayPal API so I can pull revenue reports.
- Issue: Authentication is failing.
- Steps I've taken to troubleshoot: Confirmed correct client_ID and client secret, tried adding and removing scope, tried switching to custom auth, tried authentication/bearer in call vs in resource setup, tried a different API endpoint and simpler request, troubleshooted with Claude. Nothing seeming to work.
Error when attempting to call the API:
{"data":null,"error":{"statusCode":400,"error":"Bad Request","message":"{"error":"invalid_token","error_description":"Token signature verification failed"}","data":{"error":"invalid_token","error_description":"Token signature verification failed"},"metadata":{"request":{"url":"https://api.sandbox.paypal.com/v1/reporting/transactions?end_date=2025-07-03T06%3A59%3A59.999Z&start_date=2025-07-02T07%3A00%3A00.000Z","method":"GET","body":null,"headers":{"User-Agent":"Retool/2.0 (+https://docs.tryretool.com/docs/apis)","Authorization":"---sanitized---","ot-baggage-requestId":"undefined","x-datadog-trace-id":"7356369474408944248","x-datadog-parent-id":"6816127518841186079","x-datadog-sampling-priority":"0","x-datadog-tags":"_dd.p.tid=6866f93a00000000,_dd.p.dm=-1","traceparent":"00-6866f93a000000006617130faeac1278-5e97bfdd704b271f-00","tracestate":"dd=t.tid:6866f93a00000000;t.dm:-1;s:0;p:5e97bfdd704b271f","X-Retool-Forwarded-For":"35.90.103.132"}},"headers":{"content-type":["application/json"],"content-length":["83"],"connection":["keep-alive"],"date":["Thu, 03 Jul 2025 21:42:20 GMT"],"access-control-expose-headers":["Server-Timing"],"cache-control":["max-age=0, no-cache, no-store, must-revalidate"],"paypal-debug-id":["7130faeac1278"],"server-timing":["traceparent;desc="00-00000000000000006617130faeac1278-a1b715defbcfc844-01""],"vary":["Accept-Encoding"],"http_x_pp_az_locator":["ccg18.slc"],"strict-transport-security":["max-age=31536000; includeSubDomains"]},"status":401,"statusText":"Unauthorized"},"authenticationStatus":"UNAUTHENTICATED"}}