merchant-accounts creation with restful api

ravitejach
Contributor
Contributor

while creating marchant using angular js ,we are getting below error.please help me

 

error : 

  1. debug_id:"fb435045b9a38"
  2. message:"Caller is not authorized to access this resource"
  3. name:"AUTHORIZATION_ERROR"message :

$http({
url: 'https://api.sandbox.paypal.com/v1/customer/partners/merchant-accounts',
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer ' + accessKey,
'Accept-Language': 'en_US',
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET, POST, PUT',
'Access-Control-Allow-Headers': 'x-requested-with, Content-Type, origin, authorization, accept, client-security-token'
},
contentType: 'application/json',
data:inputdata

}).then(function mySuccess(response) {

var res = response.data;

}, function myError(response) {

var res1 = response.data;
});

Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

MTS_Justin
Moderator
Moderator
Hi @elitu

I've replied to your request in the separate post you created

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

View solution in original post

Login to Me Too
3 REPLIES 3

MTS_Justin
Moderator
Moderator
Hi @ravitejach

Please tell me the email address for the sandbox account submitting this request and I'll review the account

Was my post helpful? If so, please give me a kudos!
Login to Me Too

elitu
Contributor
Contributor

Hi,

I'm struggeling with exact same issue, your help will be appriciated.

Login to Me Too
Solved

MTS_Justin
Moderator
Moderator
Hi @elitu

I've replied to your request in the separate post you created

Was my post helpful? If so, please give me a kudos!
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.