Open fionazhou-jsb opened 1 month ago
@stcepeda for you to review
@fionazhou-jsb This looks good. Only comment - I think different error codes are required for the status of the registration. Ie. a different code for active, cancelled, and suspended. Because the platform is required to take different actions for different statuses so it seems like they should all have a unique code?
As a STR Platform I want to pass host registration details (registration number, unit number if applicable, street number, postal code and primary listing ID) in bulk via API to the STR registry on a daily basis, So that I can confirm the validity of the registration and ensure compliance with regulations on a daily basis.
Context / Background
Platform must validate their registration details against the Short Term Rental registry. The validation includes checking the registration status and confirming that the address information (unit number, street number, and postal code) entered by the host on the platform site matches what is on file with the registry. Platform needs to do real time validation as well as daily bulk validation.
We need to return a message that indicate whether the validation passes or fails.
It is not clear yet what time platform needs to send the listings in bulk to the registry for daily validation, 11:50pm PST for all platforms or staggered, or as long as every 24 hours window is met.
Presentation
Teams Channel
Document given to Housing regarding API
Business Rules
[ ] Platform must send the following information for all BC listings once 24 hours to determine the validity of all STR offers appearing on the platform
[ ] Platform will send all the information required in bulk in a format required by the STR Registry.
[ ] STR Registry will generate the request and send the response to a secure location for the platforms to retrieve.
[ ] When a response to the daily validation is available, platform will be notified.
[ ] Reasonable amount of time to send validation response to platform is expected.
[ ] STR Registry validation will be able to handle a daily validation with over 40-50k records from a platform (i.e., airbnb), as well as from multiple platforms.
[ ] If API fails due to API outage, connection/serve issue or any technical reasons, show error message "xxx"
[ ] In the bulk validation, the system will
If the registration status is "Suspended", "Cancelled", "Expired", no need to go through the address match check.
[ ] The response for bulk validation will be stored in the Registry. - WHAT DOES THIS MEAN?
[ ] If a platform does not provide a file for bulk validation every 24 hours, STR Registry should be notified by email. - SHOULD THIS BE A SEPARATE TICKET - TO TRACK PLATFORM REGISTRATIONS?
Bulk Daily API verification
Platform will request validation for multiple listings.
For Valid Registration
Address mismatch
registration: dwdw123, code: 1218, description: address mismatch
code:1218 means it’s passed
Story Scenarios
Scenario 1: Platform sends listing information required in bulk
Scenario 2: Response is ready
Scenario 3: API call fails or external registry is unavailable
Scenario 4: Platform missed the deadline to provide the file