Dear Cyclos team,
Currently, i am using Cyclos\TransactionService (PHP), function search($query) to search transactions. I using direction "DEDIT", it's ok, but when i've changed direction to "CREDIT", It does not return data, even though there was a transaction
Pls help, Thanks!
About API search transaction
Moderators: hugo, alexandre, rmvanarkel
Re: About API search transaction
I've just tested here, and both {"direction": "CREDIT"} and {"direction": "DEBIT"} works as expected.
Are you sure you're using the correct strings? Can you send the full query object?
Are you sure you're using the correct strings? Can you send the full query object?
Luis Fernando Planella Gonzalez
Cyclos development team
Cyclos development team
Re: About API search transaction
Here's my code:
This code return list transations DEBIT for me, but when i've changed 'DEBIT' to 'CREDIT', it return empty list (i have data for Credit).
Note: when i delete 'direction', it's still return list DEBIT
Thanks for your reply!
Code: Select all
$params = new stdclass();
$params->owner = $user;
$params->direction = 'DEBIT';
$data = $transactionService->search($params);
Note: when i delete 'direction', it's still return list DEBIT
Thanks for your reply!
Re: About API search transaction
As the transaction is not returned even when no direction filter is set, probably it is excluded by another filter, such as group visibility for admins.
Luis Fernando Planella Gonzalez
Cyclos development team
Cyclos development team