menu
Channels
Team

How do i apply these advance filters in sdk. The following code is not working.

July 31, 2020 at 10:56pm

How do i apply these advance filters in sdk. The following code is not working.

July 31, 2020 at 10:56pm (Edited 2 months ago)
//[filters][active][conditions][$active]=true
How do i apply these advance filters using sdk. The following code is not working. Just i need to get Active Voucher list
$request = $this->client->vouchers->getList([ 'active'=>true ]); return $this->makeClientCallWithVoucherify($request); }

August 4, 2020 at 6:19am
Hi The SDK supports this endpoint, but we expect a flat structure or a string
$voucherify->vouchers->getList('[filters][active][conditions][$expired]=true');
$voucherify->vouchers->getList([ '[filters][active][conditions][$expired]' => "true" ]);
Edited
  • reply
  • like