You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
API - PPR / MHR Search History Table Fitering #30004
Sorting uses the sortCriteriaName and sortDirection request parameters.
sortCriteriaName can be one of: searchDateTime, clientReferenceId, username, type, criteria
sortDirection can be one of: ascending, descending
When filtering by criteria, type should also be provided.
Hey @doug-lovett , just verified using Postman with MHR and noted that all the request examples provided above gives the same response for the requests. Please take a look, thanks!
Here the request type is Serial Number, but the response includes all the search types including serial number and this happens with all other requests.
@doug-lovett PPR Search filtering works as expected, I was talking about MHR searches as this ticket includes both PPR and MHR searches, my understanding was this was updated for both, but I still see issue with MHR search filtering in DEV.
Activity
LizGovier commentedon Aug 7, 2025
Hey team! Please add your planning poker estimate with Zenhub @cameron-eyds @chdivyareddy @doug-lovett @flutistar
[-]API - PPR / MHR Search History Table[/-][+]API - PPR / MHR Search History Table Fitering[/+]doug-lovett commentedon Aug 20, 2025
Request exampes:
/ppr/api/v1/search-history?username=Bowler
/ppr/api/v1/search-history?clientReferenceId=8129482&sortCriteriaName=clientReferenceId&sortDirection=ascending
/ppr/api/v1/search-history?type=SERIAL_NUMBER&sortCriteriaName=searchDateTime&sortDirection=ascending
/ppr/api/v1/search-history?startDateTime=2025-08-07&endDateTime=2025-08-07&sortCriteriaName=searchDateTime&sortDirection=descending
/ppr/api/v1/search-history?type=MHR_OWNER_NAME&criteria=hamm&sortCriteriaName=searchDateTime&sortDirection=ascending
/ppr/api/v1/search-history?type=BUSINESS_DEBTOR&criteria=imran&sortCriteriaName=searchDateTime&sortDirection=ascending
/ppr/api/v1/search-history?type=INDIVIDUAL_DEBTOR&criteria=jack+pollock&sortCriteriaName=searchDateTime&sortDirection=ascending
chdivyareddy commentedon Aug 21, 2025
Hey @doug-lovett , just verified using Postman with MHR and noted that all the request examples provided above gives the same response for the requests. Please take a look, thanks!
/mhr-dev/api/v1/search-history?type=SERIAL_NUMBER&sortCriteriaName=searchDateTime&sortDirection=ascending
Here the request type is Serial Number, but the response includes all the search types including serial number and this happens with all other requests.
doug-lovett commentedon Aug 21, 2025
@chdivyareddy are you going to DEV? When I submit:
GET https://test.api.connect.gov.bc.ca/ppr-dev/api/v1/search-history?type=SERIAL_NUMBER&criteria=123&sortCriteriaName=criteria&sortDirection=ascending
The response is:
Note: https://test.api.connect.gov.bc.ca/ppr/* is TEST.
chdivyareddy commentedon Aug 21, 2025
@doug-lovett PPR Search filtering works as expected, I was talking about MHR searches as this ticket includes both PPR and MHR searches, my understanding was this was updated for both, but I still see issue with MHR search filtering in DEV.
doug-lovett commentedon Aug 21, 2025
@chdivyareddy are you using the ppr endpoint? The UI account search history table gets PPR and MHR search results in a single call from the ppr endpoint.
GET https://test.api.connect.gov.bc.ca/ppr-dev/api/v1/search-history?type=MHR_OWNER_NAME&criteria=hamm&sortCriteriaName=searchDateTime&sortDirection=ascending
Returns a handful of results.
chdivyareddy commentedon Aug 21, 2025
@doug-lovett Ah...Sorry, my bad. I was using MHR endpoint for the MHR searches. All good now, thanks for clarifying:)
Verified in DEV!