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

JCDL1
Contributor
Contributor

@not_here 

 

Hi Christina

 

Thank you, we have a few tickets but no solution:

 

_00D30LaY._5002E1UbvOM

 

_00D30LaY._5002E1TjbcD

 

KMM370888107V83284L0KM

 

8638303

 

06513108

 

Thank you very much for your help on this.


Daniel

Login to Me Too

JCDL1
Contributor
Contributor

@not_here 

 

Hi Christina

 

Thank you, we have a few tickets but no solution:

 

_00D30LaY._5002E1UbvOM

 

_00D30LaY._5002E1TjbcD

 

KMM370888107V83284L0KM

 

8638303

 

06513108

 

 

Look forward to your reply


Daniel

Login to Me Too

not_here
Moderator
Moderator

Thank you @JCDL1. I'll check on this for you. 


Christina 

Login to Me Too

JCDL1
Contributor
Contributor

Great thank you, just wondering if there was any next steps?

 

Thanks

Daniel

Login to Me Too

JCDL1
Contributor
Contributor

@not_here 

 

Please  let me know, its been  a while  and we havent got  any further.

 

Thank you

Login to Me Too

not_here
Moderator
Moderator

Hi @JCDL1,

 

I hate to ask you again, but can you please submit a new ticket through Merchant Technical Support and provide me the ticket number here. This will help me to communicate with you directly. 

Thanks,

Christina 

Login to Me Too

JCDL1
Contributor
Contributor

@not_here 

 

No problem , new ticket:  merchant technical support number: 06600793

Login to Me Too

burgalon
Member
Member

hi @not_here 

I'm having the same problem. Opened a ticket 06658729

Can you please adjust my account to allow usage of the Partners Commerce Platform?

 

I'm getting 403 trying to do curl -v -X POST https://api.sandbox.paypal.com/v2/customer/partner-referrals 

Login to Me Too

subhash_purohit
Contributor
Contributor

Hi @cata_para

Were you able to make it working? I am also trying to integrate partner referral functionality but got stuck in partner's credentials.

After onboarding seller, I am getting merchant id of seller in return, but for receiving payment I need seller's client id and secrete id and for this I am making this call:

curl -v -X GET https://api.sandbox.paypal.com/v1/customer/partners/seller_merchat_id/merchant-integrations/credenti... \
-H "Content-Type: application/json" \
-H "Authorization: Bearer My_access_code"

 

But I am getting:

{"name":"AUTHORIZATION_ERROR","message":"This API call is not authorized","debug_id":"a46206ea7952a"}

 

Do you have any idea about this problem?

 

Thanks in advance.

 

Login to Me Too

deeet
Contributor
Contributor

Hi @not_here,

 

we are having the same issue. We would like to take our Partner Referral integration to production. Could you help us move on as well? I just submitted a ticket with the case number 07231034. 

 

Any help would be much appreciated!

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.