# Booking Logs

Audit all actions performed on a specific booking.

#### Endpoint

```http
GET /api/v1/client/bookings/{bookingId}/logs
```

***

#### Example Request

```bash
curl "/api/v1/client/bookings/e7b7f6bb-6c0c-4e2c-9b3e-9c6f2a1c0a77/logs" \
  -H "X-API-Key: <your_api_key>"
```

#### Example Response (200 OK)

```json
[
  {
    "id": 1250,
    "property": "7b9e2f12-34cd-4e89-bf45-4a18f5a8a1f0",
    "bid": "e7b7f6bb-6c0c-4e2c-9b3e-9c6f2a1c0a77",
    "status": "update-status-client-api",
    "user": "Client API",
    "amount": "0.0000",
    "logs": {
      "type": "modified-client-api",
      "status": "paid",
      "prev_status": "confirmed"
    },
    "created": "2025-10-02T11:05:13Z",
    "updated": "2025-10-02T11:05:13Z"
  }
]
```

#### Activity Status Codes

| Status                     | Description                                             |
| -------------------------- | ------------------------------------------------------- |
| `update-status-client-api` | Status or notes updated via Client API action endpoint. |
| `payment-added`            | A new payment record was linked to this booking.        |
| `payment-updated`          | An existing payment amount or method was modified.      |
| `payment-removed`          | A payment was soft-deleted from this booking.           |

> **Audit Trail**: The `user` field indicates who performed the action. Actions performed via the API will typically show "Client API" or your API Key username.
