@Zahra, you suggest the API allows querying the Payments.
In the context of expectations-management: currently the API only allows to list the Payments, 100 entries at a time. Then the developer should iterate over this list and search for the Payment. This is by no means the same as "querying your payments";