"authentication failure" using REST Api

BerntR
Member
Member

I have made some code to download stuff, using REST API. The end purpose is to download transactions for accounting purposes.

 

But I am getting "authentication failure" no matter what.

 

I am using the simplest example I could find in the documents: The text I send looks like this url format:

 

curl -v -X GET https://api-m.paypal.com/v1/invoicing/invoices?page=3&page_size=4&total_count_required=true -H "Content-Type: application/json" -H "Authorization: Bearer A21AAMcX07joL_YI0rNrWbi4dURLceJ8xKhe0KgopuXl60owP5XzvfjPKN8pAAu9i6WC195dlAG5xM8J72irOkgOfHGJnj4iw".

 

And the access token is OK, it comes back with green light. I am beginning to wonder if there is a severe limit to my account since I'm doing this from overseas. It is a business account, btw.

Login to Me Too
1 REPLY 1

MTS_Chiranjeevi
Moderator
Moderator

Good day @BerntR,

 

Thank you for posting to the PayPal community.

 

Use the Transaction Search API to get the history of transactions for a PayPal account.

 

To use the API on behalf of third parties, you must be part of the PayPal partner network. Reach out to your partner manager for the next steps. To enroll in the partner program, see Partner with PayPal. For more information about the API, see the Transaction Search API Integration Guide.

 

To use the API on behalf of third parties, you must be part of the PayPal partner network. Please enroll in the partner program and make sure to on-board that particular seller/merchant account and the seller must grant you permission to perform API operations on their behalf. 

 

https://developer.paypal.com/docs/multiparty/ 

 

https://developer.paypal.com/docs/multiparty/get-started/ 

 

https://developer.paypal.com/docs/multiparty/seller-onboarding/ 

 

For more information about the API, see the Transaction Search API Integration Guide.

 

If your still facing the issue, please create a MTS ticket via - https://www.paypal-support.com/s/?language=en_US with detailed error information. 

 

Sincerely,

Chiranjeevi

PayPal/Braintree MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.