Create Merchant Account Via REST API gives "Caller is not authorized to access this resource"

elitu
Contributor
Contributor

Hi,

I'm trying to create a merchant-acount as a part of the managed onboarding i'm trying to implement on my rails driven backend.

Sending (PaypalHelper::get_data is your sample data from the documentation) : 

app_data = RestClient.post "https://api.sandbox.paypal.com/v1/customer/partners/merchant-accounts",PaypalHelper::get_data,{'Content-Type'=>'application/json','Authorization' => "Bearer #{token.token}"}

Gives the following response:

{"name"=>"AUTHORIZATION_ERROR", "message"=>"Caller is not authorized to access this resource", "debug_id"=>"e99fb3863d586"}

My sandbox client_id that i'm using is : 

AYoNOFFlU-iUHH2_2uOOMOAOL_mCysHHQpkMu_TtgkekKq515Q32-qfuokWprr9sBfow1D_fsj4AuvBY

Please help.

Login to Me Too
13 REPLIES 13

MTS_Justin
Moderator
Moderator
Hello,

If you're still experiencing this issue, please share the "debug id" which is returned in the API response and I can review the logs for the attempt.

Thanks !

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

ashuwaliav
Member
Member

Hello braintree team, I want to test your braintree-marketplace feature which is https://developer.paypal.com/braintree/docs/guides/braintree-marketplace/onboarding
But as soon as I hit a request to create a new sub-merchant by this url "gateway.merchantAccount.create(..) " it always return an error "Master merchant account ID is invalid" Can you please help me out As I tried to supply my default and well as newely created merchant account named as ["testingaman","businessMain"] but no success. Can you point which section I am assuming wrong. Thanks in advance.
My sandbox merchant id is "4j8xbv9hmpjsv9fk"

Let me know if you need anything else from my side. Awaiting for you response.

Login to Me Too

MTS_Justin
Moderator
Moderator
Hello,

The Braintree marketplace is no longer available to new merchants, however if your looking for marketplace features, I'd recommend reviewing our Hyperwallet product.

Braintree ingegration docs for Hyperwallet : https://docs.hyperwallet.com/content/payout-experiences/v1/payout-experiences

Hyperwallet start developing documentation : https://docs.hyperwallet.com/content/developer-resources/v1/start-developing

Thanks !

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

swaphippo
Member
Member

I have the same issue; How did you resolved it?

Thanks in advance;

James

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.