cancel
Showing results for 
Search instead for 
Did you mean: 

Who Me Too'd this topic

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
Who Me Too'd this topic