---
title: "account.units.added — Webhooks"
canonical: "https://repull.dev/docs/webhooks/account-units-added"
description: "The account.units.added webhook: a Booking.com Extranet login gained a property or room. Payload, and how to map the new units so they import."
updated: "2026-11-30T00:48:58.694Z"
commit: "18314c12fefb59a7545ef7607c0893919de20aa9"
---

# `account.units.added`

A connected Booking.com Extranet login gained a property, or a room on a property it already had. Map the new units so their bookings, messages and reviews import.

## When it fires

One Extranet login covers every property its Booking.com user can see. When the hotel adds the same user to another property, Repull finds it the next time it reads the login's properties, and sends one event per property with its new rooms. It is not sent for the properties a fresh connection starts with (`connect.session.completed` covers those), and the same rooms are never announced twice. `hotels[].isNew` is `false` when rooms were added to a property the login already had. Today only Booking.com Extranet logins send it.

## Payload

Every delivery uses the same outer envelope (`event`, `eventId`, `apiVersion`, `timestamp`, `account`, `data`, plus a numeric `workspaceId` on events from a [customer workspace](https://repull.dev/docs/webhooks-introduction.md#routing-events-to-a-workspace)). Dedupe on `eventId` — it stays stable across retries and replays, while the `X-Repull-Delivery-Id` header changes on every attempt.

```
{
  "event": "account.units.added",
  "eventId": "3f1c9a2e-8b7d-4c6a-9e0f-1a2b3c4d5e6f",
  "apiVersion": "2026-04",
  "timestamp": "2026-05-01T12:34:56.000Z",
  "data": {
    "workspaceId": 1204,
    "provider": "booking_extranet",
    "accountId": "20123456",
    "connectionId": "482",
    "handle": "booking_extranet:20123456",
    "hotels": [
      {
        "hotelId": "1234567",
        "name": "Old Town Suites",
        "isNew": true
      }
    ],
    "units": [
      {
        "unitId": "1456",
        "name": "Double Room",
        "hotelId": "1234567",
        "roomId": "123456701",
        "mapped": false,
        "listingId": null
      },
      {
        "unitId": "1457",
        "name": "Twin Room",
        "hotelId": "1234567",
        "roomId": "123456702",
        "mapped": false,
        "listingId": null
      }
    ],
    "addedAt": "2026-11-12T16:40:00.000Z",
    "nextSteps": [
      {
        "method": "GET",
        "path": "/v1/connections/booking_extranet:20123456/units",
        "description": "List the units with mapping suggestions."
      },
      {
        "method": "POST",
        "path": "/v1/connections/booking_extranet:20123456/mappings",
        "description": "Map each new unit to a listing (or create one) so its bookings, messages and reviews import."
      }
    ]
  }
}
```

## Verifying signatures

Every delivery includes a timestamped `X-Repull-Signature` header of the form `t=<unix_ts>,v1=<hex>`, where `v1` is ``HMAC-SHA256(signing_secret, `${t}.${raw_body}`)``. Verify it before processing — see [Verify Signatures](https://repull.dev/docs/verify-webhook-signatures.md) for full Node.js and Python examples.

> **Warning: Use the raw body**
>
> Sign the raw request body exactly as received, not a re-stringified JSON object. Re-serialisation can reorder keys or change whitespace and break the signature.

## Example handler

```
if (event.event === 'account.units.added') {
  const { hotels, units, nextSteps } = event.data
  // nextSteps carries the mappings path for this connection.
  const mapPath = nextSteps.find((s) => s.method === 'POST').path
  // Create a listing for each new room (or pass a listingId to map it to one you have):
  await repull.post(mapPath, {
    mappings: units.map((u) => ({ unitId: u.unitId, create: true })),
  })
  notify(`New on Booking.com: ${hotels[0].name} (${units.length} rooms)`)
}
```

## Common patterns

- Show the user a "new property found" prompt that lists `units` and lets them pick a listing for each, then `POST /v1/connections/{id}/mappings`.
- Call `GET /v1/connections/{id}/units` for mapping suggestions (`suggested_listing_id`) before asking the user.
- Route it to the right end customer by `account.externalAccountId` — the Extranet login — like every other event.

## Related

- [Connect with Extranet login](https://repull.dev/docs/channels/booking/extranet.md)
- [Properties & Listings](https://repull.dev/docs/channels/booking/mapping.md)
- [connect.session.completed](https://repull.dev/docs/webhooks/connect-session-completed.md)

**Tip:** Acknowledge with a 2xx status within 10 seconds. Failed deliveries are retried 7 times over 24 hours, with backoff.[Webhook reliability →](https://repull.dev/docs/webhooks-introduction.md)
