I send my request to ARBGetSubscriptionListRequest endpoint.
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 error below. If I don't add paging field, it works but it returns only 1 record.
E00003: The element 'ARBGetSubscriptionListRequest' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'paging' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'refId, searchType' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.
07-05-2016 06:24 AM
follow the exact order as in the API reference
07-05-2016 06:46 AM
Thanks for reply.
Yes, it works with exact order. I had to change my api code to keep ordering.
But it still doesn't work as expected. I returns only 1 record regardless of limit value in my request.
As far as I understand, it gets limit value. Because it returns empty if I set limit as 1000 and offset as 2. (there are 120 records in my dataset) But it still return 1 record.
Is there any way to get a bunch of results, or should I set limit as 1 and send 120 requests to get all records?
07-05-2016 07:18 AM