VRPlatformVRPlatform

Connections

Booking channels, PMS integrations, payment gateways, and sync status

Connections

This article is a work in progress.

Overview

Connections link VRPlatform to external services like booking channels (Airbnb, VRBO), property management systems, and payment gateways. They enable automatic data synchronization.

Key Concepts

Connection Types

TypeDescription
bookingChannelOTAs like Airbnb, VRBO, Booking.com
propertyManagementSystemPMS platforms
paymentGatewayPayment processors (Stripe, etc.)
accountingPlatformAccounting software integrations
serviceOther service integrations

Connection Status

StatusDescription
activeConnection is operational
inactiveConnection is disabled

Sync Status

Track synchronization state:

StatusDescription
queuedSync is pending
startedSync in progress
completedSync finished successfully
failedSync encountered errors
canceledSync was canceled

Error States

Connections can enter error states when:

  • Credentials expire or become invalid
  • API limits are reached
  • External service is unavailable

API Endpoints

  • GET /connections - List connections
  • GET /connections/{id} - Get connection details
  • POST /connections/{id}/sync - Trigger a sync
  • GET /syncs - List sync history

Examples

Connection Response

{
  "id": "conn-123",
  "type": "bookingChannel",
  "name": "Airbnb",
  "status": "active",
  "lastSyncAt": "2024-06-15T10:30:00Z",
  "syncStatus": "completed",
  "isErrorState": false
}

Triggering a Sync

POST /connections/conn-123/sync

Response:
{
  "syncId": "sync-456",
  "status": "queued"
}

On this page