API Call to retrieve all current and future booking by our internal member number

We assign a 4 digit member Id number (MEMID) to our members who then include the number as part of the booking title on our booking page. I am unable to return all current and future booking by MEMID, the API call succeeds with 200 but only returns NULL: lcUrl = “https://api.youcanbook.me/v1/accounts/” + lcYCBM_AccountId + “/bookings?from=” + lcFrom + “&to=” + lcTo + “&searchTextCriteria=title” + “&searchText=”+ pcMemId+ “&pageSize=50”

Would appreciate any help in getting this to work, thank you

Update: this worked for me: lcUrl = “https://api.youcanbook.me/v1/accounts/” + lcYCBM_AccountId + ;
“/bookings/query?direction=backwards&from=” + lcFrom + “&searchTextCriteria=form&searchText=” + lcMemid

@Michael nice solution. The Query endpoint will allow you to search for specific bookings as you have found out. You also can request up to 500 records at a time. If you are still having issues or have additional questions, let us know.