VRPlatformVRPlatform
Build a Product UI

Listings & Ownership

Build listing, ownership, contact, and owner-access workflows

Mental Model

A listing is the shared property context for ownership, reservations, fees, transactions, statements, and reporting. Ownership periods define who owns it over a date range. Contacts provide owner, vendor, payout, tax, and portal identity.

Resources and Lifecycle

Listings keep platform identity even when PMS references, status, groups, or owners change. Inactive listings and contacts remain in accounting history.

Ownership periods combine a listing, date range, business model, owner members and splits, reserve behavior, and optional setListingInactive. Periods are half-open: startAt is included and endAt is excluded. One period can end on the same date that the next period starts. A changed owner constellation or allocation creates a new period.

Owner access is separate from contact identity. Invitations and viewer changes can affect an external identity provider and send notifications.

Read Model

Render returned listing status, active ownership, fee periods, parent and children, upcoming deactivation, and issues[]. These fields are the server's setup view; do not rebuild completeness queries in the client.

Keep inactive entities available when rendering history, but exclude them from normal new-entry selectors.

Decision Table

DecisionRule
Business modelmanaged, co_host, or co_host_airbnb
End dateExclusive; null means ongoing; start must precede a non-null end
MembersOne or more unique owner contacts unless inactive period
SplitsAPI values total 100000; omitted values distribute; legacy 100 remains valid
DeactivationsetListingInactive=true; do not collect owner members
Overlap defaultonConflict=error
Remove locked historyOffer archive only when error context recommends it
Remove last periodDefault extends previous; use onLast=none unless confirmed
Payout accountAccounting account reference, never bank credentials

Conflict strategies are error, updateExisting, and adjustInsertingItem. Explain that the latter two can change a neighboring stored period or the proposed range. updateExisting trims an overlapping neighbor to the new period's start date; that shared boundary is not an overlap.

The onLast=extendPrevious default stretches the previous period over the removed range, so keep it only when the user has confirmed that outcome; otherwise pass onLast=none.

Contacts and Owner Access

Contacts are owners or vendors. Owners can join ownership periods and receive statements or portal access; vendors are normally selected on expenses and recurring expense templates.

An empty PUT /contacts/{id} body is an idempotent no-op. It returns the current contact without writing an empty SQL update or emitting a contact change.

Contact email is optional. Legacy migrations may contain an empty email value; read responses represent that value as null, and VRI-to-VRT migrations store new blank source emails as null.

Owner users can read GET /contacts, GET /contacts/{id}, and GET /contacts/csv. List and export results include only contacts directly owned by the authenticated user; requesting a contact outside the user's owner-visible contact set by ID returns 404.

Invitations require an owner contact with an email. Admin and viewer access are mutually exclusive for one owner/user pair; remove the existing role before inviting the other.

Contact search matches both contact fields and secondary emails on the linked admin owner user. Contact access and GET /contacts/{id}/viewers responses return secondaryEmails alongside the primary email so clients can explain which owner identity an alias belongs to.

Invites resolve email against the global platform identity before adding regional owner access. A user whose former team membership was removed can be invited into another region with the same email; the existing identity is reused. If a non-owner team membership still exists in any region, the owner invite remains blocked with 400 BAD_REQUEST. Ask for another email address; a copy-link invite cannot bypass the account-type conflict. Legacy identity-provider IDs are not part of the user API or copied into another region.

An owner contact already linked to one platform identity cannot be reassigned by inviting an email owned by another identity. The invite returns 400 BAD_REQUEST and does not merge the users. Ask for a different email address; a copy-link invite cannot bypass this identity conflict.

Files linked to owner contacts use the same owner-access scope. Existing file downloads remain readable when a team is not initialized for the general ledger; GL-only file management operations remain unavailable to that team.

To upload a GL file, call POST /files with filename, contentType, fileSize, and optional file metadata. The response contains fileId, a 24-hour opaque uploadRef, its expiresAt, and an authenticated regional uploadUrl. PUT the original file to uploadUrl with the declared Content-Type. The request must arrive with a Content-Length matching fileSize; browsers provide it when the original File is the request body. Use fileId only after PUT succeeds. Files must be non-empty and at most 100,000,000 bytes. A type, size, or storage failure exposes no ready file. Retrying the same completed upload returns success without overwriting the stored object. JSON media types are streamed unchanged. Deleting a file also invalidates retries through its still-live upload reference.

The browser must pass the original File as the PUT body. Do not read it into an ArrayBuffer, construct a multipart form, decode uploadRef, or send a storage completion request.

User Self-Deletion

DELETE /me always targets the authenticated interactive user and accepts no user ID. It removes the platform identity, team memberships, owner access, API tokens, and linked identity-provider account.

Deletion returns 409 if any active property-manager membership would be left without another active admin or user member. Owner memberships do not satisfy that safeguard. Otherwise the user may delete the account while team memberships still exist; those memberships are removed by the same lifecycle. API keys and embedded sessions cannot call this endpoint.

Editability

Ownership dates and listing groups can change journal attribution across many resources. Books closing, statement periods, statement attachment, or locked ownership history can prevent moving or shortening a period.

A listing group parent must have active ownership. A child with active ownership can join only when its active owner constellation and business model match the parent's. A child with a non-zero opening balance cannot join a group; clear that balance first, then set the opening balance on the group parent. Grouping removes the child's separate ownership periods, so any child journal reference before books closing normally blocks the move, including zero-value entries. One guarded exception applies when the child has no published statement history: its current in-review statement can merge into a matching published parent statement for the same dates and currency. The parent status is preserved and zero-value child entries before books closing do not block this merge. Outside that exception, owner-side revenue or expense rows before the parent statement's open date block grouping even when their value is zero. Manager-side and balance-sheet rows do not create a statement-period block. Published child history still requires a support migration.

Ownership updates validate only date boundaries that actually change. An unchanged mid-month start does not block an end-only edit when its statement month begins earlier, but the new end must still be on or after the locked range end.

Ownership mode and members change as one contract. An active period must keep at least one owner member, while a deactivation period must have none. When toggling setListingInactive, send the matching members state in the same request; the API rejects an intermediate or final contradictory state.

Deleting a newly created ownership period supersedes unfinished journal attribution work from that period's creation. A later retry does not relink journals to the deleted period; the current ownership timeline remains the source of truth.

An inactive period rejects owner-side postings in that range. Manager-side records can retain listing attribution when the operation permits it.

Listing deletion preserves historical accounting identity. Any journal entry that references a listing directly or uses it as its listing-group parent blocks hard deletion. The delete response includes journal entries in context.lockReasons and suggests onLocked=archive; archive keeps the listing available to its historical journals while making it inactive.

Invitations, viewer creation, reinvites, and access removal are external identity workflows. Do not present them as ordinary reversible contact edits.

Preview and Preflight

Dry-run listing, ownership-period, group, contact, and supported delete/archive mutations when their generated operations declare support. Always preflight an ownership range or parent change because one edit can affect reservations, fees, statements, and journal attribution outside the visible row.

Mutation Recipe

  1. Load listing setup state, ownership periods, contacts, and returned issues.
  2. Validate date ordering, unique owners, splits, and business model locally.
  3. Select and explain an overlap strategy.
  4. Render current locks and any suggested archive outcome.
  5. Dry-run the complete proposed listing or period mutation.
  6. Show every adjusted neighboring period returned by the API.
  7. Confirm and apply the same payload.
  8. Re-read listing setup and affected periods.

Failure and Recovery

On overlap, keep the proposed dates and let the user choose a documented strategy. When a lock blocks the change, show the structured lock context and the first open date, and offer archive only if the error context returns suggestedOnLocked: "archive". After a concurrent edit, reload all periods before offering conflict resolution again.

Common Recipes

Mid-month ownership change

End the current period and create the new owner constellation with a boundary that does not overlap. Expect separate statements for the same listing and month when both periods contain activity.

For example, this preflight starts a new ownership period on July 15 and lets the API trim the overlapping current period:

POST /listings/ownership-periods?dryRun=true
Content-Type: application/json

{
  "listingId": "11111111-1111-4111-8111-111111111111",
  "startAt": "2026-07-15",
  "endAt": null,
  "members": [
    {
      "contactId": "33333333-3333-4333-8333-333333333333",
      "split": 60000
    },
    {
      "contactId": "44444444-4444-4444-8444-444444444444",
      "split": 40000
    }
  ],
  "onConflict": "updateExisting"
}

Deactivate a listing

Create or update the relevant ownership period with setListingInactive=true. Do not delete historical owners or prior periods.

PUT /listings/ownership-periods/{ownershipPeriodId}?dryRun=true
Content-Type: application/json

{
  "setListingInactive": true,
  "members": []
}

Webhook Reconciliation

listing.changed invalidates the canonical listing after creation, public configuration or hierarchy changes, archive/reactivation, and deletion. Compare resourceVersion and fetch href; a deletion tombstone may return 404. Ownership-period changes emit only when the canonical listing response changes.

API Reference

On this page