PayPal REST API

Discuss RoboTask here
Post Reply
sarnusch
Posts: 35
Joined: Thu Apr 28, 2022 9:05 am

PayPal REST API

Post by sarnusch »

Good morning,
I am trying to implement PayPal REST API with the REST actions of RoboTask.
Unfortunately I already fail to generate the access token.
I am using the information from https://developer.paypal.com/api/rest/authentication/:
- Sandbox URL "https://api-m.sandbox.paypal.com/v1/oauth2/token"
- Method "POST"
- and in "Body" I am using the described information with real data -u "<CLIENT_ID>:<CLIENT_SECRET>" -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=client_credentials"

The result is the following error message:
Screenshot 2023-06-28 075722.png
Screenshot 2023-06-28 075722.png (9.52 KiB) Viewed 1594 times

I've already tried various settings, but I can't get it to work.
Is there an example somewhere of how REST has to be set up in RoboTask or can you give me a hint how the setup has to be?

Thanks in advance!
sarnusch
Posts: 35
Joined: Thu Apr 28, 2022 9:05 am

Re: PayPal REST API

Post by sarnusch »

I could solve my problem with the following settings:

Screenshot 2023-06-28 155145.png
Screenshot 2023-06-28 155145.png (16.61 KiB) Viewed 1590 times
Screenshot 2023-06-28 155139.png
Screenshot 2023-06-28 155139.png (12.14 KiB) Viewed 1590 times
Screenshot 2023-06-28 155132.png
Screenshot 2023-06-28 155132.png (20.51 KiB) Viewed 1590 times

With these settings I am getting a response from PayPal.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: PayPal REST API

Post by Oleg »

- and in "Body" I am using the described information with real data -u "<CLIENT_ID>:<CLIENT_SECRET>" -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=client_credentials"
-u -H and -d are a command line parameters (commands) of CURL.EXE system utility
Oleg Yershov
Post Reply