Live Payout API throws 403 on POST action while Payouts API is available. DebugID - 73045ffec3e4e.

nzwrth
Contributor
Contributor

Good evening, dear community.

Primarily, i need to say that i use Paypal.NET-SDK.

Every time i POST /api Payout call, i got 403 ERROR with nearly next response : 

 

 

{
  "name": "AUTHORIZATION_ERROR",
  "message": "Authorization error occurred.",
  "debug_id": "73045ffec3e4e",
  "information_link": "<a href="https://developer.paypal.com/docs/api/payments.payouts-batch/#errors" target="_blank">https://developer.paypal.com/docs/api/payments.payouts-batch/#errors</a>",
  "links": []
}

 

 

Target request url is

 

 

<a href="https://api.paypal.com/v1/payments/payouts?sync_mode=False" target="_blank">https://api.paypal.com/v1/payments/payouts?sync_mode=False</a>

 

 

Called code contains nothing unusual, anyway it was working on SANDBOX environment:

 

 

public ... ExecutePayout(batch)
{
   var request = CreatePaypalPayoutBatchRequest(batch, emailSubject, note);
   var context = GetApiContext();
   var paypalBatch = PayPal.Api.Payout.Create(context, request, false);
   return await Task.FromResult(batch);
}

 

 

With getting context looks like: 

 

 

GetApiContext() {
	var properties = PayPal.Api.ConfigManager.Instance.GetProperties();
	var accessToken = new PayPal.Api.OAuthTokenCredential(properties).GetAccessToken();
	var apiContext = new PayPal.Api.APIContext(accessToken);
	apiContext.Config = properties;
	
	// Got this situation on sandbox, but all's working there
	if (apiContext.HTTPHeaders == null)
		apiContext.HTTPHeaders = new Dictionary<string, string>();
	
	return apiContext;
}

 

 

We created LIVE Application and account has Payouts API grant.

In LIVE APP SETTINGS we checked next options : 

- Accept Payments, Invoicing

- Payouts

- Customer disputes

- Connect with PayPal (With next data chosen: Full name, Email, Account verification status) (Payout always sent by email address).

- Transaction search

 

May we miss something or may we miss our primary customer (owner of primary PayPal account) may miss some settings in non-developer settings?

Does anyone stuck in same situation while going to production mode ?

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.