repull 0.2.60 → 0.2.61
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 +8 -8
- data/lib/repull/api/connect_api.rb +5 -5
- data/lib/repull/api/connections_api.rb +4 -4
- data/lib/repull/models/account_import.rb +1 -1
- data/lib/repull/models/airbnb_reservation.rb +346 -6
- data/lib/repull/models/airbnb_reservation_detail.rb +679 -0
- data/lib/repull/models/airbnb_reservation_detail_response.rb +173 -0
- data/lib/repull/models/connect_provider_session.rb +266 -0
- data/lib/repull/models/create_connect_session_request.rb +2 -2
- data/lib/repull/models/create_connection_request.rb +3 -2
- data/lib/repull/models/guest.rb +4 -2
- data/lib/repull/models/start_connection_import202_response_data.rb +32 -6
- data/lib/repull/models/start_connection_import_request.rb +3 -5
- data/lib/repull/version.rb +1 -1
- data/lib/repull.rb +3 -0
- data/openapi/v1.json +483 -26
- metadata +4 -1
data/openapi/v1.json
CHANGED
|
@@ -1045,13 +1045,17 @@
|
|
|
1045
1045
|
},
|
|
1046
1046
|
"lastStayedAt": {
|
|
1047
1047
|
"type": "string",
|
|
1048
|
-
"format": "date
|
|
1049
|
-
"nullable": true
|
|
1048
|
+
"format": "date",
|
|
1049
|
+
"nullable": true,
|
|
1050
|
+
"description": "Check-out date of the guest's most recent stay (YYYY-MM-DD).",
|
|
1051
|
+
"example": "2026-12-06"
|
|
1050
1052
|
},
|
|
1051
1053
|
"firstStayedAt": {
|
|
1052
1054
|
"type": "string",
|
|
1053
|
-
"format": "date
|
|
1054
|
-
"nullable": true
|
|
1055
|
+
"format": "date",
|
|
1056
|
+
"nullable": true,
|
|
1057
|
+
"description": "Check-in date of the guest's first stay (YYYY-MM-DD).",
|
|
1058
|
+
"example": "2024-01-22"
|
|
1055
1059
|
},
|
|
1056
1060
|
"createdAt": {
|
|
1057
1061
|
"type": "string",
|
|
@@ -2661,6 +2665,47 @@
|
|
|
2661
2665
|
"expiresAt"
|
|
2662
2666
|
]
|
|
2663
2667
|
},
|
|
2668
|
+
"ConnectProviderSession": {
|
|
2669
|
+
"type": "object",
|
|
2670
|
+
"description": "A hosted Connect session for one provider (`POST /v1/connect/{provider}`). Send the user to `url`; every return to your `redirectUrl` carries `status`, `sessionId` and your `state`.",
|
|
2671
|
+
"properties": {
|
|
2672
|
+
"url": {
|
|
2673
|
+
"type": "string",
|
|
2674
|
+
"format": "uri",
|
|
2675
|
+
"description": "The hosted page to send the user to.",
|
|
2676
|
+
"example": "https://connect.repull.dev/cs_8gQrT2v9k3M4nLp7wJxYzAbCdEfGhIjKlMnOp"
|
|
2677
|
+
},
|
|
2678
|
+
"provider": {
|
|
2679
|
+
"type": "string",
|
|
2680
|
+
"example": "airbnb"
|
|
2681
|
+
},
|
|
2682
|
+
"sessionId": {
|
|
2683
|
+
"type": "string",
|
|
2684
|
+
"description": "Also sent back on the redirect (`sessionId=`), in the popup message and in `connect.session.completed`.",
|
|
2685
|
+
"example": "cs_8gQrT2v9k3M4nLp7wJxYzAbCdEfGhIjKlMnOp"
|
|
2686
|
+
},
|
|
2687
|
+
"expiresAt": {
|
|
2688
|
+
"type": "string",
|
|
2689
|
+
"format": "date-time"
|
|
2690
|
+
},
|
|
2691
|
+
"state": {
|
|
2692
|
+
"type": "string",
|
|
2693
|
+
"nullable": true,
|
|
2694
|
+
"description": "Your `state` from the request, echoed; `null` when you sent none."
|
|
2695
|
+
},
|
|
2696
|
+
"workspaceId": {
|
|
2697
|
+
"type": "string",
|
|
2698
|
+
"description": "PriceLabs only, when the request opened a sub-workspace (`workspace.name`).",
|
|
2699
|
+
"example": "1204"
|
|
2700
|
+
}
|
|
2701
|
+
},
|
|
2702
|
+
"required": [
|
|
2703
|
+
"url",
|
|
2704
|
+
"provider",
|
|
2705
|
+
"sessionId",
|
|
2706
|
+
"expiresAt"
|
|
2707
|
+
]
|
|
2708
|
+
},
|
|
2664
2709
|
"SelectProviderResponse": {
|
|
2665
2710
|
"type": "object",
|
|
2666
2711
|
"description": "Returned by `POST /v1/connect/sessions/{sessionId}/select-provider`. The picker UI navigates the user to `nextUrl` to begin the per-provider handoff.",
|
|
@@ -6640,7 +6685,7 @@
|
|
|
6640
6685
|
"reason": {
|
|
6641
6686
|
"type": "string",
|
|
6642
6687
|
"nullable": true,
|
|
6643
|
-
"description": "`failed` imports only: why it stopped \u2014 e.g. `needs_permissions`, `duplicate_account`, `stalled
|
|
6688
|
+
"description": "`failed` imports only: why it stopped \u2014 e.g. `needs_permissions`, `duplicate_account`, `stalled` (stopped reporting progress), `did_not_start` (queued, but no worker picked it up within 10 minutes: start it again with `POST /v1/connections/{id}/imports`), `queue_failed` (could not be queued)."
|
|
6644
6689
|
},
|
|
6645
6690
|
"startedAt": {
|
|
6646
6691
|
"type": "string",
|
|
@@ -8456,14 +8501,54 @@
|
|
|
8456
8501
|
},
|
|
8457
8502
|
"AirbnbReservation": {
|
|
8458
8503
|
"type": "object",
|
|
8459
|
-
"description": "An Airbnb reservation as returned by the channel API. Use `confirmationCode` to address it in Airbnb operations.",
|
|
8504
|
+
"description": "An Airbnb reservation as returned by the channel API. Use `confirmationCode` to address it in Airbnb operations, and `reservationId` to open the same stay on `GET /v1/reservations/{id}`. The fields after `payoutCurrency` are the Airbnb record as stored (Airbnb's raw status, amounts as decimal strings, stay datetimes); they are kept for existing integrations.",
|
|
8505
|
+
"required": [
|
|
8506
|
+
"id",
|
|
8507
|
+
"confirmationCode",
|
|
8508
|
+
"reservationId",
|
|
8509
|
+
"listingId",
|
|
8510
|
+
"airbnbListingId",
|
|
8511
|
+
"accountId",
|
|
8512
|
+
"accountName",
|
|
8513
|
+
"status",
|
|
8514
|
+
"checkIn",
|
|
8515
|
+
"checkOut",
|
|
8516
|
+
"guestName",
|
|
8517
|
+
"guestCount",
|
|
8518
|
+
"totalPrice",
|
|
8519
|
+
"currency",
|
|
8520
|
+
"payout",
|
|
8521
|
+
"payoutCurrency"
|
|
8522
|
+
],
|
|
8460
8523
|
"properties": {
|
|
8524
|
+
"id": {
|
|
8525
|
+
"type": "string",
|
|
8526
|
+
"description": "This Airbnb record's id in Repull.",
|
|
8527
|
+
"example": "307200"
|
|
8528
|
+
},
|
|
8461
8529
|
"confirmationCode": {
|
|
8462
8530
|
"type": "string",
|
|
8531
|
+
"nullable": true,
|
|
8532
|
+
"description": "Airbnb confirmation code.",
|
|
8463
8533
|
"example": "HMABC12345"
|
|
8464
8534
|
},
|
|
8535
|
+
"reservationId": {
|
|
8536
|
+
"type": "string",
|
|
8537
|
+
"nullable": true,
|
|
8538
|
+
"description": "The same stay on the unified reservations API: `GET /v1/reservations/{id}`. Null only while that record is still being created.",
|
|
8539
|
+
"example": "667929"
|
|
8540
|
+
},
|
|
8465
8541
|
"listingId": {
|
|
8466
|
-
"type": "string"
|
|
8542
|
+
"type": "string",
|
|
8543
|
+
"nullable": true,
|
|
8544
|
+
"description": "The Repull listing id (`GET /v1/listings/{id}`).",
|
|
8545
|
+
"example": "42343"
|
|
8546
|
+
},
|
|
8547
|
+
"airbnbListingId": {
|
|
8548
|
+
"type": "string",
|
|
8549
|
+
"nullable": true,
|
|
8550
|
+
"description": "Airbnb's own listing id \u2014 the value `?listing_id=` takes.",
|
|
8551
|
+
"example": "53866721"
|
|
8467
8552
|
},
|
|
8468
8553
|
"accountId": {
|
|
8469
8554
|
"type": "string",
|
|
@@ -8479,8 +8564,259 @@
|
|
|
8479
8564
|
},
|
|
8480
8565
|
"status": {
|
|
8481
8566
|
"type": "string",
|
|
8567
|
+
"nullable": true,
|
|
8568
|
+
"description": "Normalised status. Airbnb's own value is in `airbnbStatus`.",
|
|
8482
8569
|
"example": "accepted"
|
|
8483
8570
|
},
|
|
8571
|
+
"checkIn": {
|
|
8572
|
+
"type": "string",
|
|
8573
|
+
"format": "date",
|
|
8574
|
+
"nullable": true,
|
|
8575
|
+
"example": "2026-12-05"
|
|
8576
|
+
},
|
|
8577
|
+
"checkOut": {
|
|
8578
|
+
"type": "string",
|
|
8579
|
+
"format": "date",
|
|
8580
|
+
"nullable": true,
|
|
8581
|
+
"example": "2026-12-08"
|
|
8582
|
+
},
|
|
8583
|
+
"guestName": {
|
|
8584
|
+
"type": "string",
|
|
8585
|
+
"nullable": true
|
|
8586
|
+
},
|
|
8587
|
+
"guestCount": {
|
|
8588
|
+
"type": "integer",
|
|
8589
|
+
"nullable": true
|
|
8590
|
+
},
|
|
8591
|
+
"totalPrice": {
|
|
8592
|
+
"type": "number",
|
|
8593
|
+
"nullable": true,
|
|
8594
|
+
"description": "What the guest paid, in `currency`.",
|
|
8595
|
+
"example": 233.51
|
|
8596
|
+
},
|
|
8597
|
+
"currency": {
|
|
8598
|
+
"type": "string",
|
|
8599
|
+
"nullable": true,
|
|
8600
|
+
"example": "USD"
|
|
8601
|
+
},
|
|
8602
|
+
"payout": {
|
|
8603
|
+
"type": "number",
|
|
8604
|
+
"nullable": true,
|
|
8605
|
+
"description": "What the host is expected to receive, in `payoutCurrency`.",
|
|
8606
|
+
"example": 190.32
|
|
8607
|
+
},
|
|
8608
|
+
"payoutCurrency": {
|
|
8609
|
+
"type": "string",
|
|
8610
|
+
"nullable": true,
|
|
8611
|
+
"example": "USD"
|
|
8612
|
+
},
|
|
8613
|
+
"listingAirbnbId": {
|
|
8614
|
+
"type": "string",
|
|
8615
|
+
"nullable": true,
|
|
8616
|
+
"description": "Internal link id of the Airbnb listing. Use `airbnbListingId` or `listingId` instead.",
|
|
8617
|
+
"deprecated": true
|
|
8618
|
+
},
|
|
8619
|
+
"airbnbReservationId": {
|
|
8620
|
+
"type": "string",
|
|
8621
|
+
"nullable": true,
|
|
8622
|
+
"description": "Same as `confirmationCode`.",
|
|
8623
|
+
"deprecated": true
|
|
8624
|
+
},
|
|
8625
|
+
"hostId": {
|
|
8626
|
+
"type": "string",
|
|
8627
|
+
"nullable": true,
|
|
8628
|
+
"description": "Same as `accountId`.",
|
|
8629
|
+
"deprecated": true
|
|
8630
|
+
},
|
|
8631
|
+
"guestAirbnbId": {
|
|
8632
|
+
"type": "string",
|
|
8633
|
+
"nullable": true,
|
|
8634
|
+
"description": "The guest's Airbnb user id."
|
|
8635
|
+
},
|
|
8636
|
+
"guestFirstName": {
|
|
8637
|
+
"type": "string",
|
|
8638
|
+
"nullable": true
|
|
8639
|
+
},
|
|
8640
|
+
"guestLastName": {
|
|
8641
|
+
"type": "string",
|
|
8642
|
+
"nullable": true
|
|
8643
|
+
},
|
|
8644
|
+
"guestProfilePicture": {
|
|
8645
|
+
"type": "string",
|
|
8646
|
+
"nullable": true
|
|
8647
|
+
},
|
|
8648
|
+
"airbnbStatus": {
|
|
8649
|
+
"type": "string",
|
|
8650
|
+
"nullable": true,
|
|
8651
|
+
"description": "Airbnb's raw status: `accept`, `pending`, `cancelled_by_guest`, `cancelled_by_host`, `cancelled_by_admin`, `deny`, `failed_verification`, `pending_voided`, `checkpoint_voided`, `timeout`, \u2026",
|
|
8652
|
+
"example": "accept"
|
|
8653
|
+
},
|
|
8654
|
+
"cancellationPolicy": {
|
|
8655
|
+
"type": "string",
|
|
8656
|
+
"nullable": true,
|
|
8657
|
+
"example": "moderate"
|
|
8658
|
+
},
|
|
8659
|
+
"cancellationReason": {
|
|
8660
|
+
"type": "string",
|
|
8661
|
+
"nullable": true
|
|
8662
|
+
},
|
|
8663
|
+
"totalPaidAmount": {
|
|
8664
|
+
"type": "string",
|
|
8665
|
+
"nullable": true,
|
|
8666
|
+
"description": "`totalPrice` as a decimal string.",
|
|
8667
|
+
"example": "233.51"
|
|
8668
|
+
},
|
|
8669
|
+
"totalPaidCurrency": {
|
|
8670
|
+
"type": "string",
|
|
8671
|
+
"nullable": true,
|
|
8672
|
+
"example": "USD"
|
|
8673
|
+
},
|
|
8674
|
+
"expectedPayoutAmount": {
|
|
8675
|
+
"type": "string",
|
|
8676
|
+
"nullable": true,
|
|
8677
|
+
"description": "`payout` as a decimal string.",
|
|
8678
|
+
"example": "190.32"
|
|
8679
|
+
},
|
|
8680
|
+
"expectedPayoutCurrency": {
|
|
8681
|
+
"type": "string",
|
|
8682
|
+
"nullable": true,
|
|
8683
|
+
"example": "USD"
|
|
8684
|
+
},
|
|
8685
|
+
"canceledAt": {
|
|
8686
|
+
"type": "string",
|
|
8687
|
+
"format": "date-time",
|
|
8688
|
+
"nullable": true
|
|
8689
|
+
},
|
|
8690
|
+
"createdAt": {
|
|
8691
|
+
"type": "string",
|
|
8692
|
+
"format": "date-time",
|
|
8693
|
+
"nullable": true
|
|
8694
|
+
},
|
|
8695
|
+
"updatedAt": {
|
|
8696
|
+
"type": "string",
|
|
8697
|
+
"format": "date-time",
|
|
8698
|
+
"nullable": true
|
|
8699
|
+
},
|
|
8700
|
+
"checkInDatetime": {
|
|
8701
|
+
"type": "string",
|
|
8702
|
+
"format": "date-time",
|
|
8703
|
+
"nullable": true,
|
|
8704
|
+
"description": "Check-in date at 00:00 UTC. Prefer `checkIn`."
|
|
8705
|
+
},
|
|
8706
|
+
"checkOutDatetime": {
|
|
8707
|
+
"type": "string",
|
|
8708
|
+
"format": "date-time",
|
|
8709
|
+
"nullable": true,
|
|
8710
|
+
"description": "Check-out date at 00:00 UTC. Prefer `checkOut`."
|
|
8711
|
+
},
|
|
8712
|
+
"timeZone": {
|
|
8713
|
+
"type": "string",
|
|
8714
|
+
"nullable": true,
|
|
8715
|
+
"example": "America/Costa_Rica"
|
|
8716
|
+
},
|
|
8717
|
+
"customerId": {
|
|
8718
|
+
"type": "string",
|
|
8719
|
+
"nullable": true,
|
|
8720
|
+
"description": "Your workspace id."
|
|
8721
|
+
},
|
|
8722
|
+
"guestId": {
|
|
8723
|
+
"type": "string",
|
|
8724
|
+
"nullable": true,
|
|
8725
|
+
"description": "The guest on `GET /v1/guests/{id}`."
|
|
8726
|
+
}
|
|
8727
|
+
}
|
|
8728
|
+
},
|
|
8729
|
+
"AirbnbReservationDetail": {
|
|
8730
|
+
"type": "object",
|
|
8731
|
+
"description": "One Airbnb reservation: the unified reservation (the same record as `GET /v1/reservations/{reservationId}`, as stored), the connected account and payout, and `airbnb` \u2014 the row `GET /v1/channels/airbnb/reservations` returns for it.",
|
|
8732
|
+
"required": [
|
|
8733
|
+
"id",
|
|
8734
|
+
"reservationId",
|
|
8735
|
+
"confirmationCode",
|
|
8736
|
+
"listingId",
|
|
8737
|
+
"airbnbListingId",
|
|
8738
|
+
"accountId",
|
|
8739
|
+
"accountName",
|
|
8740
|
+
"status",
|
|
8741
|
+
"checkIn",
|
|
8742
|
+
"checkOut",
|
|
8743
|
+
"guestName",
|
|
8744
|
+
"guestCount",
|
|
8745
|
+
"totalPrice",
|
|
8746
|
+
"currency",
|
|
8747
|
+
"payout",
|
|
8748
|
+
"payoutCurrency",
|
|
8749
|
+
"airbnb"
|
|
8750
|
+
],
|
|
8751
|
+
"properties": {
|
|
8752
|
+
"id": {
|
|
8753
|
+
"type": "string",
|
|
8754
|
+
"description": "The unified reservation id (same as `reservationId`).",
|
|
8755
|
+
"example": "667929"
|
|
8756
|
+
},
|
|
8757
|
+
"reservationId": {
|
|
8758
|
+
"type": "string",
|
|
8759
|
+
"description": "The unified reservation id: `GET /v1/reservations/{id}`.",
|
|
8760
|
+
"example": "667929"
|
|
8761
|
+
},
|
|
8762
|
+
"confirmationCode": {
|
|
8763
|
+
"type": "string",
|
|
8764
|
+
"example": "HMAS8FEPJM"
|
|
8765
|
+
},
|
|
8766
|
+
"listingId": {
|
|
8767
|
+
"type": "string",
|
|
8768
|
+
"description": "The Repull listing id.",
|
|
8769
|
+
"example": "42343"
|
|
8770
|
+
},
|
|
8771
|
+
"airbnbListingId": {
|
|
8772
|
+
"type": "string",
|
|
8773
|
+
"nullable": true,
|
|
8774
|
+
"description": "Airbnb's own listing id."
|
|
8775
|
+
},
|
|
8776
|
+
"accountId": {
|
|
8777
|
+
"type": "string",
|
|
8778
|
+
"nullable": true,
|
|
8779
|
+
"description": "The connected Airbnb account (host id, as a string)."
|
|
8780
|
+
},
|
|
8781
|
+
"accountName": {
|
|
8782
|
+
"type": "string",
|
|
8783
|
+
"nullable": true
|
|
8784
|
+
},
|
|
8785
|
+
"guestId": {
|
|
8786
|
+
"type": "string",
|
|
8787
|
+
"nullable": true
|
|
8788
|
+
},
|
|
8789
|
+
"platform": {
|
|
8790
|
+
"type": "string",
|
|
8791
|
+
"nullable": true,
|
|
8792
|
+
"example": "airbnb"
|
|
8793
|
+
},
|
|
8794
|
+
"pmsSource": {
|
|
8795
|
+
"type": "string",
|
|
8796
|
+
"nullable": true
|
|
8797
|
+
},
|
|
8798
|
+
"bookingReservationNumber": {
|
|
8799
|
+
"type": "string",
|
|
8800
|
+
"nullable": true
|
|
8801
|
+
},
|
|
8802
|
+
"unitExternalId": {
|
|
8803
|
+
"type": "string",
|
|
8804
|
+
"nullable": true
|
|
8805
|
+
},
|
|
8806
|
+
"unitName": {
|
|
8807
|
+
"type": "string",
|
|
8808
|
+
"nullable": true
|
|
8809
|
+
},
|
|
8810
|
+
"status": {
|
|
8811
|
+
"type": "string",
|
|
8812
|
+
"description": "Airbnb's status as stored on the reservation (`accept`, `cancelled`, `decline`, `pending_voided`, \u2026). The normalised value is `airbnb.status`.",
|
|
8813
|
+
"example": "accept"
|
|
8814
|
+
},
|
|
8815
|
+
"paymentStatus": {
|
|
8816
|
+
"type": "string",
|
|
8817
|
+
"nullable": true,
|
|
8818
|
+
"example": "paid"
|
|
8819
|
+
},
|
|
8484
8820
|
"checkIn": {
|
|
8485
8821
|
"type": "string",
|
|
8486
8822
|
"format": "date"
|
|
@@ -8489,6 +8825,12 @@
|
|
|
8489
8825
|
"type": "string",
|
|
8490
8826
|
"format": "date"
|
|
8491
8827
|
},
|
|
8828
|
+
"guestDetails": {
|
|
8829
|
+
"type": "object",
|
|
8830
|
+
"nullable": true,
|
|
8831
|
+
"description": "Guest counts: `numberOfGuests`, `numberOfAdults`, `numberOfChildren`, `numberOfInfants`, `numberOfPets`.",
|
|
8832
|
+
"additionalProperties": true
|
|
8833
|
+
},
|
|
8492
8834
|
"guestName": {
|
|
8493
8835
|
"type": "string",
|
|
8494
8836
|
"nullable": true
|
|
@@ -8498,12 +8840,110 @@
|
|
|
8498
8840
|
"nullable": true
|
|
8499
8841
|
},
|
|
8500
8842
|
"totalPrice": {
|
|
8843
|
+
"type": "string",
|
|
8844
|
+
"nullable": true,
|
|
8845
|
+
"description": "Total as a decimal string, in `currency`.",
|
|
8846
|
+
"example": "245.03"
|
|
8847
|
+
},
|
|
8848
|
+
"currency": {
|
|
8849
|
+
"type": "string",
|
|
8850
|
+
"nullable": true,
|
|
8851
|
+
"example": "EUR"
|
|
8852
|
+
},
|
|
8853
|
+
"payout": {
|
|
8501
8854
|
"type": "number",
|
|
8855
|
+
"nullable": true,
|
|
8856
|
+
"description": "What the host is expected to receive, in `payoutCurrency`."
|
|
8857
|
+
},
|
|
8858
|
+
"payoutCurrency": {
|
|
8859
|
+
"type": "string",
|
|
8502
8860
|
"nullable": true
|
|
8503
8861
|
},
|
|
8504
|
-
"
|
|
8862
|
+
"priceBreakdown": {
|
|
8863
|
+
"type": "object",
|
|
8864
|
+
"nullable": true,
|
|
8865
|
+
"description": "Nightly rates, fees, taxes, discounts, `hostPayout`.",
|
|
8866
|
+
"additionalProperties": true
|
|
8867
|
+
},
|
|
8868
|
+
"customFields": {
|
|
8869
|
+
"type": "object",
|
|
8870
|
+
"nullable": true,
|
|
8871
|
+
"additionalProperties": true
|
|
8872
|
+
},
|
|
8873
|
+
"cancellationPolicy": {
|
|
8874
|
+
"type": "string",
|
|
8875
|
+
"nullable": true
|
|
8876
|
+
},
|
|
8877
|
+
"cancellationReason": {
|
|
8878
|
+
"type": "string",
|
|
8879
|
+
"nullable": true
|
|
8880
|
+
},
|
|
8881
|
+
"cancellationDate": {
|
|
8882
|
+
"type": "string",
|
|
8883
|
+
"format": "date-time",
|
|
8884
|
+
"nullable": true
|
|
8885
|
+
},
|
|
8886
|
+
"hostNotes": {
|
|
8887
|
+
"type": "string",
|
|
8888
|
+
"nullable": true
|
|
8889
|
+
},
|
|
8890
|
+
"guestNotes": {
|
|
8891
|
+
"type": "string",
|
|
8892
|
+
"nullable": true
|
|
8893
|
+
},
|
|
8894
|
+
"internalNotes": {
|
|
8895
|
+
"type": "string",
|
|
8896
|
+
"nullable": true
|
|
8897
|
+
},
|
|
8898
|
+
"timeZone": {
|
|
8899
|
+
"type": "string",
|
|
8900
|
+
"nullable": true
|
|
8901
|
+
},
|
|
8902
|
+
"checkInTime": {
|
|
8903
|
+
"type": "string",
|
|
8904
|
+
"nullable": true
|
|
8905
|
+
},
|
|
8906
|
+
"checkOutTime": {
|
|
8907
|
+
"type": "string",
|
|
8908
|
+
"nullable": true
|
|
8909
|
+
},
|
|
8910
|
+
"customerId": {
|
|
8911
|
+
"type": "string",
|
|
8912
|
+
"nullable": true
|
|
8913
|
+
},
|
|
8914
|
+
"airbnbHostId": {
|
|
8915
|
+
"type": "string",
|
|
8916
|
+
"nullable": true,
|
|
8917
|
+
"deprecated": true,
|
|
8918
|
+
"description": "Use `accountId`."
|
|
8919
|
+
},
|
|
8920
|
+
"bookedAt": {
|
|
8505
8921
|
"type": "string",
|
|
8922
|
+
"format": "date-time",
|
|
8506
8923
|
"nullable": true
|
|
8924
|
+
},
|
|
8925
|
+
"airbnb": {
|
|
8926
|
+
"allOf": [
|
|
8927
|
+
{
|
|
8928
|
+
"$ref": "#/components/schemas/AirbnbReservation"
|
|
8929
|
+
}
|
|
8930
|
+
],
|
|
8931
|
+
"nullable": true,
|
|
8932
|
+
"description": "The Airbnb record, in the list endpoint's shape. Null only while it is still being imported."
|
|
8933
|
+
}
|
|
8934
|
+
}
|
|
8935
|
+
},
|
|
8936
|
+
"AirbnbReservationDetailResponse": {
|
|
8937
|
+
"type": "object",
|
|
8938
|
+
"required": [
|
|
8939
|
+
"data"
|
|
8940
|
+
],
|
|
8941
|
+
"properties": {
|
|
8942
|
+
"data": {
|
|
8943
|
+
"$ref": "#/components/schemas/AirbnbReservationDetail"
|
|
8944
|
+
},
|
|
8945
|
+
"dataFreshness": {
|
|
8946
|
+
"$ref": "#/components/schemas/AirbnbDataFreshness"
|
|
8507
8947
|
}
|
|
8508
8948
|
}
|
|
8509
8949
|
},
|
|
@@ -21767,12 +22207,12 @@
|
|
|
21767
22207
|
"redirectUrl": {
|
|
21768
22208
|
"type": "string",
|
|
21769
22209
|
"format": "uri",
|
|
21770
|
-
"description": "Where to send the user after they finish (or cancel).
|
|
22210
|
+
"description": "Where to send the user after they finish (or cancel). Every return to it carries `status` (`connected`, `cancelled`, `error` with a `code`, `expired`, `pending` when the host chose to finish later, or `requested` for a request-only PMS), `sessionId` (the id this call returns) and `state` when you sent one; a connected return adds `connectionId` and `externalAccountId` (and `hostId` for Airbnb). Your existing query string is kept."
|
|
21771
22211
|
},
|
|
21772
22212
|
"state": {
|
|
21773
22213
|
"type": "string",
|
|
21774
22214
|
"nullable": true,
|
|
21775
|
-
"description": "Your own correlation token, e.g. your user id (at most 500 characters). Echoed in this response, on
|
|
22215
|
+
"description": "Your own correlation token, e.g. your user id (at most 500 characters). Echoed in this response, on every redirect back (`&state=`, whatever the outcome), in the popup message, and in the `connect.session.completed` webhook. Without it, match the return by `sessionId`."
|
|
21776
22216
|
},
|
|
21777
22217
|
"reservationHistoryMonths": {
|
|
21778
22218
|
"type": "integer",
|
|
@@ -22028,7 +22468,7 @@
|
|
|
22028
22468
|
"post": {
|
|
22029
22469
|
"operationId": "create_connection",
|
|
22030
22470
|
"summary": "Connect to PMS/OTA provider",
|
|
22031
|
-
"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`.",
|
|
22471
|
+
"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`, `state`).\n\n**Returning to your app.** Every return to `redirectUrl` carries `status`, `sessionId` and your `state`, whether the host connected, cancelled, hit an error or let the session expire, so you can always tie it back to the call that started it.\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`.",
|
|
22032
22472
|
"tags": [
|
|
22033
22473
|
"Connect"
|
|
22034
22474
|
],
|
|
@@ -22047,7 +22487,7 @@
|
|
|
22047
22487
|
"redirectUrl": {
|
|
22048
22488
|
"type": "string",
|
|
22049
22489
|
"format": "uri",
|
|
22050
|
-
"description": "Airbnb
|
|
22490
|
+
"description": "Airbnb, Booking.com and PriceLabs \u2014 where to send the user after they finish (or cancel) the hosted connect flow. Every return to it carries `status` (`connected`, `cancelled`, `error` with a `code`, `expired`, `pending` when the host chose to finish later, or `requested` for a request-only PMS), `sessionId` (the id this call returns) and `state` when you sent one; a connected return adds `connectionId` and `externalAccountId` (and `hostId` for Airbnb). Your existing query string is kept."
|
|
22051
22491
|
},
|
|
22052
22492
|
"accessType": {
|
|
22053
22493
|
"type": "string",
|
|
@@ -22068,7 +22508,8 @@
|
|
|
22068
22508
|
},
|
|
22069
22509
|
"state": {
|
|
22070
22510
|
"type": "string",
|
|
22071
|
-
"
|
|
22511
|
+
"nullable": true,
|
|
22512
|
+
"description": "Your own correlation token, e.g. your user id (at most 500 characters), for every hosted flow (Airbnb, Booking.com, PriceLabs). Echoed in this response, on every redirect back (`&state=`, whatever the outcome), in the popup message, and in the `connect.session.completed` webhook. Without it, match the return by `sessionId`."
|
|
22072
22513
|
},
|
|
22073
22514
|
"workspace": {
|
|
22074
22515
|
"type": "object",
|
|
@@ -22101,11 +22542,11 @@
|
|
|
22101
22542
|
},
|
|
22102
22543
|
"responses": {
|
|
22103
22544
|
"200": {
|
|
22104
|
-
"description": "
|
|
22545
|
+
"description": "Hosted session created (Airbnb, Booking.com, PriceLabs): send the user to `url`.",
|
|
22105
22546
|
"content": {
|
|
22106
22547
|
"application/json": {
|
|
22107
22548
|
"schema": {
|
|
22108
|
-
"$ref": "#/components/schemas/
|
|
22549
|
+
"$ref": "#/components/schemas/ConnectProviderSession"
|
|
22109
22550
|
}
|
|
22110
22551
|
}
|
|
22111
22552
|
}
|
|
@@ -25130,7 +25571,7 @@
|
|
|
25130
25571
|
"get": {
|
|
25131
25572
|
"operationId": "list_airbnb_reservations",
|
|
25132
25573
|
"summary": "List Airbnb reservations",
|
|
25133
|
-
"description": "Cursor-paginated list of reservations sourced directly from Airbnb. Use this when you need Airbnb-specific fields (guest payout split, cancellation policy snapshot) that the unified `/v1/reservations` endpoint flattens away.\n\n**Real time.** Airbnb notifies Repull of every new booking, change and cancellation as it happens, on every access level (read-only included): it is here within seconds and fires `reservation.created` / `reservation.updated` / `reservation.cancelled` within about a minute. `dataFreshness.lastSyncedAt` is the last full re-read of the account, not the age of these rows
|
|
25574
|
+
"description": "Cursor-paginated list of reservations sourced directly from Airbnb. Use this when you need Airbnb-specific fields (guest payout split, cancellation policy snapshot) that the unified `/v1/reservations` endpoint flattens away.\n\nEach row has the Airbnb `confirmationCode`, the `reservationId` of the same stay on `GET /v1/reservations/{id}`, the Repull `listingId` and Airbnb `airbnbListingId`, a normalised `status`, `checkIn`/`checkOut` dates, `totalPrice` + `currency` (what the guest paid) and `payout` + `payoutCurrency` (what the host receives). Airbnb's own record follows (`airbnbStatus`, `totalPaidAmount`, `expectedPayoutAmount`, \u2026) for integrations already reading it.\n\n**Real time.** Airbnb notifies Repull of every new booking, change and cancellation as it happens, on every access level (read-only included): it is here within seconds and fires `reservation.created` / `reservation.updated` / `reservation.cancelled` within about a minute. `dataFreshness.lastSyncedAt` is the last full re-read of the account, not the age of these rows.\n\nWalk pages with `?cursor=<pagination.nextCursor>` until `pagination.hasMore` is `false`. The cursor is opaque \u2014 never construct or parse it client-side.\n\n`?offset=` is also accepted as a first-class alias for shallow paging (0..10000) \u2014 see the `offset` parameter below. Mutually exclusive with `cursor`. Internally this walks upstream Airbnb cursor pages to skip rows, so deep offsets cost N/limit upstream round-trips; cursor remains the better choice for deep pagination.\n\nWhen `status` is omitted, all statuses are returned (Airbnb defaults to `accepted` only on its own surface, but this endpoint normalises to \"all\"). Pass `?status=accepted` to scope.\n\nReservations on inactive listings are left out (counts and cursors included); they keep syncing and reappear once the listing is activated. Filtering by an inactive listing (`listing_id`) returns `403 listing_inactive`.\n\n**Several Airbnb accounts?** A workspace can connect more than one. By default this returns every connected account's rows; pass `?account_id=<airbnb host id>` to scope to one. Every row carries `accountId` + `accountName` either way, and `dataFreshness.accounts[]` reports each account's freshness separately, so one disconnected host no longer marks the whole response stale.",
|
|
25134
25575
|
"tags": [
|
|
25135
25576
|
"Airbnb"
|
|
25136
25577
|
],
|
|
@@ -25180,10 +25621,12 @@
|
|
|
25180
25621
|
"cancelled",
|
|
25181
25622
|
"completed",
|
|
25182
25623
|
"failed_verification",
|
|
25183
|
-
"request_voided"
|
|
25624
|
+
"request_voided",
|
|
25625
|
+
"expired",
|
|
25626
|
+
"error"
|
|
25184
25627
|
]
|
|
25185
25628
|
},
|
|
25186
|
-
"description": "Filter by
|
|
25629
|
+
"description": "Filter by the normalised `status`. `completed` = accepted and already checked out. Airbnb's raw values (`accept`, `cancelled_by_guest`, \u2026) are accepted too. Omit to receive all statuses; an unknown value returns `400 invalid_params`."
|
|
25187
25630
|
},
|
|
25188
25631
|
{
|
|
25189
25632
|
"name": "start_date",
|
|
@@ -25224,6 +25667,9 @@
|
|
|
25224
25667
|
}
|
|
25225
25668
|
}
|
|
25226
25669
|
},
|
|
25670
|
+
"400": {
|
|
25671
|
+
"$ref": "#/components/responses/BadRequest"
|
|
25672
|
+
},
|
|
25227
25673
|
"403": {
|
|
25228
25674
|
"$ref": "#/components/responses/ListingInactive"
|
|
25229
25675
|
},
|
|
@@ -25257,7 +25703,7 @@
|
|
|
25257
25703
|
"content": {
|
|
25258
25704
|
"application/json": {
|
|
25259
25705
|
"schema": {
|
|
25260
|
-
"$ref": "#/components/schemas/
|
|
25706
|
+
"$ref": "#/components/schemas/AirbnbReservationDetailResponse"
|
|
25261
25707
|
}
|
|
25262
25708
|
}
|
|
25263
25709
|
}
|
|
@@ -42584,8 +43030,8 @@
|
|
|
42584
43030
|
},
|
|
42585
43031
|
"post": {
|
|
42586
43032
|
"operationId": "startConnectionImport",
|
|
42587
|
-
"summary": "
|
|
42588
|
-
"description": "Two scopes:
|
|
43033
|
+
"summary": "Start an import of a connection",
|
|
43034
|
+
"description": "Start an import of a connected Airbnb account now. Two scopes:\n\n**`full`** \u2014 the import that runs when an account is first connected, again: listings with their calendars (pricing and availability), reservations, then payouts, reviews and conversations. For an account that has never fully imported, e.g. a first import that never started or stalled. Returns `409 conflict` once the account has been fully imported (everything keeps syncing on its own after that).\n\n**`listings`** \u2014 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. The same import runs on its own once a day for every connected Airbnb account, and when the host reconnects.\n\nWith no body, Repull chooses: `full` for an account that has never fully imported, `listings` otherwise.\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\nEvery scope runs in the background (`202`) and is recorded like any other import: follow it on `GET /v1/connections/{id}/imports` (`importId`, when returned, is its id there) or wait for `account.import.completed`. An import no worker picks up within 10 minutes ends `failed` with reason `did_not_start` (and `account.import.failed`); call this again. A `full` request also replaces such an import itself (`replacedImportId`).\n\nAirbnb connections only for now. Returns `409 conflict` while an import of the account is already running, and `409 connection_reauth_required` when the account is disconnected.",
|
|
42589
43035
|
"tags": [
|
|
42590
43036
|
"Connections"
|
|
42591
43037
|
],
|
|
@@ -42611,10 +43057,9 @@
|
|
|
42611
43057
|
"type": "string",
|
|
42612
43058
|
"enum": [
|
|
42613
43059
|
"listings",
|
|
42614
|
-
"
|
|
43060
|
+
"full"
|
|
42615
43061
|
],
|
|
42616
|
-
"
|
|
42617
|
-
"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. `reservations` = the account's reservations, stays from the last month and every future one. The full import runs when an account is connected."
|
|
43062
|
+
"description": "What to import. `full` = the first-connect import again (listings, calendars, reservations, payouts, reviews, conversations), for an account that has never fully imported. `listings` = the account's listings with their calendars. Omit to let Repull choose: `full` for an account that has never fully imported, else `listings`."
|
|
42618
43063
|
}
|
|
42619
43064
|
}
|
|
42620
43065
|
}
|
|
@@ -42640,7 +43085,7 @@
|
|
|
42640
43085
|
"type": "string",
|
|
42641
43086
|
"enum": [
|
|
42642
43087
|
"listings",
|
|
42643
|
-
"
|
|
43088
|
+
"full"
|
|
42644
43089
|
]
|
|
42645
43090
|
},
|
|
42646
43091
|
"status": {
|
|
@@ -42652,13 +43097,25 @@
|
|
|
42652
43097
|
"queuedAt": {
|
|
42653
43098
|
"type": "string",
|
|
42654
43099
|
"format": "date-time"
|
|
43100
|
+
},
|
|
43101
|
+
"importId": {
|
|
43102
|
+
"type": "string",
|
|
43103
|
+
"nullable": true,
|
|
43104
|
+
"description": "The import's id on `GET /v1/connections/{id}/imports` and in the `account.import.*` webhooks."
|
|
43105
|
+
},
|
|
43106
|
+
"replacedImportId": {
|
|
43107
|
+
"type": "string",
|
|
43108
|
+
"nullable": true,
|
|
43109
|
+
"description": "`full` only: an earlier import of this account that no worker had picked up, closed as `failed` (`did_not_start`) and replaced by this one."
|
|
42655
43110
|
}
|
|
42656
43111
|
},
|
|
42657
43112
|
"required": [
|
|
42658
43113
|
"connection",
|
|
42659
43114
|
"scope",
|
|
42660
43115
|
"status",
|
|
42661
|
-
"queuedAt"
|
|
43116
|
+
"queuedAt",
|
|
43117
|
+
"importId",
|
|
43118
|
+
"replacedImportId"
|
|
42662
43119
|
]
|
|
42663
43120
|
}
|
|
42664
43121
|
}
|