Partner Referrals API call - AUTHORIZATION_ERROR

cata_para
Contributor
Contributor

Hello,

 

We are trying to set-up functionality for Merchants to Connect their pay-pal account on our online shop.

We're getting stuck on the Partner Referrals API call.

 

We did the following steps:

1) Created a business account

2) Create a Sandbox Business Account for testing.

3) Created an App and selected the Sandbox Bussines account made in step 2 for the app.

4) Make a Curl Request to Get an access token (to: https://api.sandbox.paypal.com/v1/oauth2/token)

   Received a response that looks like this (notice it has the accessToken):

       scope: "......"
       access_token : A21AAFpGKZ3iIjOcGp7uZl0eZcRMDAqHHTwqZz-H-r9h5kIm80U94dqHke0-FrINbVEjgE1HR4q8s3heNRZEc0JN0iqYz-rQg
       token_type : Bearer
       app_id : "............"
        expires_in: => 32400
         nonce: => 2019-07-10T12:00:41ZwHBSrNSZDMlDK59kHeZ6syYporh4FRRS6-am6tTD9jE

5) Make a curl request for Partner Referals (to: https://api.sandbox.paypal.com/v1/customer/partner-referrals). 

We get the following Response:

        name : AUTHORIZATION_ERROR
        message : Caller is not authorized to access this resource
        debug_id : '.....'

 

This is the data we send in the call:

 

$data = [
"customer_data" => [
"partner_specific_identifiers" => [
[
"type" => "TRACKING_ID",
"value" => "1506721845",
],
],
"customer_type" => 'MERCHANT'
],
"requested_capabilities" => [
[
"capability" => "API_INTEGRATION",
"api_integration_preference" => [
"partner_id" => THE SANDOX ACCOUNT ID from Step 2,
"rest_api_integration" => [
"integration_method" => "PAYPAL",
"integration_type" => "THIRD_PARTY"
],

"rest_third_party_details" => [
"partner_client_id" => the Sandbox app_id of the app we created at Step3,
"feature_list" => ["PAYMENT"]
]
],
]
],

"web_experience_preference" => [
"partner_logo_url" => Helper::getAbsoluteRelLogoImageUrl(),
"return_url" => env('HOME_URL'),
"action_renewal_url" => env('HOME_URL')
],

"collected_consents" => [
["type" => "SHARE_DATA_CONSENT", "granted" => true]
],

"products" => [
"EXPRESS_CHECKOUT"
]
];

We used the example from here: https://developer.paypal.com/docs/commerce-platform/demo/connected/onboarding/partner-referrals-fee-...


Questions:
1) Why are we not authorized for this call?
2) We found this snippet:
Send the sandbox client ID shown on the resulting page and the email used on your PayPal business account to your PayPal account manager to begin the vetting process.
You will receive confirmation from PayPal when your account has been registered for use with the Partners API, and you can then get an access token.
On this page: https://developer.paypal.com/docs/commerce-platform/onboarding/partner-onboarding/ .
Do we need to Contact someone to get authorization in our Sandbox environment? We did receive an access_token (like we mentioned in step4), can it be of a wrong type?

 

Thanks

Login to Me Too
19 REPLIES 19

not_here
Moderator
Moderator

Hi @cata_para,

 

To get access to those APIs you have to go through our Partner team. Please submit a request here and someone should reach out if your use case is approved.

 

Christina

 

Was my post helpful? If so, please give me a kudos!

  

Login to Me Too

py9342
Contributor
Contributor

What are approved use cases? Thanks!

Login to Me Too

ZakKe
Contributor
Contributor

@not_here 

 

Thanks for the reply. I've made a request to join the partner program and it was successful. I have normal access to https://www.paypal-partnerprogram.com, and when I login there, it says "My Partner Status Member".

 

Unfortunately, with a valid (non-expired) access-token, I still get the same AUTHORIZATION_ERROR as the Original Poster of this thread. Is there anything else I will have to do to get access? The documentation is unfortunately less than ideal for what the "vetting process" includes and neither PayPal chat nor PayPal phone support could help me with this.

 

Thanks in advance.

Login to Me Too

cata_para
Contributor
Contributor

Hey @not_here 

We registered for the PartnersProgram, and we are now a member. We get the same validation error with a valid access-token (basically exactly the same as @ZakKe mentioned in his post from Aug-03-2019 10:43 PM).

The question I have here, is who is not authorized: my paypal app that's part of my account that is now a member of PaypalPartners, or the Sandbox seller user I've made and try to integrate with?

Tomorrow I will try to use "URL onboarding " (https://developer.paypal.com/docs/commerce-platform/onboarding/upfront/#url-onboarding), and maybe be able to make this step in the onboarding process work.

Login to Me Too

py9342
Contributor
Contributor

@cata_para @not_here 

How were you able to register for the partners program? I have submitted this form a few times, the first time over a month and a half ago:

 

https://www.paypal.com/us/webapps/mpp/partner-program/contact-us

 

I have heard nothing back and gotten no confirmation or reference / ticket. What was the process like for you @cata_para ?

Login to Me Too

cata_para
Contributor
Contributor

Steps

1. Go to the link provided by @not_here  (https://www.paypal.com/us/webapps/mpp/partner-program/contact-us?ref=partners) and submit your request to become a partner.

 

2. Go to the link provided by @ZakKe  (https://www.paypal-partnerprogram.com) and add a few extra bits of info about your company (you'll be greeted by a form you cannot close if you are logged into the business account).

 

3. In a few hours we got a response we have been accepted.

 

 

Extra info

a) Between step 1 and 2 my Account Manager called PayPal and send emails, but to no avail. I tried the link in step2 after reading ZakKe's reply.

b) Make sure your account is a business account.

c) Our company is from the USA, maybe that makes a difference as well.

 

Login to Me Too

not_here
Moderator
Moderator

@cata_para 

 

Do you have a PayPal Account Manager? Meaning, do you have a PayPal employee assigned to help you with issues on your account? Also, when you signed up to be a partner, did you receive any communication about having an integration team assigned to help you integrate the PayPal Commerce Platform APIs. There are certain steps that need to be completed in order to be able to test in the sandbox.

 

Apologies that this is causing such pain, I continue to try and drive changes to ensure that this experience is improved.


Christina 

Login to Me Too

JCDL1
Contributor
Contributor

@not_here 

 

Hi Christina,


We have submitted our app and its been approved months ago but we have not been assigned an account manager in order to release the app and we are really in need of your help. Is there a way to privately message me to get the details.

 

Very much appreciate your help, its becoming quite an urgent request.

 

Thanks again


Daniel

Login to Me Too

not_here
Moderator
Moderator

Hi @JCDL1,

 

Could you please submit a ticket with our Merchant Technical Support team and provide me the case number here. I will do my best to track this through the channels. 


Thanks,
Christina 

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.