Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dirigeant/509acacbd03bffbec117d1e48551b08f to your computer and use it in GitHub Desktop.
Save dirigeant/509acacbd03bffbec117d1e48551b08f to your computer and use it in GitHub Desktop.
https://api.authorize.net/xml/v1/schema/AnetApiSchema.xsd
I send my request to ARBGetSubscriptionListRequest. According to XSD, searchType is required, paging and sorting are optional parameters.
This is the xml I send.
<ARBGetSubscriptionListRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>xx</name>
<transactionKey>xx</transactionKey>
</merchantAuthentication>
<paging>
<limit>10</limit>
</paging>
<searchType>subscriptionActive</searchType>
</ARBGetSubscriptionListRequest>
But API returns "List of possible elements expected: 'refId, searchType' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'." error. If I don't add paging field, it works.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment