---
title: "Detajet e klientit sipas ID"
operation_id: "api.v1.clients.details"
method: GET
path: "/api/v1/clients/{id}/details"
group: "Klienti"
api_version: "v1"
authenticated: true
canonical: "https://fature.al/api-reference/endpoints/api-v1-clients-details.html"
---

# Detajet e klientit sipas ID

Part of the [fature.al API](/api-reference/index.html) documentation.

## GET /api/v1/clients/{id}/details

Kthen nje klient te vetem me te gjitha fushat, si per kompani ashtu edhe per person. Fushat qe
nuk i perkasin llojit te klientit kthehen `null`.

Full URL: `https://fature.al/api/v1/clients/{id}/details`

API version: `v1`.

Authentication: required (bearer token).

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | integer | yes | ID e klientit. |

### Example request

```bash
curl -X GET 'https://fature.al/api/v1/clients/42/details' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'X-Client-Id: YOUR_CLIENT_ID' \
  -H 'X-Client-Secret: YOUR_CLIENT_SECRET' \
  -H 'Accept: application/json'
```

### Responses

**200** — OK

| Field | Type | Description |
| --- | --- | --- |
| `status` | boolean |  |
| `data` | object |  |
| `data.client` | object |  |
| `data.client.id` | integer |  |
| `data.client.name` | string |  |
| `data.client.client_type` | string, nullable |  |
| `data.client.company_name` | string, nullable |  |
| `data.client.company_type` | string, nullable |  |
| `data.client.nipt` | string, nullable |  |
| `data.client.first_name` | string, nullable |  |
| `data.client.surname` | string, nullable |  |
| `data.client.birthday` | string, nullable |  |
| `data.client.id_type` | string, nullable |  |
| `data.client.id_num` | string, nullable |  |
| `data.client.nationality_code` | string, nullable |  |
| `data.client.nationality_id` | integer, nullable |  |
| `data.client.telephone` | string, nullable |  |
| `data.client.email` | string, nullable |  |
| `data.client.address` | string, nullable |  |
| `data.client.city` | string, nullable |  |
| `data.client.customer_number` | string, nullable |  |
| `data.client.created_at` | string, nullable |  |

```json
{
    "status": true,
    "data": {
        "client": {
            "id": 1,
            "name": "Jane Doe",
            "client_type": "client type",
            "company_name": "Jane Doe",
            "company_type": "company type",
            "nipt": "nipt",
            "first_name": "Jane",
            "surname": "Jane Doe",
            "birthday": "birthday",
            "id_type": "id type",
            "id_num": "id num",
            "nationality_code": "nationality code",
            "nationality_id": 1,
            "telephone": "+15551234567",
            "email": "jane@example.com",
            "address": "1 Example Street",
            "city": "Berlin",
            "customer_number": "customer number",
            "created_at": "created at"
        }
    }
}
```

**404** — Klienti nuk u gjet, ose nuk i perket kompanise suaj.

| Field | Type | Description |
| --- | --- | --- |
| `status` | boolean | Always false. A successful response carries `status: true` and a `data` object instead |
| `message` | string | The exception message. Empty when the failure carries no exception of its own |
| `errors` | array | Messages to show the operator or to log. Absent when the failure has nothing to add beyond `message` |

```json
{
    "status": true,
    "message": "Hello there",
    "errors": [
        "errors"
    ]
}
```

**500** — Gabim i papritur ne server.

| Field | Type | Description |
| --- | --- | --- |
| `status` | boolean | Always false. A successful response carries `status: true` and a `data` object instead |
| `message` | string | The exception message. Empty when the failure carries no exception of its own |
| `errors` | array | Messages to show the operator or to log. Absent when the failure has nothing to add beyond `message` |

```json
{
    "status": true,
    "message": "Hello there",
    "errors": [
        "errors"
    ]
}
```
