Live API .NET SDK AggregateException

jrowan
Contributor
Contributor

Occurs in a client's Live mode, but not Sandbox mode and not in our Live/Sandbox mode.

 

Currently waiting on access to the client's PayPal account to confirm settings.

 

Details of Error (Occurs when trying to create a billing agreement, creating/updating billing plans works fine):

AggregateException: One or more errors occurred. (The remote server returned an error: (400) Bad Request.)
System.Threading.Tasks.Task<TResult>.GetResultCore(bool waitCompletionNotification)
PayPal.Api.PayPalResource.ConfigureAndExecute<T>(APIContext apiContext, HttpMethod httpMethod, string resource, string payload, string endpoint, bool setAuthorizationHeader)


System.AggregateException: One or more errors occurred. (The remote server returned an error: (400) Bad Request.) ---> PayPal.HttpException: The remote server returned an error: (400) Bad Request.
at PayPal.Api.HttpConnection.Execute(String payLoad, HttpWebRequest httpRequest)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at PayPal.Api.PayPalResource.ConfigureAndExecute[T](APIContext apiContext, HttpMethod httpMethod, String resource, String payload, String endpoint, Boolean setAuthorizationHeader)
---> (Inner Exception #0) PayPal.HttpException: The remote server returned an error: (400) Bad Request.
at PayPal.Api.HttpConnection.Execute(String payLoad, HttpWebRequest httpRequest)<---

Login to Me Too
1 REPLY 1

jrowan
Contributor
Contributor

Apparently there is a PayPal error the details are:

"{\"name\":\"SUBSCRIPTION_UNMAPPED_ERROR\",\"message\":\"Account is restricted\",\"information_link\":\"https://developer.paypal.com/docs/api/payments.billing-agreements#errors\",\"debug_id\":\"13175f56f2..."}"

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.