See also the ResourceCollection response object.

Returns a collection of CreditCard objects that expire between the specified dates.

Java
Calendar start = Calendar.getInstance();
start.set(2018, 0, 1);
Calendar end = Calendar.getInstance();
end.set(2018, 11, 30);

ResourceCollection<CreditCard> expiredCards = gateway.creditCard().expiringBetween(start, end);
Arguments
startDate required, string

The minimum expiration date of cards returned in the search (inclusive).

endDate required, string

The maximum expiration date of cards returned in the search (inclusive).