cancel
Showing results for 
Search instead for 
Did you mean: 

Error with ARBUpdateSubscriptionRequest

Hi,

 

I'm trying to use the update Subscription functionality of the ARB API and I get this response using a sanbox account:

 

<?xml version="1.0" encoding="utf-8"?><ErrorResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"><messages><resultCode>Error</resultCode><message><code>E00003</code><text>The element 'ARBUpdateSubscriptionRequest' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'subscription' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'refId, subscriptionId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.</text></message></messages></ErrorResponse>

 

As I see it complains that the ARBUpdateSubscriptionRequest has an invalid child 'subscription' but if I check the XSD here:

https://api.authorize.net/xml/v1/schema/AnetApiSchema.xsd

I see that the ARBUpdateSubscriptionRequest has these two child elements: subscriptionId, subscription

but the error says about: List of possible elements expected: 'refId, subscriptionId'

 

<xs:element name="subscriptionId" type="anet:numericString"/><xs:element name="subscription" type="anet:ARBSubscriptionType"/>

 

 

So can you tell me what's wrong?

I'm using konakart (a java based shopping cart system)

 

Thanks,

Andras.

abalogh
Member
4 REPLIES 4

You have to follow the exact sequence. do you have the subscriptionID before subscription?

RaynorC1emen7
Expert

What is confusing why the error says " List of possible elements expected: 'refId, subscriptionId' "

There is no 'refId' in the schema here:

https://api.authorize.net/xml/v1/schema/AnetApiSchema.xsd

 

refid is in <xs:extension base="anet:ANetApiRequest">

Sorry, it was my mistake the subscriptionId was not set correctly so it was not sent as part of ARBUpdateSubscriptionRequest.

 

Thanks for helping :)