Problem when filtering by status in searchAccountHistory

Any issue about Cyclos 4 scripting and Webservices

Moderators: hugo, alexandre, rmvanarkel

Post Reply
Xebax
Posts: 15
Joined: Fri Nov 16, 2012 1:19 pm

Problem when filtering by status in searchAccountHistory

Post by Xebax » Fri Jan 19, 2018 8:01 pm

Hi,

I'm using Cyclos 4.6 and I have a problem with searchAccountHistory. What i want to achieve is: get all the payments from the account history that have payment status 1 = value 1 AND payment status 2 = value 2.
I use the WS API and the parameters I send are like this:

Code: Select all

query = {
    'account': bank_account_id,
    'orderBy': 'DATE_DESC',
    'pageSize': 1000,  # maximum pageSize: 1000
    'currentPage': 0,
    'statuses': [
        'value1',
        'value2',
    ]
}
This query returns all the payments that have payment status 1 = value 1 OR payment status 2 = value 2 but what I want is an AND.

There is no comment in the API so it's difficult to know the exact meaning of the 'statuses' parameter:
https://documentation.cyclos.org/4.6/ws ... l#STATUSES

Is this a bug or did I misunderstand the API?

Best regards,
Xebax

Post Reply