Returns a supplier's details.

```
v1/suppliers/get_entry.php
```

## Parameters

| Field | Type | Required | Description |
|---|---|---|---|
| supplier_id | int | Yes | Supplier ID |

A deleted supplier is not returned.

## Response

An object supplier with the supplier's fields. The fields from the response can be sent to [v1/suppliers/edit](https://developers.controlata.com/hc/api-docs/articles/api-suppliers-edit) unchanged, adding supplier_id.

| Field | Type | Description |
|---|---|---|
| id | int | Supplier ID |
| name | string | Name |
| email | string | Email |
| phone | string | Phone |
| address | string | Address |
| agreement | string | Agreement |
| manager_name | string | Manager |
| manager_post | string | Manager's position |
| notes | string | Notes |

## Example request

```
{
    "supplier_id": 45
}
```

## Example response

```
{
    "success": true,
    "supplier": {
        "id": 45,
        "name": "Woodtrade Ltd",
        "email": "wholesale@woodtrade.com",
        "phone": "+1 646 555-0188",
        "address": "8 Harbor St, Boston",
        "agreement": "No. 7 of 15 Feb 2026",
        "manager_name": "Oleg Baker",
        "manager_post": "Director",
        "notes": "Delivery on Tuesdays"
    }
}
```

## Errors

| Error | Reason |
|---|---|
| No supplier_id in input | supplier_id is missing |
| Supplier not found or access denied | Supplier not found or deleted |
