# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hostelmate.co/api-documentation/bookings/logs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
