Filtering of customer transfers

Hello, I faced with some issues using transfers api. Currently I can get all customers transfers, but only all, and with some simple filters like startDate, status etc. How Can i get all customer transfers but excluding fee transfers? Or How can I get only incoming customer transfers? Is there any additional ways to filter this api?

Hi @andrii,

Currently, the API doesn’t provide built-in filtering options to exclude fee transfers or to specifically retrieve only incoming customer transfers. However, you can achieve this by:

  1. Filter by date or status using the API – Use the available filters (such as startDate, status, etc.) to limit the set of transfers returned by the API.
  2. Post-process the data – Once you have the transfer data, you can perform additional filtering in your code:
    • Exclude fee transfers – Identify and filter out transfers that involve fees based on the presence of the “fees” object.
    • Identify incoming vs outgoing transfers – You can determine whether a transfer is incoming (credit) or outgoing (debit) by examining the source and destination funding sources.
      • If the source funding source is linked to the customer, it’s an outgoing transfer (debit).
      • If the destination funding source is linked to the customer, it’s an incoming transfer (credit).

By handling this filtering within your code, you can get the specific results you need.