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

**URL:** <https://forum.youcanbook.me/t/api-call-to-retrieve-all-current-and-future-booking-by-our-internal-member-number/4306>\
**Category:** API\
**Created:** [November 21, 2025, 6:00pm UTC](https://forum.youcanbook.me/t/api-call-to-retrieve-all-current-and-future-booking-by-our-internal-member-number/4306 "2025-11-21T18:00:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@Michael](https://forum.youcanbook.me/u/Michael)\
**Post date:** [November 21, 2025, 6:00pm UTC](https://forum.youcanbook.me/t/api-call-to-retrieve-all-current-and-future-booking-by-our-internal-member-number/4306/1 "2025-11-21T18:00:15Z")

</div>

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/”](https://api.youcanbook.me/v1/accounts/%E2%80%9D) + lcYCBM\_AccountId + “/bookings?from=” + lcFrom + “&to=” + lcTo + “&searchTextCriteria=title” + “&searchText=”+ pcMemId+ “&pageSize=50”

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

---

<div class="post-metadata">

**Author:** ![Michael](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@Michael](https://forum.youcanbook.me/u/Michael)\
**Post date:** [November 22, 2025, 2:28pm UTC](https://forum.youcanbook.me/t/api-call-to-retrieve-all-current-and-future-booking-by-our-internal-member-number/4306/2 "2025-11-22T14:28:12Z")

</div>

Update: this worked for me: lcUrl = “[https://api.youcanbook.me/v1/accounts/”](https://api.youcanbook.me/v1/accounts/%E2%80%9D) + lcYCBM\_AccountId + ;  
“/bookings/query?direction=backwards&from=” + lcFrom + “&searchTextCriteria=form&searchText=” + lcMemid

---

<div class="post-metadata">

**Author:** ![Ben](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.youcanbook.me/ben/32/772_2.png) [@Ben](https://forum.youcanbook.me/u/Ben)\
**Post date:** [November 25, 2025, 1:08pm UTC](https://forum.youcanbook.me/t/api-call-to-retrieve-all-current-and-future-booking-by-our-internal-member-number/4306/3 "2025-11-25T13:08:57Z")

</div>

@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.
