cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Production getCustomerPaymentProfileListRequest has hardcoded limit of 10?

So we ran our first production check of expiring credit cards earlier this week, and got back 10 results instead of the much larger number we expected.
 
The problem appears to be that the production auth.net function getCustomerPaymentProfileListResponse doesn't work as advertised.   While you can specify a paging limit between 1 and 1000, the production gateway appears to always use a paging limit of 10 in the response.

Calling this (sensitive data censored out):

<getCustomerPaymentProfileListRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
    <clientId>sdk-java-1.9.0</clientId>
    <searchType>cardsExpiringInMonth</searchType>
    <month>2017-04</month>
    <sorting>
        <orderBy>id</orderBy>
        <orderDescending>false</orderDescending>
    </sorting>
    <paging>
        <limit>1000</limit>
        <offset>1</offset>
    </paging>
</getCustomerPaymentProfileListRequest>


Returns this (sensitive data censored out):

<getCustomerPaymentProfileListResponse
    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>Ok</resultCode>
        <message>
            <code>I00001</code>
            <text>Successful.</text>
        </message>
    </messages>
    <totalNumInResultSet>79</totalNumInResultSet>
    <paymentProfiles>

[Only 10 PaymentProfile records]

    </paymentProfiles>
</getCustomerPaymentProfileListResponse>
I was able to work around the problem by continuing to fetch data with ever-increasing paging-offsets until I got a response back with no payment profiles.
 
mkienenb
Contributor
1 ACCEPTED SOLUTION

Accepted Solutions

Hello @mkienenb

 

I've sent this to our API team, but I would also suggest you also open a ticket with customer support and ask for escalation since this issue is occuring in your production account.

 

Richard

View solution in original post

RichardH
Administrator Administrator
Administrator
3 REPLIES 3

Hello @mkienenb

 

I've sent this to our API team, but I would also suggest you also open a ticket with customer support and ask for escalation since this issue is occuring in your production account.

 

Richard

RichardH
Administrator Administrator
Administrator

So the solution is that you sent this to the API team, but its 2019 and you still only send back 10 results.  Why is the documentation not updated?

TCCPGrimes01
Member

In 2020, I am having this issue as well. Any resolution?