Skip to main content

I am using Paypal’s API documentation here.

I’m trying to do a POST to the authentication endpoint to be granted an access token to use in future requests, however I keep getting a 401.

Here’s my setup in Zapier: 

Note: I did encode my CLIENT_ID:CLIENT_SECRET into Base64 (using https://www.base64encode.org/) prior to testing this call.

Not sure where I went wrong? 

 

Hi @ential 

Did you use a pipe | to separate the un/pw as indicated by the field description?

 


Hi there @Troy Tessalone 

I did use a pipe | to separate username and password, then encoded it but no luck…

Any other suggestions?


@ential 

Try w/o encoding the value.


I did try that without any luck.

I still get 401.

Have you tried this step yourself Troy to get an access token?


@ential 

Perhaps try using the production API endpoint.

 

Zapier will handle the encoding for Basic Auth

 


Hey @Troy Tessalone Correct me if I’m wrong, but I am using the production endpoint in my initial screenshot in my first post?

 


@ential 

I was able to generate a user token.

 

 “sandbox” is used for testing.

Check your PayPal Developer Portal.

 


What’s the production API endpoint then?

 

I couldn’t see that - but also wasn’t in Sandbox myself. Your screenshot above also has “sandbox” in it?


@ential 

In the PayPal API docs: https://developer.paypal.com/api/rest/requests/