Reply
Highlighted
Contributor
Posts: 20
Registered: ‎04-11-2017

ARBGetSubscriptionStatus for nonexisting subscriptionID

Hi,

 

While calling "ARBGetSubscriptionStatus" method of web service for any dummy subscriptionid eg: 123 and we call ARBGetSubscriptionStatus(123), it returns Messeage as "active" while there is no such subscriptionid existing in authorize.net.

 

What is the solution to weather a subscriptionid exists or not?

Highlighted
All Star
Posts: 699
Registered: ‎11-03-2016

Re: ARBGetSubscriptionStatus for nonexisting subscriptionID

[ Edited ]

Hi @ruchi_s,

 

Can you give an example request and response? In my testing, passing a subscription ID that doesn't match an existing one returns error E00035.

Highlighted
Contributor
Posts: 20
Registered: ‎04-11-2017

Re: ARBGetSubscriptionStatus for nonexisting subscriptionID

Hi @Aaron

 

Thanks for your response. Yeah I got this error code using following code:

 

response.messages.FirstOrDefault().code

 

But I was matching only status of response "response.status.ToString()" which returns "Active" for such non-existing subscriptions.

 

Actually I had a check in my code that if status of subscription is "Canceled" or "Suspended" then to create new subscription but status of non-existing subscriptions is returned as "Active". Now I had to add extra check of "response.messages.FirstOrDefault().code=="E00035".