> ## Documentation Index
> Fetch the complete documentation index at: https://docs.partners.inra.co.th/llms.txt
> Use this file to discover all available pages before exploring further.

# Company profile

> How GET /v1/companies/{company_id} relates to search, and what a retired or missing id means.

`GET /v1/companies/{company_id}` returns the same core fields you already saw in search, for one company.

Use it when you already stored an id and want to refresh the profile, or when you want to confirm `database_report` before placing an order.

```bash cURL theme={null}
curl -s -H "Authorization: Bearer $TOKEN"   -H "Accept: application/json"   https://partners-sandbox.inra.co.th/v1/companies/100001
```

```python Python theme={null}
import os
import requests

headers = {
    "Authorization": f"Bearer {os.environ['TOKEN']}",
    "Accept": "application/json",
}
response = requests.get(
    "https://partners-sandbox.inra.co.th/v1/companies/100001",
    headers=headers,
    timeout=30,
)
response.raise_for_status()
company = response.json()
print(company["company_name"], company["database_report"])
```

## Identifiers and errors

* In the sandbox, use a sample id such as `100001`.
* In production, use a nine-digit [`public_id`](https://docs.partners.inra.co.th/concepts/public-id) from search (or from an identified offline order).
* Unknown ids return `404` with the code `company_not_found`.
* A production id that has been retired returns `410` with the code `company_retired`. That value will never come back; do not retry it.
* If the live company file is temporarily unavailable, the API returns `503` with the code `service_unavailable` and a `Retry-After` header.

The profile is not the full credit report. For the report itself, see [Database reports](https://docs.partners.inra.co.th/guides/database-reports.md) or [Offline reports](https://docs.partners.inra.co.th/guides/offline-reports.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.