Skip to content

Airbnb reservation confirmations

Parse Airbnb reservation emails

Airbnb emails hosts when a reservation is confirmed. This layout reads the guest, the check-in and checkout dates, the number of guests, the confirmation code and what you earn.

Use this layoutFree plan included: 2 layouts per endpoint.
The email
From
Airbnb <automated@airbnb.example>
Subject
Reservation confirmed - Jane Doe arrives Nov 1
New booking confirmed! Jane arrives Nov 1.

Check-in
Sat, Nov 1
3:00 PM
Checkout
Tue, Nov 4
11:00 AM

Guests
2 adults

Confirmation code
HMABCD1234

You earn
$412.00
What your endpoint delivers
{
  "parsed": {
    "status": "matched",
    "layout": {
      "id": "airbnb-reservations",
      "name": "Airbnb reservations"
    },
    "fields": {
      "guest": "Jane Doe",
      "check_in": "Sat, Nov 1",
      "checkout": "Tue, Nov 4",
      "guests": "2 adults",
      "code": "HMABCD1234",
      "payout": "412.00"
    },
    "lineItems": []
  }
}

The layout

It matches the email by its subject, reads each field with an RE2 pattern. Edit any of it in the endpoint's settings, where the preview tries it on an email you captured as you type.

{
  "id": "airbnb-reservations",
  "name": "Airbnb reservations",
  "match": {
    "conditions": [
      {
        "field": "email",
        "name": "subject",
        "op": "starts_with",
        "value": "Reservation confirmed"
      }
    ]
  },
  "fields": [
    {
      "name": "guest",
      "from": "subject",
      "pattern": "confirmed - (.+?) arrives"
    },
    {
      "name": "check_in",
      "from": "text",
      "pattern": "Check-in\\r?\\n([^\\r\\n]+)"
    },
    {
      "name": "checkout",
      "from": "text",
      "pattern": "Checkout\\r?\\n([^\\r\\n]+)"
    },
    {
      "name": "guests",
      "from": "text",
      "pattern": "Guests\\r?\\n([^\\r\\n]+)"
    },
    {
      "name": "code",
      "from": "text",
      "pattern": "Confirmation code\\r?\\n(\\S+)"
    },
    {
      "name": "payout",
      "from": "text",
      "pattern": "You earn\\r?\\n\\$?([0-9][0-9.,]*)"
    }
  ]
}

More senders