> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.duve.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.duve.com/_mcp/server.

This article outlines the information sent in each webhook based on the event type configured in Duve.

The webhook events you receive are only relevant to the sync source that's live and connected to your Duve account.

**Kindly note:** Each webhook payload will vary depending on your endpoint, the selected trigger, and the data points you choose. The payload Duve sends will adapt based on these configurations to ensure it aligns with your requirements.

![alt text](https://connect.duve.com/pub/developers/pms-api-webhooks.png)


### Available Data Points in Duve webhooks

| **#** | **Data point**                       | **#** | **Data Point**                     |
|-------|---------------------------------------|-------|---------------------------------------|
| 1     | Booking/Reservation ID               | 25    | PMS External ID                      |
| 2     | Estimated Check-In Time              | 26    | Verified Adults                      |
| 3     | Verified First Name                  | 27    | Verified Babies                      |
| 4     | Verified Last Name                   | 28    | Verified Email                       |
| 5     | Passport Uploaded                    | 29    | Credit Card Uploaded                 |
| 6     | Allow Opt-In Marketing               | 30    | Verified Phone                       |
| 7     | Guests Info                          | 31    | Arrival By                           |
| 8     | External ID                          | 32    | Flight Origin                        |
| 9     | Earliest Check-In Hour               | 33    | Flight Number                        |
| 10    | Latest Check-Out Hour               | 34    | Skip Stay Payment Step               |
| 11    | Check-In Date                        | 35    | Skipped Signed Document              |
| 12    | Check-Out Date                       | 36    | Purpose of Stay                      |
| 13    | Airport Landing                      | 37    | Guest Profiles                       |
| 14    | Reservation Link                     | 38    | Preferred Language                   |
| 15    | Human Readable                       | 39    | Gallery Link                         |
| 16    | Source                               | 40    | Signed Document Name                 |
| 17    | Company ID                           | 41    | Paid For Stay                        |
| 18    | Is Quick Action                      | 42    | Guest Country                        |
| 19    | Client External ID                   | 43    | Check-In Option                      |
| 20    | Guest Category Code                  | 44    | Need Transport                       |
| 21    | Timezone                             | 45    | Estimated Landing Time               |
| 22    | Custom Fields Answers                | 46    | Train Station                        |
| 23    | External Property ID                 | 47    | Origin                               |
| 24    | Estimated Check-In Date-Time         | 48    | Verified Children                    |


## Reservation Created
Example:
```json
{
  "accountId": null,
  "event": "reservationCreated",
  "resource": {
    "id": "63bd5f817c1f40e0b093c706",
    "sId": "-FaCfxErX",
    "externalId": "123467890",
    "preCheckInLink": "https://x.duve.co/p/-FaCfxErX",
    "preCheckOutLink": "https://x.duve.co/c/-FaCfxErX",
    "guestAppLink": "https://x.duve.co/g/-FaCfxErX"
  }
}
```

## Pre Check-in Done
Example:

```json
{
  "accountId": "dummy23",
  "event": "preCheckInDone",
  "resource": {
    "id": "6368c383e44d30f1705bd53a",
    "externalId": "27e19639-ede9-4649-b6aa-aede00c069ce",
    "estimatedCheckInTime": "22:30",
    "link": "https://x.duve.com/reservations/6368c383e44d30f1705bd53a",
    "verifiedEmail": "bsmith@gmail.com",
    "verifiedPhone": "+1 (435) 364-7744",
    "verifiedFirstName": "Bobby",
    "verifiedLastName": "Smith"
  }
}
```

## Pre Check-out Updated
Example:
```json
{
  "accountId": "dummy23",
  "event": "preCheckOutUpdated",
  "resource": {
    "id": "6368c383e44d30f1705bd53a",
    "externalId": "27e19639-ede9-4649-b6aa-aede00c069ce",
    "link": "https://x.duve.com/reservations/6368c383e44d30f1705bd53a",
    "estimatedCheckOutTime": "11:00",
    "estimatedCheckOutDateTime": "2023-01-15 11:00"
  }
}
```

## Pre Check-out Done
Example:
```json
{
  "accountId": "dummy23",
  "event": "preCheckOutDone",
  "resource": {
    "id": "6368c383e44d30f1705bd53a",
    "externalId": "27e19639-ede9-4649-b6aa-aede00c069ce",
    "link": "https://x.duve.com/reservations/6368c383e44d30f1705bd53a",
    "checkOutScore": {
      "cleanScore": 4,
      "propertyScore": 4,
      "staffScore": 3
    },
    "checkOutReview": "test",
    "estimatedCheckOutTime": "11:00"
  }
}
```

## Guest Document Uploaded
Example:
```json
{
  "accountId": "dummy23",
  "event": "guestDocumentUploaded",
  "resource": {
    "id": "6368c383e44d30f1705bd53a",
    "externalId": "27e19639-ede9-4649-b6aa-aede00c069ce",
    "documents": [
      {
        "name": "document1.pdf",
        "uploadDate": "2023-01-11T08:40:09.419Z",
        "dtype": "2"
      }
    ]
  }
}
```
## Guest Link Opened
Example:
```json
{
  "accountId": "",
  "event": "guestLinkOpenedGuestApp",
  "resource": {
    "id": "6368c383e44d30f1705bd53a",
    "externalId": "27e19639-ede9-4649-b6aa-aede00c069ce",
    "guestLink": "https://t.duve.co/g/5F0Ypwr8q5"
  }
}
```
## Order Created
Example:
```json
{
  "accountId": "6368c35588d770ea9b0ae2e1",
  "event": "orderCreated",
  "resource": {
    "id": "6368c383e44d30f1705bd53a",
    "externalId": "27e19639-ede9-4649-b6aa-aede00c069ce",
    "order": {
      "id": "63be7b757c2370fadee27bd1",
      "orderId": 16800,
      "status": 0,
      "chargeAmount": 90,
      "currency": "USD"
    }
  }
}
```

## Order Cancelled
Example:
```json
{
  "accountId": "6368c35588d770ea9b0ae2e1",
  "event": "orderCancelled",
  "resource": {
    "id": "6368c383e44d30f1705bd53a",
    "externalId": "27e19639-ede9-4649-b6aa-aede00c069ce",
    "order": {
      "id": "63be7b757c2370fadee27bd1",
      "status": 3,
      "chargeAmount": 90,
      "currency": "USD"
    }
  }
}
```

## Guest Message
Example:
```json
{
  "accountId": "[companyId]",
  "event": "chatMessageSent",
  "resource": {
    "id": "[converstationChatId]",
    "messageContent": "Hello",
    "author": "Host",
    "sentAt": "2023-01-01T12:34:56Z"
  }
}
```

## Order Refunded
Example:
```json
{
  "accountId": "6368c35588d770ea9b0ae2e1",
  "event": "orderRefunded",
  "resource": {
    "id": "6368c383e44d30f1705bd53a",
    "order": {
      "id": "63be7cfb7c2370fadee28251",
      "refundTotal": 100,
      "numOfRefundsMade": 1
    }
  }
}
```