Filter by timeStamp no longer working on credit account API with giftCard=true

When making this request:

GET /API/Account/XXXXXX/CreditAccount.json?limit=100&offset=0&archived=true&orderby=timeStamp&orderby_desc=0&load_relations=%5B%22Contact%22%2C%22WithdrawalPayments%22%5D&giftCard=true&timeStamp=%3E%2C2021-08-20T04%3A12%3A13%2B00%3A00

I am getting the following response:

{"@attributes":{"count":"3365","offset":"0","limit":"100"},"CreditAccount":[{"creditAccountID":"1523","name":"Gift Card","code":"XXXXXXXXXXX","creditLimit":"0","description":"Imported from previous POS using Channels Import Tools","giftCard":"true","archived":"false","timeStamp":"2021-08-20T04:11:54+00:00","contactID":"0","customerID":"103475","balance":"-25"}, ... (more records follow)

As you can see the timeStamp is not within the period I am filtering. This was working properly until I added giftCard=true after the recent API change. I can confirm that removing giftCard=true causes this to work properly again.

1 comment

Sign In or Register to comment.