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.
09-30-2014 08:46 AM
You have to follow the exact sequence. do you have the subscriptionID before subscription?
09-30-2014 09:01 AM
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
09-30-2014 09:21 AM
refid is in <xs:extension base="anet:ANetApiRequest">
09-30-2014 12:09 PM
Sorry, it was my mistake the subscriptionId was not set correctly so it was not sent as part of ARBUpdateSubscriptionRequest.
Thanks for helping :)
10-01-2014 04:44 AM