cancel
Showing results for 
Search instead for 
Did you mean: 

ARBGetSubscriptionListRequest doesn't accept paging parameter.

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'.
dirigeant
Member
2 REPLIES 2
RaynorC1emen7
Expert

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?