repull 0.2.57 → 0.2.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/repull/api/connect_api.rb +137 -6
- data/lib/repull/models/account_calendar_access_changed_event.rb +11 -1
- data/lib/repull/models/account_created_event.rb +11 -1
- data/lib/repull/models/account_disconnected_event.rb +11 -1
- data/lib/repull/models/account_import_completed_event.rb +11 -1
- data/lib/repull/models/account_import_failed_event.rb +11 -1
- data/lib/repull/models/account_import_started_event.rb +11 -1
- data/lib/repull/models/account_notifications_missing_event.rb +11 -1
- data/lib/repull/models/account_units_added_event.rb +11 -1
- data/lib/repull/models/ai_operation_completed_event.rb +11 -1
- data/lib/repull/models/ai_operation_failed_event.rb +11 -1
- data/lib/repull/models/app_connection_health.rb +301 -0
- data/lib/repull/models/app_connection_health_recent_errors_inner.rb +184 -0
- data/lib/repull/models/app_connection_health_writes_per_day_inner.rb +156 -0
- data/lib/repull/models/booking_unacknowledged_event.rb +11 -1
- data/lib/repull/models/channel_degraded_event.rb +11 -1
- data/lib/repull/models/channel_sync_failed_event.rb +11 -1
- data/lib/repull/models/connect_provider.rb +2 -2
- data/lib/repull/models/connect_session_abandoned_event.rb +11 -1
- data/lib/repull/models/connect_session_completed_event.rb +11 -1
- data/lib/repull/models/connect_status.rb +1 -1
- data/lib/repull/models/connection.rb +81 -5
- data/lib/repull/models/conversation_message_status_changed_event.rb +11 -1
- data/lib/repull/models/create_connection_request.rb +10 -1
- data/lib/repull/models/create_connection_request_workspace.rb +203 -0
- data/lib/repull/models/create_price_labs_key201_response.rb +399 -0
- data/lib/repull/models/create_price_labs_key201_response_all_of_instructions.rb +159 -0
- data/lib/repull/models/create_price_labs_key_request.rb +207 -0
- data/lib/repull/models/get_price_labs_session_status200_response.rb +192 -0
- data/lib/repull/models/inquiry_created_event.rb +11 -1
- data/lib/repull/models/inquiry_updated_event.rb +11 -1
- data/lib/repull/models/listing_created_event.rb +11 -1
- data/lib/repull/models/listing_deleted_event.rb +11 -1
- data/lib/repull/models/listing_ical_feed_changed_event.rb +11 -1
- data/lib/repull/models/listing_reactivated_event.rb +11 -1
- data/lib/repull/models/listing_suspended_event.rb +11 -1
- data/lib/repull/models/listing_updated_event.rb +11 -1
- data/lib/repull/models/migration_completed_event.rb +1 -1
- data/lib/repull/models/migration_failed_event.rb +1 -1
- data/lib/repull/models/payment_completed_event.rb +11 -1
- data/lib/repull/models/payment_refunded_event.rb +11 -1
- data/lib/repull/models/payout_completed_event.rb +11 -1
- data/lib/repull/models/repull_ping_event.rb +11 -1
- data/lib/repull/models/reservation_alteration_created_event.rb +11 -1
- data/lib/repull/models/reservation_alteration_responded_event.rb +11 -1
- data/lib/repull/models/reservation_cancelled_event.rb +11 -1
- data/lib/repull/models/reservation_created_event.rb +11 -1
- data/lib/repull/models/reservation_message_reaction_event.rb +11 -1
- data/lib/repull/models/reservation_message_read_event.rb +11 -1
- data/lib/repull/models/reservation_message_received_event.rb +11 -1
- data/lib/repull/models/reservation_message_sent_event.rb +11 -1
- data/lib/repull/models/reservation_message_updated_event.rb +11 -1
- data/lib/repull/models/reservation_request_created_event.rb +11 -1
- data/lib/repull/models/reservation_request_updated_event.rb +11 -1
- data/lib/repull/models/reservation_thread_assigned_event.rb +11 -1
- data/lib/repull/models/reservation_updated_event.rb +11 -1
- data/lib/repull/models/review_created_event.rb +11 -1
- data/lib/repull/models/review_responded_event.rb +11 -1
- data/lib/repull/models/usage_quota_warning_event.rb +11 -1
- data/lib/repull/version.rb +1 -1
- data/lib/repull.rb +8 -0
- data/openapi/v1.json +576 -8
- metadata +10 -2
data/openapi/v1.json
CHANGED
|
@@ -1883,9 +1883,144 @@
|
|
|
1883
1883
|
],
|
|
1884
1884
|
"nullable": true,
|
|
1885
1885
|
"description": "The account's latest import \u2014 `status: running` while the first sync (or a later one) is going, then `completed` or `failed`. `null` when no import has been recorded. The same run is announced by the `account.import.*` webhooks; the history is on `GET /v1/connections/{id}/imports`."
|
|
1886
|
+
},
|
|
1887
|
+
"scope": {
|
|
1888
|
+
"type": "string",
|
|
1889
|
+
"description": "Apps (`pricelabs`) only. `workspace`: every listing of the workspace, including listings added later. `listings`: only `listingIds`."
|
|
1890
|
+
},
|
|
1891
|
+
"listingIds": {
|
|
1892
|
+
"type": "array",
|
|
1893
|
+
"items": {
|
|
1894
|
+
"type": "string"
|
|
1895
|
+
},
|
|
1896
|
+
"nullable": true,
|
|
1897
|
+
"description": "Apps only: the listings a `listings`-scoped connection covers; `null` for `workspace`."
|
|
1898
|
+
},
|
|
1899
|
+
"listingCount": {
|
|
1900
|
+
"type": "integer",
|
|
1901
|
+
"description": "Apps only: listings the connection covers now.",
|
|
1902
|
+
"example": 12
|
|
1903
|
+
},
|
|
1904
|
+
"keyMasked": {
|
|
1905
|
+
"type": "string",
|
|
1906
|
+
"description": "Apps only: the key the app uses, masked. The key itself is shown once, when created.",
|
|
1907
|
+
"example": "sk_live_4eB3...XYZw"
|
|
1908
|
+
},
|
|
1909
|
+
"label": {
|
|
1910
|
+
"type": "string",
|
|
1911
|
+
"nullable": true,
|
|
1912
|
+
"description": "Apps only: the name given to the key."
|
|
1913
|
+
},
|
|
1914
|
+
"disconnectedAt": {
|
|
1915
|
+
"type": "string",
|
|
1916
|
+
"format": "date-time",
|
|
1917
|
+
"nullable": true,
|
|
1918
|
+
"description": "Apps only: when the connection was revoked."
|
|
1919
|
+
},
|
|
1920
|
+
"health": {
|
|
1921
|
+
"nullable": true,
|
|
1922
|
+
"allOf": [
|
|
1923
|
+
{
|
|
1924
|
+
"$ref": "#/components/schemas/AppConnectionHealth"
|
|
1925
|
+
}
|
|
1926
|
+
],
|
|
1927
|
+
"description": "Apps only: how the app is doing on this connection. `null` once disconnected."
|
|
1886
1928
|
}
|
|
1887
1929
|
}
|
|
1888
1930
|
},
|
|
1931
|
+
"AppConnectionHealth": {
|
|
1932
|
+
"type": "object",
|
|
1933
|
+
"description": "How an app (PriceLabs) is doing on one connection, from its calls with the key.",
|
|
1934
|
+
"properties": {
|
|
1935
|
+
"status": {
|
|
1936
|
+
"type": "string",
|
|
1937
|
+
"description": "`active`: a successful price or minimum-stay push in the last 24 hours. `idle`: the app connected before but has not pushed in the last 24 hours. `failing`: more than 25% of the last 24 hours' requests failed (at least 5 requests); read `recentErrors`. `never_connected`: the app has not used the key yet."
|
|
1938
|
+
},
|
|
1939
|
+
"lastRequestAt": {
|
|
1940
|
+
"type": "string",
|
|
1941
|
+
"format": "date-time",
|
|
1942
|
+
"nullable": true,
|
|
1943
|
+
"description": "The app's last request with the key, of any kind."
|
|
1944
|
+
},
|
|
1945
|
+
"lastSuccessfulWriteAt": {
|
|
1946
|
+
"type": "string",
|
|
1947
|
+
"format": "date-time",
|
|
1948
|
+
"nullable": true,
|
|
1949
|
+
"description": "The app's last successful price or minimum-stay push."
|
|
1950
|
+
},
|
|
1951
|
+
"writesPerDay": {
|
|
1952
|
+
"type": "array",
|
|
1953
|
+
"description": "Successful price and minimum-stay pushes per UTC day, the last 7 days, oldest first.",
|
|
1954
|
+
"items": {
|
|
1955
|
+
"type": "object",
|
|
1956
|
+
"properties": {
|
|
1957
|
+
"date": {
|
|
1958
|
+
"type": "string",
|
|
1959
|
+
"format": "date"
|
|
1960
|
+
},
|
|
1961
|
+
"writes": {
|
|
1962
|
+
"type": "integer"
|
|
1963
|
+
}
|
|
1964
|
+
}
|
|
1965
|
+
}
|
|
1966
|
+
},
|
|
1967
|
+
"requests24h": {
|
|
1968
|
+
"type": "integer"
|
|
1969
|
+
},
|
|
1970
|
+
"errors24h": {
|
|
1971
|
+
"type": "integer"
|
|
1972
|
+
},
|
|
1973
|
+
"errorRate24h": {
|
|
1974
|
+
"type": "number",
|
|
1975
|
+
"description": "`errors24h / requests24h`; 0 when there were no requests.",
|
|
1976
|
+
"example": 0.02
|
|
1977
|
+
},
|
|
1978
|
+
"requests7d": {
|
|
1979
|
+
"type": "integer"
|
|
1980
|
+
},
|
|
1981
|
+
"errors7d": {
|
|
1982
|
+
"type": "integer"
|
|
1983
|
+
},
|
|
1984
|
+
"errorRate7d": {
|
|
1985
|
+
"type": "number",
|
|
1986
|
+
"example": 0.01
|
|
1987
|
+
},
|
|
1988
|
+
"recentErrors": {
|
|
1989
|
+
"type": "array",
|
|
1990
|
+
"description": "The 10 most recent failed requests, newest first.",
|
|
1991
|
+
"items": {
|
|
1992
|
+
"type": "object",
|
|
1993
|
+
"properties": {
|
|
1994
|
+
"at": {
|
|
1995
|
+
"type": "string",
|
|
1996
|
+
"format": "date-time"
|
|
1997
|
+
},
|
|
1998
|
+
"method": {
|
|
1999
|
+
"type": "string",
|
|
2000
|
+
"example": "PUT"
|
|
2001
|
+
},
|
|
2002
|
+
"endpoint": {
|
|
2003
|
+
"type": "string",
|
|
2004
|
+
"example": "/calendar/batch/4118"
|
|
2005
|
+
},
|
|
2006
|
+
"statusCode": {
|
|
2007
|
+
"type": "integer",
|
|
2008
|
+
"example": 404
|
|
2009
|
+
},
|
|
2010
|
+
"message": {
|
|
2011
|
+
"type": "string",
|
|
2012
|
+
"nullable": true
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
2017
|
+
},
|
|
2018
|
+
"required": [
|
|
2019
|
+
"status",
|
|
2020
|
+
"writesPerDay",
|
|
2021
|
+
"recentErrors"
|
|
2022
|
+
]
|
|
2023
|
+
},
|
|
1889
2024
|
"ConnectionAccessType": {
|
|
1890
2025
|
"type": "string",
|
|
1891
2026
|
"enum": [
|
|
@@ -1971,11 +2106,11 @@
|
|
|
1971
2106
|
},
|
|
1972
2107
|
"category": {
|
|
1973
2108
|
"type": "string",
|
|
1974
|
-
"description": "
|
|
2109
|
+
"description": "Category \u2014 OTAs are listing marketplaces; PMSes are property management systems; apps are tools that work on the workspace's data (PriceLabs)."
|
|
1975
2110
|
},
|
|
1976
2111
|
"connectPattern": {
|
|
1977
2112
|
"type": "string",
|
|
1978
|
-
"description": "How the host is connected. `oauth`: provider-side consent screen. `credentials`: hosted form collects API keys. `activation`: push-only handshake. `claim`: connectivity-provider designation in the channel's Extranet (Booking.com). `extranet`: the host signs in with their Booking.com Extranet user."
|
|
2113
|
+
"description": "How the host is connected. `oauth`: provider-side consent screen. `credentials`: hosted form collects API keys. `activation`: push-only handshake. `claim`: connectivity-provider designation in the channel's Extranet (Booking.com). `extranet`: the host signs in with their Booking.com Extranet user. `key`: an app \u2014 the hosted page shows a key the host pastes into the app, and the session completes on the app's first call."
|
|
1979
2114
|
},
|
|
1980
2115
|
"status": {
|
|
1981
2116
|
"type": "string",
|
|
@@ -2553,7 +2688,7 @@
|
|
|
2553
2688
|
},
|
|
2554
2689
|
"accounts": {
|
|
2555
2690
|
"type": "array",
|
|
2556
|
-
"description": "One entry per connected account, for every provider: Airbnb, every host account connected (including ones since disconnected), each with its own `accessType`; Booking.com, every hotel (`externalAccountId` is the hotel id); Vrbo, every sign-in; Booking.com Extranet, every hotel login; a PMS, its one account. Pass `externalAccountId` as `accountId` to `DELETE /v1/connect/{provider}` to disconnect one. The top-level fields describe one record and stay for existing integrations; show `accounts[]` to list what is connected. Vrbo sign-ins also carry `accessType` and `import` (a `VrboImportStatus`), with a top-level `dataFreshness` on `GET /v1/connect/vrbo-login`.",
|
|
2691
|
+
"description": "One entry per connected account, for every provider: Airbnb, every host account connected (including ones since disconnected), each with its own `accessType`; Booking.com, every hotel (`externalAccountId` is the hotel id); Vrbo, every sign-in; Booking.com Extranet, every hotel login; a PMS, its one account; PriceLabs (an app), every key, each a connection with its `health` (see `Connection`). Pass `externalAccountId` as `accountId` to `DELETE /v1/connect/{provider}` to disconnect one. The top-level fields describe one record and stay for existing integrations; show `accounts[]` to list what is connected. Vrbo sign-ins also carry `accessType` and `import` (a `VrboImportStatus`), with a top-level `dataFreshness` on `GET /v1/connect/vrbo-login`.",
|
|
2557
2692
|
"items": {
|
|
2558
2693
|
"type": "object",
|
|
2559
2694
|
"properties": {
|
|
@@ -5101,6 +5236,11 @@
|
|
|
5101
5236
|
"account": {
|
|
5102
5237
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
5103
5238
|
},
|
|
5239
|
+
"workspaceId": {
|
|
5240
|
+
"type": "integer",
|
|
5241
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
5242
|
+
"example": 2042
|
|
5243
|
+
},
|
|
5104
5244
|
"data": {
|
|
5105
5245
|
"$ref": "#/components/schemas/ReservationCreatedPayload"
|
|
5106
5246
|
}
|
|
@@ -5137,6 +5277,11 @@
|
|
|
5137
5277
|
"account": {
|
|
5138
5278
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
5139
5279
|
},
|
|
5280
|
+
"workspaceId": {
|
|
5281
|
+
"type": "integer",
|
|
5282
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
5283
|
+
"example": 2042
|
|
5284
|
+
},
|
|
5140
5285
|
"data": {
|
|
5141
5286
|
"$ref": "#/components/schemas/ReservationUpdatedPayload"
|
|
5142
5287
|
}
|
|
@@ -5173,6 +5318,11 @@
|
|
|
5173
5318
|
"account": {
|
|
5174
5319
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
5175
5320
|
},
|
|
5321
|
+
"workspaceId": {
|
|
5322
|
+
"type": "integer",
|
|
5323
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
5324
|
+
"example": 2042
|
|
5325
|
+
},
|
|
5176
5326
|
"data": {
|
|
5177
5327
|
"$ref": "#/components/schemas/ReservationCancelledPayload"
|
|
5178
5328
|
}
|
|
@@ -5209,6 +5359,11 @@
|
|
|
5209
5359
|
"account": {
|
|
5210
5360
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
5211
5361
|
},
|
|
5362
|
+
"workspaceId": {
|
|
5363
|
+
"type": "integer",
|
|
5364
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
5365
|
+
"example": 2042
|
|
5366
|
+
},
|
|
5212
5367
|
"data": {
|
|
5213
5368
|
"$ref": "#/components/schemas/ReservationMessageReceivedPayload"
|
|
5214
5369
|
}
|
|
@@ -5245,6 +5400,11 @@
|
|
|
5245
5400
|
"account": {
|
|
5246
5401
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
5247
5402
|
},
|
|
5403
|
+
"workspaceId": {
|
|
5404
|
+
"type": "integer",
|
|
5405
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
5406
|
+
"example": 2042
|
|
5407
|
+
},
|
|
5248
5408
|
"data": {
|
|
5249
5409
|
"$ref": "#/components/schemas/ReservationMessageSentPayload"
|
|
5250
5410
|
}
|
|
@@ -5281,6 +5441,11 @@
|
|
|
5281
5441
|
"account": {
|
|
5282
5442
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
5283
5443
|
},
|
|
5444
|
+
"workspaceId": {
|
|
5445
|
+
"type": "integer",
|
|
5446
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
5447
|
+
"example": 2042
|
|
5448
|
+
},
|
|
5284
5449
|
"data": {
|
|
5285
5450
|
"$ref": "#/components/schemas/ReservationMessageUpdatedPayload"
|
|
5286
5451
|
}
|
|
@@ -5317,6 +5482,11 @@
|
|
|
5317
5482
|
"account": {
|
|
5318
5483
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
5319
5484
|
},
|
|
5485
|
+
"workspaceId": {
|
|
5486
|
+
"type": "integer",
|
|
5487
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
5488
|
+
"example": 2042
|
|
5489
|
+
},
|
|
5320
5490
|
"data": {
|
|
5321
5491
|
"$ref": "#/components/schemas/ReservationMessageReadPayload"
|
|
5322
5492
|
}
|
|
@@ -5353,6 +5523,11 @@
|
|
|
5353
5523
|
"account": {
|
|
5354
5524
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
5355
5525
|
},
|
|
5526
|
+
"workspaceId": {
|
|
5527
|
+
"type": "integer",
|
|
5528
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
5529
|
+
"example": 2042
|
|
5530
|
+
},
|
|
5356
5531
|
"data": {
|
|
5357
5532
|
"$ref": "#/components/schemas/ReservationMessageReactionPayload"
|
|
5358
5533
|
}
|
|
@@ -5389,6 +5564,11 @@
|
|
|
5389
5564
|
"account": {
|
|
5390
5565
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
5391
5566
|
},
|
|
5567
|
+
"workspaceId": {
|
|
5568
|
+
"type": "integer",
|
|
5569
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
5570
|
+
"example": 2042
|
|
5571
|
+
},
|
|
5392
5572
|
"data": {
|
|
5393
5573
|
"$ref": "#/components/schemas/ReservationAlterationCreatedPayload"
|
|
5394
5574
|
}
|
|
@@ -5425,6 +5605,11 @@
|
|
|
5425
5605
|
"account": {
|
|
5426
5606
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
5427
5607
|
},
|
|
5608
|
+
"workspaceId": {
|
|
5609
|
+
"type": "integer",
|
|
5610
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
5611
|
+
"example": 2042
|
|
5612
|
+
},
|
|
5428
5613
|
"data": {
|
|
5429
5614
|
"$ref": "#/components/schemas/ReservationAlterationRespondedPayload"
|
|
5430
5615
|
}
|
|
@@ -5461,6 +5646,11 @@
|
|
|
5461
5646
|
"account": {
|
|
5462
5647
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
5463
5648
|
},
|
|
5649
|
+
"workspaceId": {
|
|
5650
|
+
"type": "integer",
|
|
5651
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
5652
|
+
"example": 2042
|
|
5653
|
+
},
|
|
5464
5654
|
"data": {
|
|
5465
5655
|
"$ref": "#/components/schemas/ReservationRequestCreatedPayload"
|
|
5466
5656
|
}
|
|
@@ -5497,6 +5687,11 @@
|
|
|
5497
5687
|
"account": {
|
|
5498
5688
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
5499
5689
|
},
|
|
5690
|
+
"workspaceId": {
|
|
5691
|
+
"type": "integer",
|
|
5692
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
5693
|
+
"example": 2042
|
|
5694
|
+
},
|
|
5500
5695
|
"data": {
|
|
5501
5696
|
"$ref": "#/components/schemas/ReservationRequestUpdatedPayload"
|
|
5502
5697
|
}
|
|
@@ -5628,6 +5823,11 @@
|
|
|
5628
5823
|
"account": {
|
|
5629
5824
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
5630
5825
|
},
|
|
5826
|
+
"workspaceId": {
|
|
5827
|
+
"type": "integer",
|
|
5828
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
5829
|
+
"example": 2042
|
|
5830
|
+
},
|
|
5631
5831
|
"data": {
|
|
5632
5832
|
"$ref": "#/components/schemas/ChannelSyncFailurePayload"
|
|
5633
5833
|
}
|
|
@@ -5709,6 +5909,11 @@
|
|
|
5709
5909
|
"account": {
|
|
5710
5910
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
5711
5911
|
},
|
|
5912
|
+
"workspaceId": {
|
|
5913
|
+
"type": "integer",
|
|
5914
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
5915
|
+
"example": 2042
|
|
5916
|
+
},
|
|
5712
5917
|
"data": {
|
|
5713
5918
|
"$ref": "#/components/schemas/ChannelDegradedPayload"
|
|
5714
5919
|
}
|
|
@@ -5790,6 +5995,11 @@
|
|
|
5790
5995
|
"account": {
|
|
5791
5996
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
5792
5997
|
},
|
|
5998
|
+
"workspaceId": {
|
|
5999
|
+
"type": "integer",
|
|
6000
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
6001
|
+
"example": 2042
|
|
6002
|
+
},
|
|
5793
6003
|
"data": {
|
|
5794
6004
|
"$ref": "#/components/schemas/ReservationThreadAssignedPayload"
|
|
5795
6005
|
}
|
|
@@ -5854,6 +6064,11 @@
|
|
|
5854
6064
|
"account": {
|
|
5855
6065
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
5856
6066
|
},
|
|
6067
|
+
"workspaceId": {
|
|
6068
|
+
"type": "integer",
|
|
6069
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
6070
|
+
"example": 2042
|
|
6071
|
+
},
|
|
5857
6072
|
"data": {
|
|
5858
6073
|
"$ref": "#/components/schemas/BookingUnacknowledgedPayload"
|
|
5859
6074
|
}
|
|
@@ -5890,6 +6105,11 @@
|
|
|
5890
6105
|
"account": {
|
|
5891
6106
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
5892
6107
|
},
|
|
6108
|
+
"workspaceId": {
|
|
6109
|
+
"type": "integer",
|
|
6110
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
6111
|
+
"example": 2042
|
|
6112
|
+
},
|
|
5893
6113
|
"data": {
|
|
5894
6114
|
"$ref": "#/components/schemas/InquiryCreatedPayload"
|
|
5895
6115
|
}
|
|
@@ -5926,6 +6146,11 @@
|
|
|
5926
6146
|
"account": {
|
|
5927
6147
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
5928
6148
|
},
|
|
6149
|
+
"workspaceId": {
|
|
6150
|
+
"type": "integer",
|
|
6151
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
6152
|
+
"example": 2042
|
|
6153
|
+
},
|
|
5929
6154
|
"data": {
|
|
5930
6155
|
"$ref": "#/components/schemas/InquiryUpdatedPayload"
|
|
5931
6156
|
}
|
|
@@ -5962,6 +6187,11 @@
|
|
|
5962
6187
|
"account": {
|
|
5963
6188
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
5964
6189
|
},
|
|
6190
|
+
"workspaceId": {
|
|
6191
|
+
"type": "integer",
|
|
6192
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
6193
|
+
"example": 2042
|
|
6194
|
+
},
|
|
5965
6195
|
"data": {
|
|
5966
6196
|
"$ref": "#/components/schemas/ListingCreatedPayload"
|
|
5967
6197
|
}
|
|
@@ -5998,6 +6228,11 @@
|
|
|
5998
6228
|
"account": {
|
|
5999
6229
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
6000
6230
|
},
|
|
6231
|
+
"workspaceId": {
|
|
6232
|
+
"type": "integer",
|
|
6233
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
6234
|
+
"example": 2042
|
|
6235
|
+
},
|
|
6001
6236
|
"data": {
|
|
6002
6237
|
"$ref": "#/components/schemas/ListingUpdatedPayload"
|
|
6003
6238
|
}
|
|
@@ -6034,6 +6269,11 @@
|
|
|
6034
6269
|
"account": {
|
|
6035
6270
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
6036
6271
|
},
|
|
6272
|
+
"workspaceId": {
|
|
6273
|
+
"type": "integer",
|
|
6274
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
6275
|
+
"example": 2042
|
|
6276
|
+
},
|
|
6037
6277
|
"data": {
|
|
6038
6278
|
"$ref": "#/components/schemas/ListingDeletedPayload"
|
|
6039
6279
|
}
|
|
@@ -6139,6 +6379,11 @@
|
|
|
6139
6379
|
"account": {
|
|
6140
6380
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
6141
6381
|
},
|
|
6382
|
+
"workspaceId": {
|
|
6383
|
+
"type": "integer",
|
|
6384
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
6385
|
+
"example": 2042
|
|
6386
|
+
},
|
|
6142
6387
|
"data": {
|
|
6143
6388
|
"$ref": "#/components/schemas/ListingIcalFeedChangedPayload"
|
|
6144
6389
|
}
|
|
@@ -6176,6 +6421,11 @@
|
|
|
6176
6421
|
"account": {
|
|
6177
6422
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
6178
6423
|
},
|
|
6424
|
+
"workspaceId": {
|
|
6425
|
+
"type": "integer",
|
|
6426
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
6427
|
+
"example": 2042
|
|
6428
|
+
},
|
|
6179
6429
|
"data": {
|
|
6180
6430
|
"$ref": "#/components/schemas/ListingSuspensionPayload"
|
|
6181
6431
|
}
|
|
@@ -6212,6 +6462,11 @@
|
|
|
6212
6462
|
"account": {
|
|
6213
6463
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
6214
6464
|
},
|
|
6465
|
+
"workspaceId": {
|
|
6466
|
+
"type": "integer",
|
|
6467
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
6468
|
+
"example": 2042
|
|
6469
|
+
},
|
|
6215
6470
|
"data": {
|
|
6216
6471
|
"$ref": "#/components/schemas/ListingSuspensionPayload"
|
|
6217
6472
|
}
|
|
@@ -6248,6 +6503,11 @@
|
|
|
6248
6503
|
"account": {
|
|
6249
6504
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
6250
6505
|
},
|
|
6506
|
+
"workspaceId": {
|
|
6507
|
+
"type": "integer",
|
|
6508
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
6509
|
+
"example": 2042
|
|
6510
|
+
},
|
|
6251
6511
|
"data": {
|
|
6252
6512
|
"$ref": "#/components/schemas/AccountCreatedPayload"
|
|
6253
6513
|
}
|
|
@@ -6655,6 +6915,11 @@
|
|
|
6655
6915
|
"account": {
|
|
6656
6916
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
6657
6917
|
},
|
|
6918
|
+
"workspaceId": {
|
|
6919
|
+
"type": "integer",
|
|
6920
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
6921
|
+
"example": 2042
|
|
6922
|
+
},
|
|
6658
6923
|
"data": {
|
|
6659
6924
|
"$ref": "#/components/schemas/AccountCalendarAccessChangedPayload"
|
|
6660
6925
|
}
|
|
@@ -6750,6 +7015,11 @@
|
|
|
6750
7015
|
"account": {
|
|
6751
7016
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
6752
7017
|
},
|
|
7018
|
+
"workspaceId": {
|
|
7019
|
+
"type": "integer",
|
|
7020
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
7021
|
+
"example": 2042
|
|
7022
|
+
},
|
|
6753
7023
|
"data": {
|
|
6754
7024
|
"$ref": "#/components/schemas/ConversationMessageStatusChangedPayload"
|
|
6755
7025
|
}
|
|
@@ -6829,6 +7099,11 @@
|
|
|
6829
7099
|
"account": {
|
|
6830
7100
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
6831
7101
|
},
|
|
7102
|
+
"workspaceId": {
|
|
7103
|
+
"type": "integer",
|
|
7104
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
7105
|
+
"example": 2042
|
|
7106
|
+
},
|
|
6832
7107
|
"data": {
|
|
6833
7108
|
"$ref": "#/components/schemas/AccountNotificationsMissingPayload"
|
|
6834
7109
|
}
|
|
@@ -6866,6 +7141,11 @@
|
|
|
6866
7141
|
"account": {
|
|
6867
7142
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
6868
7143
|
},
|
|
7144
|
+
"workspaceId": {
|
|
7145
|
+
"type": "integer",
|
|
7146
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
7147
|
+
"example": 2042
|
|
7148
|
+
},
|
|
6869
7149
|
"data": {
|
|
6870
7150
|
"$ref": "#/components/schemas/AccountUnitsAddedPayload"
|
|
6871
7151
|
}
|
|
@@ -6903,6 +7183,11 @@
|
|
|
6903
7183
|
"account": {
|
|
6904
7184
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
6905
7185
|
},
|
|
7186
|
+
"workspaceId": {
|
|
7187
|
+
"type": "integer",
|
|
7188
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
7189
|
+
"example": 2042
|
|
7190
|
+
},
|
|
6906
7191
|
"data": {
|
|
6907
7192
|
"$ref": "#/components/schemas/AccountImportStartedPayload"
|
|
6908
7193
|
}
|
|
@@ -6940,6 +7225,11 @@
|
|
|
6940
7225
|
"account": {
|
|
6941
7226
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
6942
7227
|
},
|
|
7228
|
+
"workspaceId": {
|
|
7229
|
+
"type": "integer",
|
|
7230
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
7231
|
+
"example": 2042
|
|
7232
|
+
},
|
|
6943
7233
|
"data": {
|
|
6944
7234
|
"$ref": "#/components/schemas/AccountImportFinishedPayload"
|
|
6945
7235
|
}
|
|
@@ -6977,6 +7267,11 @@
|
|
|
6977
7267
|
"account": {
|
|
6978
7268
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
6979
7269
|
},
|
|
7270
|
+
"workspaceId": {
|
|
7271
|
+
"type": "integer",
|
|
7272
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
7273
|
+
"example": 2042
|
|
7274
|
+
},
|
|
6980
7275
|
"data": {
|
|
6981
7276
|
"$ref": "#/components/schemas/AccountImportFinishedPayload"
|
|
6982
7277
|
}
|
|
@@ -7014,6 +7309,11 @@
|
|
|
7014
7309
|
"account": {
|
|
7015
7310
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
7016
7311
|
},
|
|
7312
|
+
"workspaceId": {
|
|
7313
|
+
"type": "integer",
|
|
7314
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
7315
|
+
"example": 2042
|
|
7316
|
+
},
|
|
7017
7317
|
"data": {
|
|
7018
7318
|
"$ref": "#/components/schemas/ConnectSessionCompletedPayload"
|
|
7019
7319
|
}
|
|
@@ -7050,6 +7350,11 @@
|
|
|
7050
7350
|
"account": {
|
|
7051
7351
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
7052
7352
|
},
|
|
7353
|
+
"workspaceId": {
|
|
7354
|
+
"type": "integer",
|
|
7355
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
7356
|
+
"example": 2042
|
|
7357
|
+
},
|
|
7053
7358
|
"data": {
|
|
7054
7359
|
"$ref": "#/components/schemas/ConnectSessionAbandonedPayload"
|
|
7055
7360
|
}
|
|
@@ -7086,6 +7391,11 @@
|
|
|
7086
7391
|
"account": {
|
|
7087
7392
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
7088
7393
|
},
|
|
7394
|
+
"workspaceId": {
|
|
7395
|
+
"type": "integer",
|
|
7396
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
7397
|
+
"example": 2042
|
|
7398
|
+
},
|
|
7089
7399
|
"data": {
|
|
7090
7400
|
"$ref": "#/components/schemas/AccountDisconnectedPayload"
|
|
7091
7401
|
}
|
|
@@ -7122,6 +7432,11 @@
|
|
|
7122
7432
|
"account": {
|
|
7123
7433
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
7124
7434
|
},
|
|
7435
|
+
"workspaceId": {
|
|
7436
|
+
"type": "integer",
|
|
7437
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
7438
|
+
"example": 2042
|
|
7439
|
+
},
|
|
7125
7440
|
"data": {
|
|
7126
7441
|
"$ref": "#/components/schemas/ReviewCreatedPayload"
|
|
7127
7442
|
}
|
|
@@ -7158,6 +7473,11 @@
|
|
|
7158
7473
|
"account": {
|
|
7159
7474
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
7160
7475
|
},
|
|
7476
|
+
"workspaceId": {
|
|
7477
|
+
"type": "integer",
|
|
7478
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
7479
|
+
"example": 2042
|
|
7480
|
+
},
|
|
7161
7481
|
"data": {
|
|
7162
7482
|
"$ref": "#/components/schemas/ReviewRespondedPayload"
|
|
7163
7483
|
}
|
|
@@ -7194,6 +7514,11 @@
|
|
|
7194
7514
|
"account": {
|
|
7195
7515
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
7196
7516
|
},
|
|
7517
|
+
"workspaceId": {
|
|
7518
|
+
"type": "integer",
|
|
7519
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
7520
|
+
"example": 2042
|
|
7521
|
+
},
|
|
7197
7522
|
"data": {
|
|
7198
7523
|
"$ref": "#/components/schemas/AiOperationCompletedPayload"
|
|
7199
7524
|
}
|
|
@@ -7230,6 +7555,11 @@
|
|
|
7230
7555
|
"account": {
|
|
7231
7556
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
7232
7557
|
},
|
|
7558
|
+
"workspaceId": {
|
|
7559
|
+
"type": "integer",
|
|
7560
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
7561
|
+
"example": 2042
|
|
7562
|
+
},
|
|
7233
7563
|
"data": {
|
|
7234
7564
|
"$ref": "#/components/schemas/AiOperationFailedPayload"
|
|
7235
7565
|
}
|
|
@@ -7266,6 +7596,11 @@
|
|
|
7266
7596
|
"account": {
|
|
7267
7597
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
7268
7598
|
},
|
|
7599
|
+
"workspaceId": {
|
|
7600
|
+
"type": "integer",
|
|
7601
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
7602
|
+
"example": 2042
|
|
7603
|
+
},
|
|
7269
7604
|
"data": {
|
|
7270
7605
|
"$ref": "#/components/schemas/PaymentCompletedPayload"
|
|
7271
7606
|
}
|
|
@@ -7302,6 +7637,11 @@
|
|
|
7302
7637
|
"account": {
|
|
7303
7638
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
7304
7639
|
},
|
|
7640
|
+
"workspaceId": {
|
|
7641
|
+
"type": "integer",
|
|
7642
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
7643
|
+
"example": 2042
|
|
7644
|
+
},
|
|
7305
7645
|
"data": {
|
|
7306
7646
|
"$ref": "#/components/schemas/PayoutCompletedPayload"
|
|
7307
7647
|
}
|
|
@@ -7338,6 +7678,11 @@
|
|
|
7338
7678
|
"account": {
|
|
7339
7679
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
7340
7680
|
},
|
|
7681
|
+
"workspaceId": {
|
|
7682
|
+
"type": "integer",
|
|
7683
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
7684
|
+
"example": 2042
|
|
7685
|
+
},
|
|
7341
7686
|
"data": {
|
|
7342
7687
|
"$ref": "#/components/schemas/PaymentRefundedPayload"
|
|
7343
7688
|
}
|
|
@@ -7374,6 +7719,11 @@
|
|
|
7374
7719
|
"account": {
|
|
7375
7720
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
7376
7721
|
},
|
|
7722
|
+
"workspaceId": {
|
|
7723
|
+
"type": "integer",
|
|
7724
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
7725
|
+
"example": 2042
|
|
7726
|
+
},
|
|
7377
7727
|
"data": {
|
|
7378
7728
|
"$ref": "#/components/schemas/RepullPingPayload"
|
|
7379
7729
|
}
|
|
@@ -7410,6 +7760,11 @@
|
|
|
7410
7760
|
"account": {
|
|
7411
7761
|
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
7412
7762
|
},
|
|
7763
|
+
"workspaceId": {
|
|
7764
|
+
"type": "integer",
|
|
7765
|
+
"description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
|
|
7766
|
+
"example": 2042
|
|
7767
|
+
},
|
|
7413
7768
|
"data": {
|
|
7414
7769
|
"$ref": "#/components/schemas/UsageQuotaWarningPayload"
|
|
7415
7770
|
}
|
|
@@ -7503,7 +7858,7 @@
|
|
|
7503
7858
|
},
|
|
7504
7859
|
"workspaceId": {
|
|
7505
7860
|
"type": "integer",
|
|
7506
|
-
"description": "The migration's workspace \u2014 pass it as `X-Workspace-Id`, or to `GET /v1/migrations/{workspaceId}`."
|
|
7861
|
+
"description": "The migration's workspace \u2014 pass it as `X-Workspace-Id`, or to `GET /v1/migrations/{workspaceId}`. Always present on migration events. A JSON number here; `POST /v1/connect` and `GET /v1/workspaces` return the same id as a string, so compare as strings."
|
|
7507
7862
|
},
|
|
7508
7863
|
"data": {
|
|
7509
7864
|
"$ref": "#/components/schemas/MigrationImportPayload"
|
|
@@ -7545,7 +7900,7 @@
|
|
|
7545
7900
|
},
|
|
7546
7901
|
"workspaceId": {
|
|
7547
7902
|
"type": "integer",
|
|
7548
|
-
"description": "The migration's workspace \u2014 pass it as `X-Workspace-Id`, or to `GET /v1/migrations/{workspaceId}`."
|
|
7903
|
+
"description": "The migration's workspace \u2014 pass it as `X-Workspace-Id`, or to `GET /v1/migrations/{workspaceId}`. Always present on migration events. A JSON number here; `POST /v1/connect` and `GET /v1/workspaces` return the same id as a string, so compare as strings."
|
|
7549
7904
|
},
|
|
7550
7905
|
"data": {
|
|
7551
7906
|
"$ref": "#/components/schemas/MigrationImportPayload"
|
|
@@ -21589,7 +21944,7 @@
|
|
|
21589
21944
|
"get": {
|
|
21590
21945
|
"operationId": "get_connect_status",
|
|
21591
21946
|
"summary": "Get connection status",
|
|
21592
|
-
"description": "Returns the current connection status for a provider, including host metadata (display name + avatar) for Airbnb so clients can render an account-level confirmation UI.\n\n**Access level.** `accessType` says what the connection may do: `read_only`, `messaging` or `full_access` (`null` when unknown). Airbnb reports it per host on `accounts[]` (the tier each host's token was granted with) and at the top level for the host in `externalAccountId`; Vrbo (`vrbo-login`) per account; Booking.com is always `full_access`, the Booking.com Extranet always `messaging`; a PMS is `read_only` when every `writePolicy` switch is off, else `full_access`. See the `ConnectionAccessType` schema for the meaning per provider.",
|
|
21947
|
+
"description": "Returns the current connection status for a provider, including host metadata (display name + avatar) for Airbnb so clients can render an account-level confirmation UI.\n\n**Access level.** `accessType` says what the connection may do: `read_only`, `messaging` or `full_access` (`null` when unknown). Airbnb reports it per host on `accounts[]` (the tier each host's token was granted with) and at the top level for the host in `externalAccountId`; Vrbo (`vrbo-login`) per account; Booking.com is always `full_access`, the Booking.com Extranet always `messaging`; a PMS is `read_only` when every `writePolicy` switch is off, else `full_access`. See the `ConnectionAccessType` schema for the meaning per provider.\n\n**PriceLabs (an app).** `accounts[]` lists every PriceLabs connection of the workspace (each one key), with `scope`, `listingCount`, `keyMasked` and `health`: `status` (`active`, `idle`, `failing`, `never_connected`), last request, last successful price push, pushes per day for 7 days, error rates and the latest errors. Revoked ones stay listed as `disconnected` with `health: null`. `externalAccountId` is `null` (PriceLabs has no account id to give us); `id` is the connection.",
|
|
21593
21948
|
"tags": [
|
|
21594
21949
|
"Connect"
|
|
21595
21950
|
],
|
|
@@ -21614,7 +21969,7 @@
|
|
|
21614
21969
|
"post": {
|
|
21615
21970
|
"operationId": "create_connection",
|
|
21616
21971
|
"summary": "Connect to PMS/OTA provider",
|
|
21617
|
-
"description": "Establish a connection to a PMS or OTA platform. Credentials vary by provider \u2014 see docs for each provider.\n\nAirbnb-specific: pass `redirectUrl` (where to send the user after consent) and optionally `accessType`. Three tiers: `read_only` grants read-only scopes; `messaging` (shown to hosts as \"Messaging & reviews\") grants read scopes plus message read/send and review writes (reply to guest reviews, submit host reviews \u2014 Airbnb's `reviews_write`) but NOT property management, so it can coexist with another app (e.g. an existing PMS) that already holds property management on the same Airbnb account; `full_access` \u2014 the default \u2014 grants full host scopes including the exclusive property management (only one app per Airbnb account can hold it). The response returns a hosted `url` to redirect the user to.\n\nBooking.com: pass `redirectUrl` (no `accessType`). The response returns a hosted `url` \u2014 send the user there to select our connectivity provider in their Booking.com Extranet and paste their Hotel ID. Same response shape as Airbnb (`url`, `sessionId`, `expiresAt`).\n\nPMS providers are not connected by this call: send their credentials to `POST /v1/connect/{provider}/credentials`, or start a hosted session with `POST /v1/connect`.",
|
|
21972
|
+
"description": "Establish a connection to a PMS or OTA platform. Credentials vary by provider \u2014 see docs for each provider.\n\nAirbnb-specific: pass `redirectUrl` (where to send the user after consent) and optionally `accessType`. Three tiers: `read_only` grants read-only scopes; `messaging` (shown to hosts as \"Messaging & reviews\") grants read scopes plus message read/send and review writes (reply to guest reviews, submit host reviews \u2014 Airbnb's `reviews_write`) but NOT property management, so it can coexist with another app (e.g. an existing PMS) that already holds property management on the same Airbnb account; `full_access` \u2014 the default \u2014 grants full host scopes including the exclusive property management (only one app per Airbnb account can hold it). The response returns a hosted `url` to redirect the user to.\n\nBooking.com: pass `redirectUrl` (no `accessType`). The response returns a hosted `url` \u2014 send the user there to select our connectivity provider in their Booking.com Extranet and paste their Hotel ID. Same response shape as Airbnb (`url`, `sessionId`, `expiresAt`).\n\nPMS providers are not connected by this call: send their credentials to `POST /v1/connect/{provider}/credentials`, or start a hosted session with `POST /v1/connect`.\n\n**PriceLabs (an app).** Pass `redirectUrl` (and optionally `state`, `locale`, `workspace`). The response returns a hosted `url` for the session's workspace: yours, the one `X-Workspace-Id` names, or a new sub-workspace when you send `workspace.name` (its id comes back as `workspaceId`). The page shows the host a key for **every listing of that workspace, including listings added later**, with the steps to paste it into PriceLabs, then waits for PriceLabs' first call and completes like every provider: redirect to `redirectUrl` (`status=connected&connectionId=\u2026`) or the `repull:connect:completed` popup message, and `connect.session.completed`. When PriceLabs first uses the key, `account.created` is sent. To keep PriceLabs away from the rest of an account, put the listings it should price in a sub-workspace and connect PriceLabs there. To issue the key yourself (no hosted page, or only some listings) use `POST /v1/connect/pricelabs/key`.",
|
|
21618
21973
|
"tags": [
|
|
21619
21974
|
"Connect"
|
|
21620
21975
|
],
|
|
@@ -21656,6 +22011,24 @@
|
|
|
21656
22011
|
"type": "string",
|
|
21657
22012
|
"description": "Airbnb + Booking.com \u2014 your own correlation token, e.g. your user id (at most 500 characters). Echoed on the redirect back (`&state=`) and in the `connect.session.completed` webhook."
|
|
21658
22013
|
},
|
|
22014
|
+
"workspace": {
|
|
22015
|
+
"type": "object",
|
|
22016
|
+
"description": "PriceLabs only: open a new sub-workspace for this host and connect PriceLabs there (its id is returned as `workspaceId`). Don't send it together with `X-Workspace-Id`.",
|
|
22017
|
+
"properties": {
|
|
22018
|
+
"name": {
|
|
22019
|
+
"type": "string",
|
|
22020
|
+
"maxLength": 120
|
|
22021
|
+
},
|
|
22022
|
+
"externalRef": {
|
|
22023
|
+
"type": "string",
|
|
22024
|
+
"maxLength": 120,
|
|
22025
|
+
"description": "Your own id for this host."
|
|
22026
|
+
}
|
|
22027
|
+
},
|
|
22028
|
+
"required": [
|
|
22029
|
+
"name"
|
|
22030
|
+
]
|
|
22031
|
+
},
|
|
21659
22032
|
"locale": {
|
|
21660
22033
|
"type": "string",
|
|
21661
22034
|
"nullable": true,
|
|
@@ -21683,7 +22056,7 @@
|
|
|
21683
22056
|
"delete": {
|
|
21684
22057
|
"operationId": "delete_connection",
|
|
21685
22058
|
"summary": "Disconnect provider",
|
|
21686
|
-
"description": "Disconnect ONE connected account of a provider from this workspace. Supported for `airbnb`, `booking`, `vrbo-login` and every PMS (`guesty`, `hostaway`, `hospitable`, \u2026).\n\n**Which account.** Pass `accountId` \u2014 for Airbnb the host id (`accounts[].externalAccountId` from `GET /v1/connect/airbnb`), for Booking.com the hotel id, for `vrbo-login` the sign-in's Vrbo account id (`accounts[].externalAccountId` from `GET /v1/connect/vrbo-login`; the old sign-in id still works until 2027-02-12). It is optional only when the workspace has exactly one account for the provider. With several and no `accountId`, the call returns `422` with the account ids in `valid_values` instead of guessing. An `accountId` that is not connected to this workspace returns `404`. Disconnecting one account leaves the others connected.\n\n**What happens.** The account's stored authorization is removed and it stops syncing. Its listings are **deactivated**, not deleted: they stop counting toward your plan's listing limit, their data is kept, and they are returned in `listingsDeactivated`. A listing that is still connected through another account or channel stays active. Reconnect the account, then activate the listings with `POST /v1/listings/status`.\n\nThe change is all or nothing. For Airbnb, the host can also revoke access on Airbnb's side (Account \u2192 Privacy & sharing \u2192 Connected apps); that alone does not update this workspace, so call this endpoint as well.\n\n**PMS.** A workspace has one connection per PMS, so no `accountId` is needed. Disconnecting stops syncing, clears the stored credentials and deactivates the connection's listings; nothing is deleted, and reservations and messages stay. The response also carries `connectionId`. The PMS's own webhook subscription is left in place, because the same PMS account can be connected to another workspace (such as a Repull Migrate workspace). Reconnect with a new Connect session.\n\nOther providers return `501 not_implemented` with instructions for disconnecting on the provider's side. That answer depends only on the provider, not on your workspace: an unsupported provider returns `501` whether or not you have a connection to it. `404 not_found` on a supported provider means this workspace has no connection to it (or, with `accountId`, that the account is not connected here).",
|
|
22059
|
+
"description": "Disconnect ONE connected account of a provider from this workspace. Supported for `airbnb`, `booking`, `vrbo-login` and every PMS (`guesty`, `hostaway`, `hospitable`, \u2026).\n\n**Which account.** Pass `accountId` \u2014 for Airbnb the host id (`accounts[].externalAccountId` from `GET /v1/connect/airbnb`), for Booking.com the hotel id, for `vrbo-login` the sign-in's Vrbo account id (`accounts[].externalAccountId` from `GET /v1/connect/vrbo-login`; the old sign-in id still works until 2027-02-12). It is optional only when the workspace has exactly one account for the provider. With several and no `accountId`, the call returns `422` with the account ids in `valid_values` instead of guessing. An `accountId` that is not connected to this workspace returns `404`. Disconnecting one account leaves the others connected.\n\n**What happens.** The account's stored authorization is removed and it stops syncing. Its listings are **deactivated**, not deleted: they stop counting toward your plan's listing limit, their data is kept, and they are returned in `listingsDeactivated`. A listing that is still connected through another account or channel stays active. Reconnect the account, then activate the listings with `POST /v1/listings/status`.\n\nThe change is all or nothing. For Airbnb, the host can also revoke access on Airbnb's side (Account \u2192 Privacy & sharing \u2192 Connected apps); that alone does not update this workspace, so call this endpoint as well.\n\n**PMS.** A workspace has one connection per PMS, so no `accountId` is needed. Disconnecting stops syncing, clears the stored credentials and deactivates the connection's listings; nothing is deleted, and reservations and messages stay. The response also carries `connectionId`. The PMS's own webhook subscription is left in place, because the same PMS account can be connected to another workspace (such as a Repull Migrate workspace). Reconnect with a new Connect session.\n\nOther providers return `501 not_implemented` with instructions for disconnecting on the provider's side. That answer depends only on the provider, not on your workspace: an unsupported provider returns `501` whether or not you have a connection to it. `404 not_found` on a supported provider means this workspace has no connection to it (or, with `accountId`, that the account is not connected here).\n\n**PriceLabs (an app).** Revokes one PriceLabs connection (its key): PriceLabs loses access at once; nothing it already pushed changes and no listing is deactivated. Pass `id` (an `accounts[].id` from `GET /v1/connect/pricelabs`); it is optional only when the workspace has one connected. Sends `account.disconnected` with reason `manual_disconnect`.",
|
|
21687
22060
|
"tags": [
|
|
21688
22061
|
"Connect"
|
|
21689
22062
|
],
|
|
@@ -21700,6 +22073,16 @@
|
|
|
21700
22073
|
"example": "143778955"
|
|
21701
22074
|
},
|
|
21702
22075
|
"description": "The account to disconnect: the Airbnb host id (`accounts[].externalAccountId` on `GET /v1/connect/airbnb`) or the Booking.com hotel id. Required when the workspace has more than one connected account for the provider. Not the same as the `X-Account-Id` header."
|
|
22076
|
+
},
|
|
22077
|
+
{
|
|
22078
|
+
"name": "id",
|
|
22079
|
+
"in": "query",
|
|
22080
|
+
"required": false,
|
|
22081
|
+
"schema": {
|
|
22082
|
+
"type": "string",
|
|
22083
|
+
"example": "812"
|
|
22084
|
+
},
|
|
22085
|
+
"description": "PriceLabs only: the connection to revoke (`accounts[].id` on `GET /v1/connect/pricelabs`). Required when the workspace has more than one."
|
|
21703
22086
|
}
|
|
21704
22087
|
],
|
|
21705
22088
|
"responses": {
|
|
@@ -72661,6 +73044,191 @@
|
|
|
72661
73044
|
}
|
|
72662
73045
|
}
|
|
72663
73046
|
}
|
|
73047
|
+
},
|
|
73048
|
+
"/v1/connect/pricelabs/key": {
|
|
73049
|
+
"post": {
|
|
73050
|
+
"operationId": "createPriceLabsKey",
|
|
73051
|
+
"summary": "Create a PriceLabs key (headless)",
|
|
73052
|
+
"description": "Issue a PriceLabs key without the hosted page, for platforms that show it in their own app. The key is for this workspace, or the one `X-Workspace-Id` names; it is returned once, in `key`, and the host pastes it into PriceLabs (add an integration, choose Repull).\n\n- No `listingIds`: every listing of the workspace, including listings added later. Recommended, with the listings PriceLabs should price in their own sub-workspace.\n- `listingIds`: only those listings (they must belong to the workspace). Listings added later are not included.\n\nThe key works only inside PriceLabs; it is refused on every Repull API endpoint. The connection appears on `GET /v1/connect/pricelabs` with its `health`; `account.created` is sent when PriceLabs first uses the key. Revoke it with `DELETE /v1/connect/pricelabs?id=`.",
|
|
73053
|
+
"tags": [
|
|
73054
|
+
"Connect"
|
|
73055
|
+
],
|
|
73056
|
+
"requestBody": {
|
|
73057
|
+
"required": false,
|
|
73058
|
+
"content": {
|
|
73059
|
+
"application/json": {
|
|
73060
|
+
"schema": {
|
|
73061
|
+
"type": "object",
|
|
73062
|
+
"properties": {
|
|
73063
|
+
"listingIds": {
|
|
73064
|
+
"type": "array",
|
|
73065
|
+
"minItems": 1,
|
|
73066
|
+
"maxItems": 1000,
|
|
73067
|
+
"items": {
|
|
73068
|
+
"type": "string"
|
|
73069
|
+
},
|
|
73070
|
+
"description": "Only these listings of the workspace (`GET /v1/properties`). Omit for every listing, new ones included.",
|
|
73071
|
+
"example": [
|
|
73072
|
+
"4118",
|
|
73073
|
+
"4119"
|
|
73074
|
+
]
|
|
73075
|
+
},
|
|
73076
|
+
"label": {
|
|
73077
|
+
"type": "string",
|
|
73078
|
+
"maxLength": 120,
|
|
73079
|
+
"description": "A name for the connection.",
|
|
73080
|
+
"example": "PriceLabs \u2014 beach houses"
|
|
73081
|
+
}
|
|
73082
|
+
},
|
|
73083
|
+
"additionalProperties": false
|
|
73084
|
+
},
|
|
73085
|
+
"examples": {
|
|
73086
|
+
"workspace": {
|
|
73087
|
+
"summary": "Every listing of the workspace",
|
|
73088
|
+
"value": {}
|
|
73089
|
+
},
|
|
73090
|
+
"listings": {
|
|
73091
|
+
"summary": "Specific listings",
|
|
73092
|
+
"value": {
|
|
73093
|
+
"listingIds": [
|
|
73094
|
+
"4118",
|
|
73095
|
+
"4119"
|
|
73096
|
+
]
|
|
73097
|
+
}
|
|
73098
|
+
}
|
|
73099
|
+
}
|
|
73100
|
+
}
|
|
73101
|
+
}
|
|
73102
|
+
},
|
|
73103
|
+
"responses": {
|
|
73104
|
+
"201": {
|
|
73105
|
+
"description": "Created. `key` is shown only in this response.",
|
|
73106
|
+
"content": {
|
|
73107
|
+
"application/json": {
|
|
73108
|
+
"schema": {
|
|
73109
|
+
"allOf": [
|
|
73110
|
+
{
|
|
73111
|
+
"$ref": "#/components/schemas/Connection"
|
|
73112
|
+
},
|
|
73113
|
+
{
|
|
73114
|
+
"type": "object",
|
|
73115
|
+
"required": [
|
|
73116
|
+
"key",
|
|
73117
|
+
"instructions"
|
|
73118
|
+
],
|
|
73119
|
+
"properties": {
|
|
73120
|
+
"key": {
|
|
73121
|
+
"type": "string",
|
|
73122
|
+
"example": "sk_live_YOUR_PRICELABS_KEY",
|
|
73123
|
+
"description": "The key to paste into PriceLabs. Returned only here."
|
|
73124
|
+
},
|
|
73125
|
+
"instructions": {
|
|
73126
|
+
"type": "object",
|
|
73127
|
+
"description": "What to tell the host, ready to show.",
|
|
73128
|
+
"properties": {
|
|
73129
|
+
"steps": {
|
|
73130
|
+
"type": "array",
|
|
73131
|
+
"items": {
|
|
73132
|
+
"type": "string"
|
|
73133
|
+
}
|
|
73134
|
+
},
|
|
73135
|
+
"scope": {
|
|
73136
|
+
"type": "string"
|
|
73137
|
+
}
|
|
73138
|
+
}
|
|
73139
|
+
}
|
|
73140
|
+
}
|
|
73141
|
+
}
|
|
73142
|
+
]
|
|
73143
|
+
}
|
|
73144
|
+
}
|
|
73145
|
+
}
|
|
73146
|
+
},
|
|
73147
|
+
"400": {
|
|
73148
|
+
"$ref": "#/components/responses/BadRequest"
|
|
73149
|
+
},
|
|
73150
|
+
"401": {
|
|
73151
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
73152
|
+
},
|
|
73153
|
+
"404": {
|
|
73154
|
+
"$ref": "#/components/responses/NotFound"
|
|
73155
|
+
},
|
|
73156
|
+
"422": {
|
|
73157
|
+
"$ref": "#/components/responses/UnprocessableEntity"
|
|
73158
|
+
},
|
|
73159
|
+
"500": {
|
|
73160
|
+
"$ref": "#/components/responses/InternalError"
|
|
73161
|
+
}
|
|
73162
|
+
}
|
|
73163
|
+
}
|
|
73164
|
+
},
|
|
73165
|
+
"/v1/connect/pricelabs/session": {
|
|
73166
|
+
"get": {
|
|
73167
|
+
"operationId": "getPriceLabsSessionStatus",
|
|
73168
|
+
"summary": "PriceLabs session status",
|
|
73169
|
+
"description": "Where a hosted PriceLabs session stands: `pending` (no key issued yet), `waiting` (the key is shown, PriceLabs has not called yet), `connected` (PriceLabs has called with the key; the session is complete) or `expired`. Called by the hosted Connect page while it waits. No API key \u2014 the session ID is the capability token.",
|
|
73170
|
+
"tags": [
|
|
73171
|
+
"Connect"
|
|
73172
|
+
],
|
|
73173
|
+
"security": [],
|
|
73174
|
+
"parameters": [
|
|
73175
|
+
{
|
|
73176
|
+
"name": "sessionId",
|
|
73177
|
+
"in": "query",
|
|
73178
|
+
"required": true,
|
|
73179
|
+
"schema": {
|
|
73180
|
+
"type": "string"
|
|
73181
|
+
}
|
|
73182
|
+
}
|
|
73183
|
+
],
|
|
73184
|
+
"responses": {
|
|
73185
|
+
"200": {
|
|
73186
|
+
"description": "Session status",
|
|
73187
|
+
"content": {
|
|
73188
|
+
"application/json": {
|
|
73189
|
+
"schema": {
|
|
73190
|
+
"type": "object",
|
|
73191
|
+
"properties": {
|
|
73192
|
+
"status": {
|
|
73193
|
+
"type": "string",
|
|
73194
|
+
"enum": [
|
|
73195
|
+
"pending",
|
|
73196
|
+
"waiting",
|
|
73197
|
+
"connected",
|
|
73198
|
+
"expired"
|
|
73199
|
+
]
|
|
73200
|
+
},
|
|
73201
|
+
"connectionId": {
|
|
73202
|
+
"type": "string",
|
|
73203
|
+
"nullable": true,
|
|
73204
|
+
"description": "The PriceLabs connection once the session holds a key."
|
|
73205
|
+
}
|
|
73206
|
+
}
|
|
73207
|
+
}
|
|
73208
|
+
}
|
|
73209
|
+
}
|
|
73210
|
+
},
|
|
73211
|
+
"400": {
|
|
73212
|
+
"$ref": "#/components/responses/BadRequest"
|
|
73213
|
+
},
|
|
73214
|
+
"404": {
|
|
73215
|
+
"$ref": "#/components/responses/NotFound"
|
|
73216
|
+
},
|
|
73217
|
+
"409": {
|
|
73218
|
+
"$ref": "#/components/responses/Conflict"
|
|
73219
|
+
},
|
|
73220
|
+
"410": {
|
|
73221
|
+
"description": "The session expired",
|
|
73222
|
+
"content": {
|
|
73223
|
+
"application/json": {
|
|
73224
|
+
"schema": {
|
|
73225
|
+
"$ref": "#/components/schemas/Error"
|
|
73226
|
+
}
|
|
73227
|
+
}
|
|
73228
|
+
}
|
|
73229
|
+
}
|
|
73230
|
+
}
|
|
73231
|
+
}
|
|
72664
73232
|
}
|
|
72665
73233
|
}
|
|
72666
73234
|
}
|