# Search payments by card Fingerprint

**URL:** <https://developer.squareup.com/forums/t/search-payments-by-card-fingerprint/9983>\
**Category:** Questions\
**Created:** [July 11, 2023, 8:50am UTC](https://developer.squareup.com/forums/t/search-payments-by-card-fingerprint/9983 "2023-07-11T08:50:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JackVaga](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@JackVaga](https://developer.squareup.com/forums/u/JackVaga)\
**Post date:** [July 11, 2023, 8:50am UTC](https://developer.squareup.com/forums/t/search-payments-by-card-fingerprint/9983/1 "2023-07-11T08:50:35Z")

</div>

Hello,

Is there a way to filter payments or orders by card fingerprint using the API?

Alternatively, is there a way I can easily export all of our payments in JSON or CSV format that will include card fingerprint?

Thanks,  
Jack

---

<div class="post-metadata">

**Author:** ![JackVaga](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@JackVaga](https://developer.squareup.com/forums/u/JackVaga)\
**Post date:** [July 11, 2023, 8:58am UTC](https://developer.squareup.com/forums/t/search-payments-by-card-fingerprint/9983/2 "2023-07-11T08:58:46Z")

</div>

I can write a script to get this using the list payments endpoint but it’d be a tonne of requests and I was hoping for a better way to do it.

We have over 1 million payments on our account. so it’d take a while 😕

---

<div class="post-metadata">

**Author:** ![rhtservicesllc](https://avatars.discourse-cdn.com/v4/letter/r/50afbb/32.png) [@rhtservicesllc](https://developer.squareup.com/forums/u/rhtservicesllc)\
**Post date:** [July 11, 2023, 12:56pm UTC](https://developer.squareup.com/forums/t/search-payments-by-card-fingerprint/9983/3 "2023-07-11T12:56:21Z")

</div>

Based on the documentation, you can do some filtering based on the last 4 digits of the card number, card type, or other criteria used for payments.

> **[GET /v2/payments - Square API Reference](https://developer.squareup.com/reference/square/payments-api/list-payments)**
>
> Retrieves a list of payments taken by the account making the request.

Given that there is a limit of 100 records that can be returned, you’ll want to have a script that can do this processing for you.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [July 11, 2023, 1:20pm UTC](https://developer.squareup.com/forums/t/search-payments-by-card-fingerprint/9983/4 "2023-07-11T13:20:04Z")

</div>

Currently, there isn’t a filter by card fingerprint with the Payments API. We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team. 🙂

---

<div class="post-metadata">

**Author:** ![JackVaga](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@JackVaga](https://developer.squareup.com/forums/u/JackVaga)\
**Post date:** [July 11, 2023, 1:48pm UTC](https://developer.squareup.com/forums/t/search-payments-by-card-fingerprint/9983/5 "2023-07-11T13:48:49Z")

</div>

Ok thanks, I’m looking at the alternative which is to request all payments via the list payments endpoint.

This will equate to around 11,000 requests. What’s the best frequency to use for this, will 2 per second be ok?

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [July 11, 2023, 2:06pm UTC](https://developer.squareup.com/forums/t/search-payments-by-card-fingerprint/9983/6 "2023-07-11T14:06:23Z")

</div>

That sounds good. If you do run into any `429s` we do have rate limits but we don’t document the limits. We encourage you to handle the limit gracefully by building a retry mechanism. This mechanism should have an exponential backoff schedule to reduce requests when volume is necessary. Also some randomness wouldn’t hurt to avoid a [thundering herd effect](https://en.wikipedia.org/wiki/Thundering_herd_problem). 🙂
