repull 0.2.49 → 0.2.51
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/airbnb_api.rb +2 -2
- data/lib/repull/api/connections_api.rb +2 -2
- data/lib/repull/api/conversations_api.rb +2 -2
- data/lib/repull/models/account_calendar_access_changed_event.rb +282 -0
- data/lib/repull/models/account_calendar_access_changed_payload.rb +268 -0
- data/lib/repull/models/account_notifications_missing_event.rb +282 -0
- data/lib/repull/models/account_notifications_missing_payload.rb +278 -0
- data/lib/repull/models/apply_connection_mappings_request_mappings_inner.rb +1 -1
- data/lib/repull/models/connect_status_accounts_inner.rb +23 -2
- data/lib/repull/models/conversation_message_status_changed_event.rb +282 -0
- data/lib/repull/models/conversation_message_status_changed_payload.rb +233 -0
- data/lib/repull/models/get_airbnb_booking_settings200_response_data_advance_notice.rb +14 -3
- data/lib/repull/models/get_listing_calendar_sync200_response_channels_inner.rb +33 -1
- data/lib/repull/models/guest.rb +35 -2
- data/lib/repull/models/guest_contact.rb +37 -5
- data/lib/repull/models/guest_phone_type.rb +40 -0
- data/lib/repull/models/guest_profile.rb +35 -1
- data/lib/repull/models/list_connection_units200_response.rb +10 -1
- data/lib/repull/models/list_connection_units200_response_units_inner.rb +1 -1
- data/lib/repull/models/message.rb +2 -2
- data/lib/repull/models/reservation.rb +11 -1
- data/lib/repull/models/reservation_primary_guest.rb +45 -2
- data/lib/repull/models/send_message_response.rb +1 -0
- data/lib/repull/models/start_connection_import_request.rb +1 -1
- data/lib/repull/models/update_airbnb_booking_settings_request_advance_notice.rb +56 -17
- data/lib/repull/models/vrbo_calendar_access.rb +204 -0
- data/lib/repull/models/vrbo_notifications.rb +192 -0
- data/lib/repull/models/webhook_event.rb +6 -0
- data/lib/repull/models/webhook_event_type.rb +4 -1
- data/lib/repull/version.rb +1 -1
- data/lib/repull.rb +9 -0
- data/openapi/v1.json +493 -21
- metadata +11 -2
data/openapi/v1.json
CHANGED
|
@@ -530,6 +530,15 @@
|
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
532
|
},
|
|
533
|
+
"GuestPhoneType": {
|
|
534
|
+
"type": "string",
|
|
535
|
+
"enum": [
|
|
536
|
+
"airbnb_relay",
|
|
537
|
+
"guest"
|
|
538
|
+
],
|
|
539
|
+
"description": "Whether `phone` is the guest's own number or an Airbnb relay number. Since late October 2026 Airbnb never shares a guest's real phone number. For an Airbnb stay where the listing, host and guest are all in the same country and that country is the US or Canada, Airbnb gives a temporary relay number instead (`airbnb_relay`); every other Airbnb stay has no phone at all. A relay number forwards SMS only (no MMS, RCS or images; about 1,000 characters including Airbnb's prefix, not split). It stops working 48 hours after checkout or when the reservation is cancelled, and it can change during the stay without a reservation webhook (re-read the reservation for the current one). The same relay number is used for other guests of other hosts, so never use it to identify or match a guest. Texting from a number Airbnb does not know: the first message must be the reservation's confirmation code (for example `HM12345678`); text from the host's Airbnb contact number for automatic delivery. `guest` means the number as the channel or the host recorded it.",
|
|
540
|
+
"example": "airbnb_relay"
|
|
541
|
+
},
|
|
533
542
|
"ReservationPrimaryGuest": {
|
|
534
543
|
"type": "object",
|
|
535
544
|
"description": "Inline guest summary resolved by JOIN-ing the `guests` table. Populated for every reservation that has a linked guest row; OMITTED entirely (not null) for owner-blocks / pre-arrival rows / partial-sync gaps. Always optional-chain in SDK consumers.",
|
|
@@ -555,7 +564,22 @@
|
|
|
555
564
|
"phone": {
|
|
556
565
|
"type": "string",
|
|
557
566
|
"nullable": true,
|
|
558
|
-
"description": "Primary phone contact (or first non-primary if no primary set)."
|
|
567
|
+
"description": "Primary phone contact (or first non-primary if no primary set). For an Airbnb stay this may be an Airbnb relay number \u2014 check `phoneType`."
|
|
568
|
+
},
|
|
569
|
+
"phoneType": {
|
|
570
|
+
"allOf": [
|
|
571
|
+
{
|
|
572
|
+
"$ref": "#/components/schemas/GuestPhoneType"
|
|
573
|
+
}
|
|
574
|
+
],
|
|
575
|
+
"description": "Present whenever `phone` is. `airbnb_relay` when `phone` is a temporary Airbnb relay number (SMS only, expires 48h after checkout, shared across hosts, never a guest identifier); `guest` otherwise."
|
|
576
|
+
},
|
|
577
|
+
"phoneExpiresAt": {
|
|
578
|
+
"type": "string",
|
|
579
|
+
"format": "date-time",
|
|
580
|
+
"nullable": true,
|
|
581
|
+
"description": "Only next to an Airbnb relay number: when it stops working (checkout + 48 hours). `null` when Airbnb did not give the checkout time with its offset. A cancelled reservation's relay number stops working at cancellation, whatever this says.",
|
|
582
|
+
"example": "2026-11-22T16:00:00.000Z"
|
|
559
583
|
},
|
|
560
584
|
"language": {
|
|
561
585
|
"type": "string",
|
|
@@ -883,6 +907,11 @@
|
|
|
883
907
|
},
|
|
884
908
|
"description": "Door codes for the stay from the PMS's lock manager (today: Guesty Locks Manager), refreshed about every 30 minutes for stays checking in within 14 days that have not checked out. `null` when the reservation's codes are not read from a PMS. `[]` when they are and there is none yet, and for a cancelled stay."
|
|
885
909
|
},
|
|
910
|
+
"suggestedDoorCode": {
|
|
911
|
+
"type": "string",
|
|
912
|
+
"description": "Airbnb reservations only, when Airbnb sends it: the door code Airbnb suggests \u2014 the last 4 digits of the booker's verified phone number, or random digits when there is none. Use it instead of deriving a code from the guest's phone, which Airbnb no longer shares. Omitted on every other reservation.",
|
|
913
|
+
"example": "5446"
|
|
914
|
+
},
|
|
886
915
|
"primaryGuest": {
|
|
887
916
|
"allOf": [
|
|
888
917
|
{
|
|
@@ -993,7 +1022,16 @@
|
|
|
993
1022
|
"phone": {
|
|
994
1023
|
"type": "string",
|
|
995
1024
|
"nullable": true,
|
|
996
|
-
"description": "Primary phone contact (or first non-primary if no primary set)."
|
|
1025
|
+
"description": "Primary phone contact (or first non-primary if no primary set). May be an Airbnb relay number \u2014 check `phoneType`."
|
|
1026
|
+
},
|
|
1027
|
+
"phoneType": {
|
|
1028
|
+
"allOf": [
|
|
1029
|
+
{
|
|
1030
|
+
"$ref": "#/components/schemas/GuestPhoneType"
|
|
1031
|
+
}
|
|
1032
|
+
],
|
|
1033
|
+
"nullable": true,
|
|
1034
|
+
"description": "`airbnb_relay` when `phone` is a temporary Airbnb relay number (SMS only, expires 48h after checkout, shared across hosts, never a guest identifier); `guest` otherwise; `null` when there is no phone."
|
|
997
1035
|
},
|
|
998
1036
|
"email": {
|
|
999
1037
|
"type": "string",
|
|
@@ -1049,6 +1087,14 @@
|
|
|
1049
1087
|
"type": "string",
|
|
1050
1088
|
"format": "date-time",
|
|
1051
1089
|
"nullable": true
|
|
1090
|
+
},
|
|
1091
|
+
"phoneType": {
|
|
1092
|
+
"allOf": [
|
|
1093
|
+
{
|
|
1094
|
+
"$ref": "#/components/schemas/GuestPhoneType"
|
|
1095
|
+
}
|
|
1096
|
+
],
|
|
1097
|
+
"description": "Phone contacts only: `airbnb_relay` when this is a temporary Airbnb relay number (SMS only, expires 48h after checkout, shared across hosts, never a guest identifier); `guest` otherwise."
|
|
1052
1098
|
}
|
|
1053
1099
|
}
|
|
1054
1100
|
},
|
|
@@ -1146,7 +1192,17 @@
|
|
|
1146
1192
|
},
|
|
1147
1193
|
"phone": {
|
|
1148
1194
|
"type": "string",
|
|
1149
|
-
"nullable": true
|
|
1195
|
+
"nullable": true,
|
|
1196
|
+
"description": "Primary phone contact. May be an Airbnb relay number \u2014 check `phoneType`."
|
|
1197
|
+
},
|
|
1198
|
+
"phoneType": {
|
|
1199
|
+
"allOf": [
|
|
1200
|
+
{
|
|
1201
|
+
"$ref": "#/components/schemas/GuestPhoneType"
|
|
1202
|
+
}
|
|
1203
|
+
],
|
|
1204
|
+
"nullable": true,
|
|
1205
|
+
"description": "`airbnb_relay` when `phone` is a temporary Airbnb relay number; `guest` otherwise; `null` when there is no phone."
|
|
1150
1206
|
},
|
|
1151
1207
|
"email": {
|
|
1152
1208
|
"type": "string",
|
|
@@ -1502,12 +1558,12 @@
|
|
|
1502
1558
|
},
|
|
1503
1559
|
"status": {
|
|
1504
1560
|
"type": "string",
|
|
1505
|
-
"description": "Delivery state. Inbound messages are `received`. An outbound message is `sending` while it is
|
|
1561
|
+
"description": "Delivery state. Inbound messages are `received`. An outbound message is `sending` while it is handed to the channel, `queued` when the channel was busy and Repull is still delivering it in the background (Vrbo), `sent` once the channel accepted it, or `failed`. Only `sent` (or `received`) means the guest can see it. A change from `queued` is sent as `conversation.message.status_changed`."
|
|
1506
1562
|
},
|
|
1507
1563
|
"statusReason": {
|
|
1508
1564
|
"type": "string",
|
|
1509
1565
|
"nullable": true,
|
|
1510
|
-
"description": "Why a message is still `sending` or `failed`, in plain words. `null` otherwise."
|
|
1566
|
+
"description": "Why a message is still `sending` or `queued`, or why it `failed`, in plain words. `null` otherwise."
|
|
1511
1567
|
},
|
|
1512
1568
|
"senderType": {
|
|
1513
1569
|
"type": "string",
|
|
@@ -2580,7 +2636,25 @@
|
|
|
2580
2636
|
"type": "string",
|
|
2581
2637
|
"format": "date-time",
|
|
2582
2638
|
"nullable": true,
|
|
2583
|
-
"
|
|
2639
|
+
"deprecated": true,
|
|
2640
|
+
"description": "Deprecated: use `notifications`. Vrbo only. When Vrbo's FIRST notification reached `notificationEmail`; it stays set even if notifications later stop. `null` until then."
|
|
2641
|
+
},
|
|
2642
|
+
"notifications": {
|
|
2643
|
+
"allOf": [
|
|
2644
|
+
{
|
|
2645
|
+
"$ref": "#/components/schemas/VrboNotifications"
|
|
2646
|
+
}
|
|
2647
|
+
],
|
|
2648
|
+
"description": "Vrbo only. Whether Vrbo's notification emails reach Repull now (`state`), when the last one did, and the address to add. When `state` is `missing`, ask the host to add `address` on Vrbo; `account.notifications_missing` is sent when that happens."
|
|
2649
|
+
},
|
|
2650
|
+
"calendar": {
|
|
2651
|
+
"nullable": true,
|
|
2652
|
+
"allOf": [
|
|
2653
|
+
{
|
|
2654
|
+
"$ref": "#/components/schemas/VrboCalendarAccess"
|
|
2655
|
+
}
|
|
2656
|
+
],
|
|
2657
|
+
"description": "Vrbo only. Whether another tool (such as a PMS) manages this account's calendar; while `calendar.managedBy` is set, calendar sync is off for all its units."
|
|
2584
2658
|
},
|
|
2585
2659
|
"notificationEmail": {
|
|
2586
2660
|
"type": "string",
|
|
@@ -3018,6 +3092,7 @@
|
|
|
3018
3092
|
"reservation.updated",
|
|
3019
3093
|
"reservation.cancelled",
|
|
3020
3094
|
"reservation.message.received",
|
|
3095
|
+
"conversation.message.status_changed",
|
|
3021
3096
|
"reservation.message.sent",
|
|
3022
3097
|
"reservation.message.updated",
|
|
3023
3098
|
"reservation.message.read",
|
|
@@ -3045,6 +3120,8 @@
|
|
|
3045
3120
|
"account.import.completed",
|
|
3046
3121
|
"account.import.failed",
|
|
3047
3122
|
"account.units.added",
|
|
3123
|
+
"account.calendar_access_changed",
|
|
3124
|
+
"account.notifications_missing",
|
|
3048
3125
|
"review.created",
|
|
3049
3126
|
"review.responded",
|
|
3050
3127
|
"ai.operation.completed",
|
|
@@ -6390,6 +6467,287 @@
|
|
|
6390
6467
|
}
|
|
6391
6468
|
}
|
|
6392
6469
|
},
|
|
6470
|
+
"VrboCalendarAccess": {
|
|
6471
|
+
"type": "object",
|
|
6472
|
+
"required": [
|
|
6473
|
+
"managedBy",
|
|
6474
|
+
"detectedAt",
|
|
6475
|
+
"checkedAt",
|
|
6476
|
+
"docsUrl"
|
|
6477
|
+
],
|
|
6478
|
+
"description": "Whether another tool manages a Vrbo account's calendar. Vrbo reports it per account; Repull asks when the account connects and once a day. While `managedBy` is set, Vrbo refuses price and availability changes from anyone else, so calendar sync is off for every unit of the account and turning it on returns `409 calendar_managed_elsewhere`. Bookings and messages keep working.",
|
|
6479
|
+
"properties": {
|
|
6480
|
+
"managedBy": {
|
|
6481
|
+
"type": "string",
|
|
6482
|
+
"nullable": true,
|
|
6483
|
+
"description": "`integrated_software`: Vrbo says connected software (such as a PMS) manages the calendar. `null`: Repull may manage it."
|
|
6484
|
+
},
|
|
6485
|
+
"detectedAt": {
|
|
6486
|
+
"type": "string",
|
|
6487
|
+
"format": "date-time",
|
|
6488
|
+
"nullable": true,
|
|
6489
|
+
"description": "When `managedBy` was first seen. `null` when not managed."
|
|
6490
|
+
},
|
|
6491
|
+
"checkedAt": {
|
|
6492
|
+
"type": "string",
|
|
6493
|
+
"format": "date-time",
|
|
6494
|
+
"nullable": true,
|
|
6495
|
+
"description": "When Vrbo was last asked. `null` until the first check."
|
|
6496
|
+
},
|
|
6497
|
+
"docsUrl": {
|
|
6498
|
+
"type": "string",
|
|
6499
|
+
"format": "uri",
|
|
6500
|
+
"example": "https://repull.dev/docs/channels/vrbo/calendar-managed-elsewhere"
|
|
6501
|
+
}
|
|
6502
|
+
}
|
|
6503
|
+
},
|
|
6504
|
+
"AccountCalendarAccessChangedPayload": {
|
|
6505
|
+
"type": "object",
|
|
6506
|
+
"required": [
|
|
6507
|
+
"workspaceId",
|
|
6508
|
+
"provider",
|
|
6509
|
+
"accountId",
|
|
6510
|
+
"connectionId",
|
|
6511
|
+
"calendar",
|
|
6512
|
+
"changedAt"
|
|
6513
|
+
],
|
|
6514
|
+
"properties": {
|
|
6515
|
+
"workspaceId": {
|
|
6516
|
+
"type": "integer"
|
|
6517
|
+
},
|
|
6518
|
+
"provider": {
|
|
6519
|
+
"type": "string"
|
|
6520
|
+
},
|
|
6521
|
+
"accountId": {
|
|
6522
|
+
"type": "string",
|
|
6523
|
+
"nullable": true,
|
|
6524
|
+
"description": "Vrbo's account number (`accounts[].externalAccountId` on `GET /v1/connect/vrbo-login`)."
|
|
6525
|
+
},
|
|
6526
|
+
"connectionId": {
|
|
6527
|
+
"type": "integer",
|
|
6528
|
+
"nullable": true,
|
|
6529
|
+
"description": "The workspace's Vrbo connection record."
|
|
6530
|
+
},
|
|
6531
|
+
"calendar": {
|
|
6532
|
+
"$ref": "#/components/schemas/VrboCalendarAccess"
|
|
6533
|
+
},
|
|
6534
|
+
"changedAt": {
|
|
6535
|
+
"type": "string",
|
|
6536
|
+
"format": "date-time"
|
|
6537
|
+
}
|
|
6538
|
+
}
|
|
6539
|
+
},
|
|
6540
|
+
"AccountCalendarAccessChangedEvent": {
|
|
6541
|
+
"type": "object",
|
|
6542
|
+
"required": [
|
|
6543
|
+
"event",
|
|
6544
|
+
"eventId",
|
|
6545
|
+
"apiVersion",
|
|
6546
|
+
"timestamp",
|
|
6547
|
+
"data"
|
|
6548
|
+
],
|
|
6549
|
+
"properties": {
|
|
6550
|
+
"event": {
|
|
6551
|
+
"type": "string",
|
|
6552
|
+
"description": "The event name. This field is `event`, not `type`."
|
|
6553
|
+
},
|
|
6554
|
+
"eventId": {
|
|
6555
|
+
"type": "string",
|
|
6556
|
+
"format": "uuid",
|
|
6557
|
+
"description": "Stable across every delivery and replay of this logical event \u2014 dedupe on it."
|
|
6558
|
+
},
|
|
6559
|
+
"apiVersion": {
|
|
6560
|
+
"type": "string",
|
|
6561
|
+
"example": "2026-04"
|
|
6562
|
+
},
|
|
6563
|
+
"timestamp": {
|
|
6564
|
+
"type": "string",
|
|
6565
|
+
"format": "date-time",
|
|
6566
|
+
"description": "When this delivery was built."
|
|
6567
|
+
},
|
|
6568
|
+
"account": {
|
|
6569
|
+
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
6570
|
+
},
|
|
6571
|
+
"data": {
|
|
6572
|
+
"$ref": "#/components/schemas/AccountCalendarAccessChangedPayload"
|
|
6573
|
+
}
|
|
6574
|
+
},
|
|
6575
|
+
"description": "Another tool (such as a PMS) started or stopped managing a Vrbo account's calendar. Started: calendar sync is now off for every unit of the account. Stopped: nothing is switched back on; turn it on with `POST /v1/connections/{id}/mappings` (`calendarSync: true`)."
|
|
6576
|
+
},
|
|
6577
|
+
"VrboNotifications": {
|
|
6578
|
+
"type": "object",
|
|
6579
|
+
"description": "Whether Vrbo's notification emails for this account reach Repull. Each one brings a new guest message or booking in within about a minute; without them Repull relies on its scheduled check, which is slower.",
|
|
6580
|
+
"required": [
|
|
6581
|
+
"state",
|
|
6582
|
+
"lastReceivedAt",
|
|
6583
|
+
"address"
|
|
6584
|
+
],
|
|
6585
|
+
"properties": {
|
|
6586
|
+
"state": {
|
|
6587
|
+
"type": "string",
|
|
6588
|
+
"description": "`active`: notifications arrive for this account's guest messages. `missing`: Repull found new guest messages and no notification came for them \u2014 ask the host to add `address` on Vrbo (or turn its notifications back on). `unknown`: no guest messages yet to judge by."
|
|
6589
|
+
},
|
|
6590
|
+
"lastReceivedAt": {
|
|
6591
|
+
"type": "string",
|
|
6592
|
+
"format": "date-time",
|
|
6593
|
+
"nullable": true,
|
|
6594
|
+
"description": "When the last Vrbo notification reached `address`. `null` when none ever has."
|
|
6595
|
+
},
|
|
6596
|
+
"address": {
|
|
6597
|
+
"type": "string",
|
|
6598
|
+
"nullable": true,
|
|
6599
|
+
"example": "in+vrbo-1234-321@repull.dev",
|
|
6600
|
+
"description": "The address the host adds on Vrbo as a secondary email, with message and reservation notifications on."
|
|
6601
|
+
}
|
|
6602
|
+
}
|
|
6603
|
+
},
|
|
6604
|
+
"ConversationMessageStatusChangedPayload": {
|
|
6605
|
+
"type": "object",
|
|
6606
|
+
"required": [
|
|
6607
|
+
"conversationId",
|
|
6608
|
+
"messageId",
|
|
6609
|
+
"status",
|
|
6610
|
+
"statusReason"
|
|
6611
|
+
],
|
|
6612
|
+
"description": "Payload for `conversation.message.status_changed`: a message you sent changed delivery status after the send call returned \u2014 a Vrbo reply accepted as `queued` (`202`) was delivered (`sent`) or gave up (`failed`).",
|
|
6613
|
+
"properties": {
|
|
6614
|
+
"conversationId": {
|
|
6615
|
+
"type": "string",
|
|
6616
|
+
"example": "549555",
|
|
6617
|
+
"description": "The conversation (`GET /v1/conversations/{id}`)."
|
|
6618
|
+
},
|
|
6619
|
+
"messageId": {
|
|
6620
|
+
"type": "string",
|
|
6621
|
+
"example": "1861207",
|
|
6622
|
+
"description": "The message, as `id` on the send response and on `GET /v1/conversations/{id}/messages`."
|
|
6623
|
+
},
|
|
6624
|
+
"status": {
|
|
6625
|
+
"type": "string",
|
|
6626
|
+
"description": "The new delivery status."
|
|
6627
|
+
},
|
|
6628
|
+
"statusReason": {
|
|
6629
|
+
"type": "string",
|
|
6630
|
+
"nullable": true,
|
|
6631
|
+
"description": "Why it `failed`, in plain words. `null` when `sent`."
|
|
6632
|
+
}
|
|
6633
|
+
}
|
|
6634
|
+
},
|
|
6635
|
+
"ConversationMessageStatusChangedEvent": {
|
|
6636
|
+
"type": "object",
|
|
6637
|
+
"required": [
|
|
6638
|
+
"event",
|
|
6639
|
+
"eventId",
|
|
6640
|
+
"apiVersion",
|
|
6641
|
+
"timestamp",
|
|
6642
|
+
"data"
|
|
6643
|
+
],
|
|
6644
|
+
"properties": {
|
|
6645
|
+
"event": {
|
|
6646
|
+
"type": "string",
|
|
6647
|
+
"description": "The event name. This field is `event`, not `type`."
|
|
6648
|
+
},
|
|
6649
|
+
"eventId": {
|
|
6650
|
+
"type": "string",
|
|
6651
|
+
"format": "uuid",
|
|
6652
|
+
"description": "Stable across every delivery and replay of this logical event \u2014 dedupe on it."
|
|
6653
|
+
},
|
|
6654
|
+
"apiVersion": {
|
|
6655
|
+
"type": "string",
|
|
6656
|
+
"example": "2026-04"
|
|
6657
|
+
},
|
|
6658
|
+
"timestamp": {
|
|
6659
|
+
"type": "string",
|
|
6660
|
+
"format": "date-time",
|
|
6661
|
+
"description": "When this delivery was built."
|
|
6662
|
+
},
|
|
6663
|
+
"account": {
|
|
6664
|
+
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
6665
|
+
},
|
|
6666
|
+
"data": {
|
|
6667
|
+
"$ref": "#/components/schemas/ConversationMessageStatusChangedPayload"
|
|
6668
|
+
}
|
|
6669
|
+
},
|
|
6670
|
+
"description": "A message you sent was delivered or gave up after the send call returned. Update the message you show from `status` and `statusReason`."
|
|
6671
|
+
},
|
|
6672
|
+
"AccountNotificationsMissingPayload": {
|
|
6673
|
+
"type": "object",
|
|
6674
|
+
"required": [
|
|
6675
|
+
"workspaceId",
|
|
6676
|
+
"provider",
|
|
6677
|
+
"accountId",
|
|
6678
|
+
"connectionId",
|
|
6679
|
+
"notifications",
|
|
6680
|
+
"detectedAt"
|
|
6681
|
+
],
|
|
6682
|
+
"description": "Payload for `account.notifications_missing`: a Vrbo account had new guest messages and no notification email arrived for them.",
|
|
6683
|
+
"properties": {
|
|
6684
|
+
"workspaceId": {
|
|
6685
|
+
"type": "integer"
|
|
6686
|
+
},
|
|
6687
|
+
"provider": {
|
|
6688
|
+
"type": "string"
|
|
6689
|
+
},
|
|
6690
|
+
"accountId": {
|
|
6691
|
+
"type": "string",
|
|
6692
|
+
"nullable": true,
|
|
6693
|
+
"description": "Vrbo's account number (`accounts[].externalAccountId` on `GET /v1/connect/vrbo-login`)."
|
|
6694
|
+
},
|
|
6695
|
+
"connectionId": {
|
|
6696
|
+
"type": "integer",
|
|
6697
|
+
"nullable": true,
|
|
6698
|
+
"description": "The workspace's Vrbo connection record."
|
|
6699
|
+
},
|
|
6700
|
+
"notifications": {
|
|
6701
|
+
"$ref": "#/components/schemas/VrboNotifications"
|
|
6702
|
+
},
|
|
6703
|
+
"detectedAt": {
|
|
6704
|
+
"type": "string",
|
|
6705
|
+
"format": "date-time"
|
|
6706
|
+
},
|
|
6707
|
+
"docsUrl": {
|
|
6708
|
+
"type": "string",
|
|
6709
|
+
"format": "uri",
|
|
6710
|
+
"example": "https://repull.dev/docs/channels/vrbo/notifications"
|
|
6711
|
+
}
|
|
6712
|
+
}
|
|
6713
|
+
},
|
|
6714
|
+
"AccountNotificationsMissingEvent": {
|
|
6715
|
+
"type": "object",
|
|
6716
|
+
"required": [
|
|
6717
|
+
"event",
|
|
6718
|
+
"eventId",
|
|
6719
|
+
"apiVersion",
|
|
6720
|
+
"timestamp",
|
|
6721
|
+
"data"
|
|
6722
|
+
],
|
|
6723
|
+
"properties": {
|
|
6724
|
+
"event": {
|
|
6725
|
+
"type": "string",
|
|
6726
|
+
"description": "The event name. This field is `event`, not `type`."
|
|
6727
|
+
},
|
|
6728
|
+
"eventId": {
|
|
6729
|
+
"type": "string",
|
|
6730
|
+
"format": "uuid",
|
|
6731
|
+
"description": "Stable across every delivery and replay of this logical event \u2014 dedupe on it."
|
|
6732
|
+
},
|
|
6733
|
+
"apiVersion": {
|
|
6734
|
+
"type": "string",
|
|
6735
|
+
"example": "2026-04"
|
|
6736
|
+
},
|
|
6737
|
+
"timestamp": {
|
|
6738
|
+
"type": "string",
|
|
6739
|
+
"format": "date-time",
|
|
6740
|
+
"description": "When this delivery was built."
|
|
6741
|
+
},
|
|
6742
|
+
"account": {
|
|
6743
|
+
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
6744
|
+
},
|
|
6745
|
+
"data": {
|
|
6746
|
+
"$ref": "#/components/schemas/AccountNotificationsMissingPayload"
|
|
6747
|
+
}
|
|
6748
|
+
},
|
|
6749
|
+
"description": "A Vrbo account's notification emails are not arriving. Ask the host to add `data.notifications.address` on Vrbo as a secondary email with message and reservation notifications on."
|
|
6750
|
+
},
|
|
6393
6751
|
"AccountUnitsAddedEvent": {
|
|
6394
6752
|
"type": "object",
|
|
6395
6753
|
"required": [
|
|
@@ -7122,6 +7480,9 @@
|
|
|
7122
7480
|
{
|
|
7123
7481
|
"$ref": "#/components/schemas/ReservationMessageReceivedEvent"
|
|
7124
7482
|
},
|
|
7483
|
+
{
|
|
7484
|
+
"$ref": "#/components/schemas/ConversationMessageStatusChangedEvent"
|
|
7485
|
+
},
|
|
7125
7486
|
{
|
|
7126
7487
|
"$ref": "#/components/schemas/ReservationMessageSentEvent"
|
|
7127
7488
|
},
|
|
@@ -7203,6 +7564,12 @@
|
|
|
7203
7564
|
{
|
|
7204
7565
|
"$ref": "#/components/schemas/AccountUnitsAddedEvent"
|
|
7205
7566
|
},
|
|
7567
|
+
{
|
|
7568
|
+
"$ref": "#/components/schemas/AccountCalendarAccessChangedEvent"
|
|
7569
|
+
},
|
|
7570
|
+
{
|
|
7571
|
+
"$ref": "#/components/schemas/AccountNotificationsMissingEvent"
|
|
7572
|
+
},
|
|
7206
7573
|
{
|
|
7207
7574
|
"$ref": "#/components/schemas/ReviewCreatedEvent"
|
|
7208
7575
|
},
|
|
@@ -7244,6 +7611,7 @@
|
|
|
7244
7611
|
"reservation.updated": "#/components/schemas/ReservationUpdatedEvent",
|
|
7245
7612
|
"reservation.cancelled": "#/components/schemas/ReservationCancelledEvent",
|
|
7246
7613
|
"reservation.message.received": "#/components/schemas/ReservationMessageReceivedEvent",
|
|
7614
|
+
"conversation.message.status_changed": "#/components/schemas/ConversationMessageStatusChangedEvent",
|
|
7247
7615
|
"reservation.message.sent": "#/components/schemas/ReservationMessageSentEvent",
|
|
7248
7616
|
"reservation.message.updated": "#/components/schemas/ReservationMessageUpdatedEvent",
|
|
7249
7617
|
"reservation.message.read": "#/components/schemas/ReservationMessageReadEvent",
|
|
@@ -7271,6 +7639,8 @@
|
|
|
7271
7639
|
"account.import.completed": "#/components/schemas/AccountImportCompletedEvent",
|
|
7272
7640
|
"account.import.failed": "#/components/schemas/AccountImportFailedEvent",
|
|
7273
7641
|
"account.units.added": "#/components/schemas/AccountUnitsAddedEvent",
|
|
7642
|
+
"account.calendar_access_changed": "#/components/schemas/AccountCalendarAccessChangedEvent",
|
|
7643
|
+
"account.notifications_missing": "#/components/schemas/AccountNotificationsMissingEvent",
|
|
7274
7644
|
"review.created": "#/components/schemas/ReviewCreatedEvent",
|
|
7275
7645
|
"review.responded": "#/components/schemas/ReviewRespondedEvent",
|
|
7276
7646
|
"ai.operation.completed": "#/components/schemas/AiOperationCompletedEvent",
|
|
@@ -16019,7 +16389,8 @@
|
|
|
16019
16389
|
},
|
|
16020
16390
|
"status": {
|
|
16021
16391
|
"type": "string",
|
|
16022
|
-
"example": "sent"
|
|
16392
|
+
"example": "sent",
|
|
16393
|
+
"description": "`sent`: delivered. `queued` (with HTTP `202`): recorded, and still being delivered in the background because the channel was busy (Vrbo) \u2014 do not resend; the outcome arrives as the message's `status` on `GET /v1/conversations/{id}/messages` and as `conversation.message.status_changed`."
|
|
16023
16394
|
},
|
|
16024
16395
|
"direction": {
|
|
16025
16396
|
"type": "string"
|
|
@@ -20212,7 +20583,7 @@
|
|
|
20212
20583
|
"post": {
|
|
20213
20584
|
"operationId": "send_conversation_message",
|
|
20214
20585
|
"summary": "Send a message to the guest",
|
|
20215
|
-
"description": "Sends a message to the guest on this conversation and records it in the thread.\n\nOmit `channel` and the message goes out on whichever channel the conversation already uses (Airbnb, Booking.com, VRBO, SMS, email or the direct-booking site) \u2014 that is the right default. Pass `channel` only to force a specific one.\n\nThe message is attributed to the API: it is recorded with `aiGenerated` false so an API send is never counted as an automated reply.\n\n### Airbnb rewrites links \u2014 check `contentRewritten`\n\nAirbnb rejects guest messages containing a link, an email address or a phone number, and names the offending text. When that happens the offending fragment is stripped and the remainder is re-sent once, which means **the guest receives a message that is not the one you wrote**. Reporting that as a plain success would be a lie, so every response carries `contentRewritten`; when it is `true`, `deliveredContent` is the text that actually reached the guest. Check it before assuming your message went out verbatim.\n\nWhen the text cannot be salvaged (the link is most of the message) nothing is delivered and the call returns `422 message_not_sent` with the channel's verbatim refusal in `statusReason`. `message_not_sent` only ever means the channel refused: a fault on Repull's side (a dropped database connection, a timeout) is `503 internal_error` with `sent: false` when nothing was delivered \u2014 retry it unchanged with the same `Idempotency-Key`.\n\nSend `Idempotency-Key` \u2014 without it, retrying after a network timeout sends the guest the same message twice.\n\n### Attachments\n\nSend files with `attachments: [{ url, contentType?, filename? }]` \u2014 public `https://` URLs, up to 5 per request, 10 MB each. `message` may be omitted when there are attachments (except on Booking.com). Repull downloads each file, reads its real type from the bytes, keeps a durable copy and delivers it through the channel's own file flow. **Every file is checked before anything is sent**: if one is unreachable, too large or of a type the channel refuses, the call returns 422 naming the file (`index`) and the guest receives nothing.\n\n| Channel | Accepted types | Text | How it arrives |\n|---|---|---|---|\n| Airbnb | JPEG, PNG, GIF, WebP (converted to JPEG), MP4, QuickTime | optional | each file as its own message, then the text as a separate message |\n| Booking.com | JPEG, PNG | **required** | one message carrying the text and every file |\n| VRBO, SMS, email, direct-booking site chat | \u2014 | \u2014 | `422 attachments_not_supported`, nothing sent |\n\nAirbnb does not allow files in pre-booking (inquiry) conversations; that refusal comes back as `422 message_not_sent`. Because Airbnb delivers files one message at a time, a later file can be refused after earlier ones arrived \u2014 that returns `422 message_partially_sent` with `parts` saying exactly which messages reached the guest; resend only the rest.\n\nThe response's `attachments` lists each file's durable `url`, and `parts` lists every channel message the send produced. Read-back (`GET /v1/conversations/{id}/messages`) shows the same files in each message's `attachments`.\n\n**Inactive listings:** a conversation that belongs to an inactive listing returns `403 listing_inactive` and no message is sent. Activate the listing first.",
|
|
20586
|
+
"description": "Sends a message to the guest on this conversation and records it in the thread.\n\nOmit `channel` and the message goes out on whichever channel the conversation already uses (Airbnb, Booking.com, VRBO, SMS, email or the direct-booking site) \u2014 that is the right default. Pass `channel` only to force a specific one.\n\nThe message is attributed to the API: it is recorded with `aiGenerated` false so an API send is never counted as an automated reply.\n\n### Airbnb rewrites links \u2014 check `contentRewritten`\n\nAirbnb rejects guest messages containing a link, an email address or a phone number, and names the offending text. When that happens the offending fragment is stripped and the remainder is re-sent once, which means **the guest receives a message that is not the one you wrote**. Reporting that as a plain success would be a lie, so every response carries `contentRewritten`; when it is `true`, `deliveredContent` is the text that actually reached the guest. Check it before assuming your message went out verbatim.\n\nWhen the text cannot be salvaged (the link is most of the message) nothing is delivered and the call returns `422 message_not_sent` with the channel's verbatim refusal in `statusReason`. `message_not_sent` only ever means the channel refused: a fault on Repull's side (a dropped database connection, a timeout) is `503 internal_error` with `sent: false` when nothing was delivered \u2014 retry it unchanged with the same `Idempotency-Key`.\n\nSend `Idempotency-Key` \u2014 without it, retrying after a network timeout sends the guest the same message twice.\n\n### Vrbo: `202` while Vrbo is busy\n\nA Vrbo reply is delivered in the call when Vrbo takes it (about 20 seconds at most) and returns `200` with `status: \"sent\"`. When Vrbo is busy, the reply is recorded and delivered in the background: the call returns **`202` with `status: \"queued\"`** and the message `id`. Do not send it again \u2014 a retry with the same `Idempotency-Key` returns the same `202`. The outcome arrives as the message's `status` on `GET /v1/conversations/{id}/messages` (`sent`, or `failed` with `statusReason`) and as the `conversation.message.status_changed` webhook.\n\n### Attachments\n\nSend files with `attachments: [{ url, contentType?, filename? }]` \u2014 public `https://` URLs, up to 5 per request, 10 MB each. `message` may be omitted when there are attachments (except on Booking.com). Repull downloads each file, reads its real type from the bytes, keeps a durable copy and delivers it through the channel's own file flow. **Every file is checked before anything is sent**: if one is unreachable, too large or of a type the channel refuses, the call returns 422 naming the file (`index`) and the guest receives nothing.\n\n| Channel | Accepted types | Text | How it arrives |\n|---|---|---|---|\n| Airbnb | JPEG, PNG, GIF, WebP (converted to JPEG), MP4, QuickTime | optional | each file as its own message, then the text as a separate message |\n| Booking.com | JPEG, PNG | **required** | one message carrying the text and every file |\n| VRBO, SMS, email, direct-booking site chat | \u2014 | \u2014 | `422 attachments_not_supported`, nothing sent |\n\nAirbnb does not allow files in pre-booking (inquiry) conversations; that refusal comes back as `422 message_not_sent`. Because Airbnb delivers files one message at a time, a later file can be refused after earlier ones arrived \u2014 that returns `422 message_partially_sent` with `parts` saying exactly which messages reached the guest; resend only the rest.\n\nThe response's `attachments` lists each file's durable `url`, and `parts` lists every channel message the send produced. Read-back (`GET /v1/conversations/{id}/messages`) shows the same files in each message's `attachments`.\n\n**Inactive listings:** a conversation that belongs to an inactive listing returns `403 listing_inactive` and no message is sent. Activate the listing first.",
|
|
20216
20587
|
"tags": [
|
|
20217
20588
|
"Conversations"
|
|
20218
20589
|
],
|
|
@@ -20329,6 +20700,34 @@
|
|
|
20329
20700
|
}
|
|
20330
20701
|
}
|
|
20331
20702
|
},
|
|
20703
|
+
"202": {
|
|
20704
|
+
"description": "Accepted, not yet delivered (Vrbo, while Vrbo is busy): the message is recorded with `status: \"queued\"` and delivered in the background. Do not resend \u2014 the same `Idempotency-Key` replays this `202`. Follow the outcome on `GET /v1/conversations/{id}/messages` (`status` becomes `sent`, or `failed` with `statusReason`) or the `conversation.message.status_changed` webhook.",
|
|
20705
|
+
"content": {
|
|
20706
|
+
"application/json": {
|
|
20707
|
+
"schema": {
|
|
20708
|
+
"$ref": "#/components/schemas/SendMessageResponse"
|
|
20709
|
+
},
|
|
20710
|
+
"examples": {
|
|
20711
|
+
"vrboQueued": {
|
|
20712
|
+
"summary": "Vrbo was busy: recorded and delivered in the background",
|
|
20713
|
+
"value": {
|
|
20714
|
+
"id": "1861207",
|
|
20715
|
+
"conversationId": "549555",
|
|
20716
|
+
"externalMessageId": null,
|
|
20717
|
+
"channel": "vrbo",
|
|
20718
|
+
"status": "queued",
|
|
20719
|
+
"direction": "outbound",
|
|
20720
|
+
"contentRewritten": false,
|
|
20721
|
+
"submittedContent": "Hi Ximena, the gate code is 4821.",
|
|
20722
|
+
"deliveredContent": null,
|
|
20723
|
+
"statusReason": "Vrbo is busy right now; the reply will be delivered in the background.",
|
|
20724
|
+
"attachments": []
|
|
20725
|
+
}
|
|
20726
|
+
}
|
|
20727
|
+
}
|
|
20728
|
+
}
|
|
20729
|
+
}
|
|
20730
|
+
},
|
|
20332
20731
|
"401": {
|
|
20333
20732
|
"$ref": "#/components/responses/Unauthorized"
|
|
20334
20733
|
},
|
|
@@ -20561,7 +20960,7 @@
|
|
|
20561
20960
|
}
|
|
20562
20961
|
},
|
|
20563
20962
|
"503": {
|
|
20564
|
-
"description": "A temporary fault on Repull's side \u2014 never a verdict on the message. `internal_error`: the send failed inside Repull (a dropped database connection, a timeout) before the channel refused anything. `sent` says whether the message reached the channel: with `messageId: null` and `sent: false` nothing was delivered or recorded, and retrying the same request with the same `Idempotency-Key` after `retry_after` seconds sends it once. With a `messageId`, check that message in `GET /v1/conversations/{id}/messages` before resending. `attachment_storage_failed`: a file could not be stored for delivery; nothing was sent, retry the same way. A 503 is never stored against the `Idempotency-Key`, so the retry runs for real. Do not edit the text: it was not refused.",
|
|
20963
|
+
"description": "A temporary fault on Repull's side \u2014 never a verdict on the message. `internal_error`: the send failed inside Repull (a dropped database connection, a timeout) before the channel refused anything. With `sent: null` Repull did not get the result in time and the message may still be delivered: check `GET /v1/conversations/{id}/messages` before resending. `sent` says whether the message reached the channel: with `messageId: null` and `sent: false` nothing was delivered or recorded, and retrying the same request with the same `Idempotency-Key` after `retry_after` seconds sends it once. With a `messageId`, check that message in `GET /v1/conversations/{id}/messages` before resending. `attachment_storage_failed`: a file could not be stored for delivery; nothing was sent, retry the same way. A 503 is never stored against the `Idempotency-Key`, so the retry runs for real. Do not edit the text: it was not refused.",
|
|
20565
20964
|
"content": {
|
|
20566
20965
|
"application/json": {
|
|
20567
20966
|
"schema": {
|
|
@@ -32129,7 +32528,7 @@
|
|
|
32129
32528
|
"get": {
|
|
32130
32529
|
"operationId": "get_airbnb_booking_settings",
|
|
32131
32530
|
"summary": "Get Airbnb booking settings",
|
|
32132
|
-
"description": "Read how an Airbnb listing takes bookings and what happens when a guest cancels: booking mode, Instant Book state, the good-track-record requirement, check-in/check-out times, advance notice, preparation time, booking window, the short-stay and long-stay cancellation policies, and the non-refundable option.\n\n**This is Repull's stored copy, not a live call to Airbnb.** Values come from the local Airbnb mirror that the sync workers fill, so the response always carries `dataFreshness` \u2014 check `dataFreshness.stale` (and `dataFreshness.accounts[]` when the workspace has several Airbnb accounts) before treating a value as current.\n\n**Not exposed by Airbnb.** The pre-reservation message and automatic stay extension have no field on Airbnb's `booking_settings` resource, so neither can be read or written here; set the pre-reservation message in the Airbnb host dashboard, and handle extensions through `/v1/channels/airbnb/alterations`. Airbnb
|
|
32531
|
+
"description": "Read how an Airbnb listing takes bookings and what happens when a guest cancels: booking mode, Instant Book state, the good-track-record requirement, check-in/check-out times, advance notice, preparation time, booking window, the short-stay and long-stay cancellation policies, and the non-refundable option.\n\n**This is Repull's stored copy, not a live call to Airbnb.** Values come from the local Airbnb mirror that the sync workers fill, so the response always carries `dataFreshness` \u2014 check `dataFreshness.stale` (and `dataFreshness.accounts[]` when the workspace has several Airbnb accounts) before treating a value as current.\n\n**Not exposed by Airbnb.** The pre-reservation message and automatic stay extension have no field on Airbnb's `booking_settings` resource, so neither can be read or written here; set the pre-reservation message in the Airbnb host dashboard, and handle extensions through `/v1/channels/airbnb/alterations`. The same-day cutoff is Airbnb's advance-notice hours counted back from 11:59 PM on the check-in day: read it as `advanceNotice.sameDayCutoff` (e.g. `23:00`) or `advanceNotice.hours` (e.g. `1`), and write either one.\n\nReturns `404` when the listing has no Airbnb connection in this workspace, and `403 listing_inactive` when the listing is inactive \u2014 an inactive listing keeps syncing but cannot be read or changed through the API until it is activated.",
|
|
32133
32532
|
"tags": [
|
|
32134
32533
|
"Airbnb"
|
|
32135
32534
|
],
|
|
@@ -32251,12 +32650,18 @@
|
|
|
32251
32650
|
"hours": {
|
|
32252
32651
|
"type": "integer",
|
|
32253
32652
|
"nullable": true,
|
|
32254
|
-
"description": "
|
|
32653
|
+
"description": "Airbnb's advance notice: 0-24, 48, 72 or 168. Airbnb counts it back from 11:59 PM on the check-in day, in the listing's time zone, so 0-23 is a same-day cutoff: `0` = same-day bookings until midnight, `1` = until 11 PM, `3` = until 9 PM. `24` and above = no same-day bookings."
|
|
32255
32654
|
},
|
|
32256
32655
|
"sameDayBookingsAllowed": {
|
|
32257
32656
|
"type": "boolean",
|
|
32258
32657
|
"nullable": true,
|
|
32259
|
-
"description": "Derived: `hours
|
|
32658
|
+
"description": "Derived: `hours < 24`."
|
|
32659
|
+
},
|
|
32660
|
+
"sameDayCutoff": {
|
|
32661
|
+
"type": "string",
|
|
32662
|
+
"nullable": true,
|
|
32663
|
+
"example": "23:00",
|
|
32664
|
+
"description": "Derived: the last time a same-day booking is accepted, `HH:mm` in the listing's time (`00:00` = midnight). `null` when same-day bookings are off."
|
|
32260
32665
|
},
|
|
32261
32666
|
"allowRequestToBook": {
|
|
32262
32667
|
"type": "boolean",
|
|
@@ -32510,13 +32915,49 @@
|
|
|
32510
32915
|
"advanceNotice": {
|
|
32511
32916
|
"type": "object",
|
|
32512
32917
|
"additionalProperties": false,
|
|
32513
|
-
"description": "Send `hours
|
|
32918
|
+
"description": "Send `hours` (or `sameDayCutoff`), `allowRequestToBook`, or both. The half you omit keeps the value Airbnb currently holds. `hours` and `sameDayCutoff` are the same setting: send one.",
|
|
32514
32919
|
"properties": {
|
|
32515
32920
|
"hours": {
|
|
32516
32921
|
"type": "integer",
|
|
32517
32922
|
"nullable": true,
|
|
32518
|
-
"
|
|
32519
|
-
|
|
32923
|
+
"enum": [
|
|
32924
|
+
0,
|
|
32925
|
+
1,
|
|
32926
|
+
2,
|
|
32927
|
+
3,
|
|
32928
|
+
4,
|
|
32929
|
+
5,
|
|
32930
|
+
6,
|
|
32931
|
+
7,
|
|
32932
|
+
8,
|
|
32933
|
+
9,
|
|
32934
|
+
10,
|
|
32935
|
+
11,
|
|
32936
|
+
12,
|
|
32937
|
+
13,
|
|
32938
|
+
14,
|
|
32939
|
+
15,
|
|
32940
|
+
16,
|
|
32941
|
+
17,
|
|
32942
|
+
18,
|
|
32943
|
+
19,
|
|
32944
|
+
20,
|
|
32945
|
+
21,
|
|
32946
|
+
22,
|
|
32947
|
+
23,
|
|
32948
|
+
24,
|
|
32949
|
+
48,
|
|
32950
|
+
72,
|
|
32951
|
+
168
|
|
32952
|
+
],
|
|
32953
|
+
"description": "Counted back from 11:59 PM on the check-in day (listing time): `0` = same-day bookings until midnight, `1` = until 11 PM, `24` = no same-day bookings."
|
|
32954
|
+
},
|
|
32955
|
+
"sameDayCutoff": {
|
|
32956
|
+
"type": "string",
|
|
32957
|
+
"nullable": true,
|
|
32958
|
+
"pattern": "^([01][0-9]|2[0-3]):00$",
|
|
32959
|
+
"example": "23:00",
|
|
32960
|
+
"description": "The last time a same-day booking is accepted, whole hours in the listing's time (`23:00` = 11 PM, `00:00` = midnight). Converted to `hours` (`23:00` = 1)."
|
|
32520
32961
|
},
|
|
32521
32962
|
"allowRequestToBook": {
|
|
32522
32963
|
"type": "boolean",
|
|
@@ -32684,12 +33125,18 @@
|
|
|
32684
33125
|
"hours": {
|
|
32685
33126
|
"type": "integer",
|
|
32686
33127
|
"nullable": true,
|
|
32687
|
-
"description": "
|
|
33128
|
+
"description": "Airbnb's advance notice: 0-24, 48, 72 or 168. Airbnb counts it back from 11:59 PM on the check-in day, in the listing's time zone, so 0-23 is a same-day cutoff: `0` = same-day bookings until midnight, `1` = until 11 PM, `3` = until 9 PM. `24` and above = no same-day bookings."
|
|
32688
33129
|
},
|
|
32689
33130
|
"sameDayBookingsAllowed": {
|
|
32690
33131
|
"type": "boolean",
|
|
32691
33132
|
"nullable": true,
|
|
32692
|
-
"description": "Derived: `hours
|
|
33133
|
+
"description": "Derived: `hours < 24`."
|
|
33134
|
+
},
|
|
33135
|
+
"sameDayCutoff": {
|
|
33136
|
+
"type": "string",
|
|
33137
|
+
"nullable": true,
|
|
33138
|
+
"example": "23:00",
|
|
33139
|
+
"description": "Derived: the last time a same-day booking is accepted, `HH:mm` in the listing's time (`00:00` = midnight). `null` when same-day bookings are off."
|
|
32693
33140
|
},
|
|
32694
33141
|
"allowRequestToBook": {
|
|
32695
33142
|
"type": "boolean",
|
|
@@ -38804,6 +39251,18 @@
|
|
|
38804
39251
|
],
|
|
38805
39252
|
"description": "`in_sync` \u2014 no future night has a problem; `problems` \u2014 see `problems`; `off` \u2014 calendar sync is off for this channel."
|
|
38806
39253
|
},
|
|
39254
|
+
"offReason": {
|
|
39255
|
+
"type": "string",
|
|
39256
|
+
"enum": [
|
|
39257
|
+
"calendar_managed_elsewhere"
|
|
39258
|
+
],
|
|
39259
|
+
"description": "Vrbo only, when Repull turned calendar sync off: Vrbo says another tool (such as a PMS) manages the account's calendar. Absent when the host turned it off."
|
|
39260
|
+
},
|
|
39261
|
+
"docsUrl": {
|
|
39262
|
+
"type": "string",
|
|
39263
|
+
"format": "uri",
|
|
39264
|
+
"description": "Explains `offReason` and how to turn calendar sync back on."
|
|
39265
|
+
},
|
|
38807
39266
|
"lastSyncAt": {
|
|
38808
39267
|
"type": "string",
|
|
38809
39268
|
"format": "date-time",
|
|
@@ -39376,7 +39835,7 @@
|
|
|
39376
39835
|
},
|
|
39377
39836
|
"calendarSync": {
|
|
39378
39837
|
"type": "boolean",
|
|
39379
|
-
"description": "Vrbo: push this listing's prices and availability to Vrbo. Omit to follow the connection's access type (`messaging` = off, `full_access` = on). A new listing (`create`) always follows the access type. Other channels ignore it."
|
|
39838
|
+
"description": "Vrbo: push this listing's prices and availability to Vrbo. Omit to follow the connection's access type (`messaging` = off, `full_access` = on). A new listing (`create`) always follows the access type. Other channels ignore it. `true` returns `409 calendar_managed_elsewhere` while Vrbo says another tool (such as a PMS) manages the account's calendar (`calendar.managedBy` on `GET /v1/connect/vrbo-login`); see https://repull.dev/docs/channels/vrbo/calendar-managed-elsewhere."
|
|
39380
39839
|
}
|
|
39381
39840
|
}
|
|
39382
39841
|
}
|
|
@@ -39428,6 +39887,16 @@
|
|
|
39428
39887
|
}
|
|
39429
39888
|
}
|
|
39430
39889
|
}
|
|
39890
|
+
},
|
|
39891
|
+
"409": {
|
|
39892
|
+
"description": "`calendar_managed_elsewhere` (Vrbo): `calendarSync: true` was sent while Vrbo says another tool (such as a PMS) manages the account's calendar. Nothing was applied. `units` lists the units that asked for it; `docs_url` explains how to change it.",
|
|
39893
|
+
"content": {
|
|
39894
|
+
"application/json": {
|
|
39895
|
+
"schema": {
|
|
39896
|
+
"$ref": "#/components/schemas/Error"
|
|
39897
|
+
}
|
|
39898
|
+
}
|
|
39899
|
+
}
|
|
39431
39900
|
}
|
|
39432
39901
|
}
|
|
39433
39902
|
}
|
|
@@ -39573,6 +40042,9 @@
|
|
|
39573
40042
|
"nullable": true,
|
|
39574
40043
|
"description": "Vrbo only. Ask the host to add this address on Vrbo as a secondary email, with message and reservation notifications on. It is how new bookings, inquiries and guest messages reach Repull within a minute; without it they arrive at the next scheduled check. Hosted Connect asks for it on its mapping screen, so show it in your own flow when you map with `mapping: \"api\"`."
|
|
39575
40044
|
},
|
|
40045
|
+
"calendar": {
|
|
40046
|
+
"$ref": "#/components/schemas/VrboCalendarAccess"
|
|
40047
|
+
},
|
|
39576
40048
|
"units": {
|
|
39577
40049
|
"type": "array",
|
|
39578
40050
|
"items": {
|
|
@@ -39597,7 +40069,7 @@
|
|
|
39597
40069
|
},
|
|
39598
40070
|
"meta": {
|
|
39599
40071
|
"type": "object",
|
|
39600
|
-
"description": "Channel details that identify the unit. Booking.com Extranet: `hotel` (property name), `hotelId` (Booking.com property ID), `roomId` (Booking.com room ID), `city`. Vrbo: `headline`, `address`, `vrboStatus`; the Vrbo listing ID is `unit_id`."
|
|
40072
|
+
"description": "Channel details that identify the unit. Booking.com Extranet: `hotel` (property name), `hotelId` (Booking.com property ID), `roomId` (Booking.com room ID), `city`. Vrbo: `headline`, `address`, `vrboStatus`, `calendarSync` (whether the unit's prices and availability are pushed to Vrbo) and, while Vrbo says another tool manages the account's calendar, `calendarSyncBlocked: \"calendar_managed_elsewhere\"`; the Vrbo listing ID is `unit_id`."
|
|
39601
40073
|
}
|
|
39602
40074
|
}
|
|
39603
40075
|
}
|
|
@@ -41544,7 +42016,7 @@
|
|
|
41544
42016
|
"post": {
|
|
41545
42017
|
"operationId": "startConnectionImport",
|
|
41546
42018
|
"summary": "Refresh a connection's listings",
|
|
41547
|
-
"description": "Refresh listings: picks up listings you've added on Airbnb since you connected. Re-reads the connected account's listings
|
|
42019
|
+
"description": "Refresh listings: picks up listings you've added on Airbnb since you connected. Re-reads the connected account's listings now: a new property comes in as a new listing, together with its calendar (pricing and availability), and existing listings are refreshed. On a full-access connection Repull is the source of your calendars, so the calendars of listings already in Repull are not re-read from Airbnb; on read-only and messaging connections they are. Nothing else is re-imported: no reservations, conversations, reviews or payouts.\n\nThe same import runs on its own once a day for every connected Airbnb account, and when the host reconnects. Call this when you know a property was just added and do not want to wait.\n\nNew listings obey your plan's active-listing limit: past it, and when the property is unlisted on Airbnb, they arrive inactive. Existing listings keep their status.\n\nThe import runs in the background (`202`). It is recorded like any other import (trigger `resync`, one `listings` stage): follow it on `GET /v1/connections/{id}/imports` or wait for `account.import.completed`, then read the new listings with `GET /v1/listings`.\n\nAirbnb connections only for now. Returns `409 conflict` while a listings import of the account is already running, and `409 connection_reauth_required` when the account is disconnected.",
|
|
41548
42020
|
"tags": [
|
|
41549
42021
|
"Connections"
|
|
41550
42022
|
],
|
|
@@ -41572,7 +42044,7 @@
|
|
|
41572
42044
|
"listings"
|
|
41573
42045
|
],
|
|
41574
42046
|
"default": "listings",
|
|
41575
|
-
"description": "What to import. `listings` = the account's listings
|
|
42047
|
+
"description": "What to import. `listings` = the account's listings. New listings come in with their calendar (pricing and availability); on a full-access connection, calendars of listings already in Repull are not re-read. The only scope; the full import runs when an account is connected."
|
|
41576
42048
|
}
|
|
41577
42049
|
}
|
|
41578
42050
|
}
|