404.
The listing’s report
GET /account/listings/{code}/viewing-report needs the listings:read ability:
- The period is the last 14 days, on the listing’s local clock (
timezone). funnel.requestscounts every request received, including those cancelled, declined or expired.confirmedis the confirmed ones,camethe visits where the person showed up, andagainthose after which they want to come back or made an offer.rowsare the finished viewings, newest first.visitoris a number, not a person: the same person has the same number on every visit in the period.outcomeis the answer to “How did it go?” (offer,again,not_interested,no_show), ornullif you haven’t given one yet.open_housesare the open houses of the period, newest first, as in the portal:starts_at,came(how many came) andinterested(how many of them you marked “Interested”). Nobody is named. The funnel counts only booked viewings.- The report has no names, phone numbers, emails or notes.
linkdescribes the owner’s link without its address, and isnullwhen none is on.shareableisfalsewhile the listing isn’t on the site (a draft, in moderation, sold, withdrawn or expired).
The owner’s link
POST /listings/{code}/viewing-report/link gives you the link that’s on, or makes a new one, and answers with its address:
201 when the link was made just now and 200 when it was already on; two requests at once get the same link. The link works for 90 days. The owner opens it without an account and sees the report, without the visitors’ names. The address is an access, so keep it like a password. For a listing that isn’t on the site you get 422 not_shareable.
DELETE /listings/{code}/viewing-report/link turns the link off. Whoever has it sees that it no longer works. The answer is 204, also when no link was on.
Sending it by email
POST /listings/{code}/viewing-report/send emails the link to the address in email, with your name and your firm’s name. If no link is on, one is made. The answer is 202 with { "data": { "sent": true } }.
Each person can send at most 20 reports a day, counting the portal and the API together. The 21st gets 422 viewing_report_send_limit on /email; you can still get the link with POST …/link. Housera doesn’t keep the address. For a listing that isn’t on the site you get 422 not_shareable.