# Get Company (Paid)

Retrieve full company data with premium access.

Returns the full company record with all available data fields. Requires a Premium subscription plan.

## Endpoint

```text
GET /api/v1/companies/:company_id/paid
GET /api/v1/companies/:jurisdiction/:identifier/paid
```

## Parameters

| Parameter | Type | In | Description |
| --- | --- | --- | --- |
| `company_id` | `integer` | path | The unique identifier of the company (first form). |
| `jurisdiction` | `string` | path | Jurisdiction code, e.g. `kz` (second form). |
| `identifier` | `string` | path | National identifier (BIN/IIN/INN) of the company (second form). |

## Code Examples

**Get company (paid)**

**Python**

```python
import requests

url = 'https://statsnet.co/api/v1/companies/12345/paid'
headers = {
  'Authorization': 'Bearer sk_live_YOUR_KEY',
  'Content-Type': 'application/json'
}

response = requests.get(url, headers=headers).json()
print(response)
```

**TypeScript**

```typescript
const url = 'https://statsnet.co/api/v1/companies/12345/paid';

const response = await fetch(url, {
headers: {
  'Authorization': 'Bearer sk_live_YOUR_KEY',
  'Content-Type': 'application/json',
},
});

const data = await response.json();
console.log(data);
```

**Go**

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {
	url := "https://statsnet.co/api/v1/companies/12345/paid"

	req, _ := http.NewRequest("GET", url, nil)
	req.Header.Set("Authorization", "Bearer sk_live_YOUR_KEY")
	req.Header.Set("Content-Type", "application/json")

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()

	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
```

## Response

The response body has no `{"ok": ...}` envelope. For `/:company_id/paid` the top-level keys are `company`, `alternatives`, `is_full`, `risks`, `seo`, `relations`, `meta`. Consuming this endpoint charges one report from your plan quota.

**Success response**

```json
{
  "company": {
    "id": 58725961,
    "identifier": "302233483",
    "title": "ULKAN UZBEK QURILISH MCHJ",
    "name": "ULKAN UZBEK QURILISH MCHJ",
    "name_en": "ULKAN UZBEK QURILISH MCHJ",
    "legal_form": "llc",
    "jurisdiction": "uz",
    "status": "Active",
    "inactive": false,
    "addresses": [],
    "officers": [],
    "shareholders": [],
    "financials": [],
    "risks": [],
    "capital": { "share_capital": 264264, "paid_up_capital": 0, "currency": "USD" },
    "incorporation_date": "2018-04-12T00:00:00Z",
    "created_at": "2021-01-14T00:06:22.439Z",
    "updated_at": "2021-01-15T13:24:54.248Z"
  },
  "alternatives": [],
  "is_full": true,
  "risks": { "company": [], "shareholders": [], "officers": [], "all": [] },
  "seo": {
    "title": "ULKAN UZBEK QURILISH MCHJ — company profile",
    "description": "Company details, officers and financials",
    "keywords": "ULKAN UZBEK QURILISH MCHJ, 302233483"
  },
  "relations": [
    { "connection": "shareholders", "count": 6 },
    { "connection": "officers", "count": 6 }
  ],
  "meta": {
    "events": 0,
    "contacts": 3,
    "contracts": 2,
    "gov_contracts": 2,
    "court_cases": 0
  }
}
```

The `/:jurisdiction/:identifier/paid` form returns a reduced wrapper:

**Success response (by identifier)**

```json
{
  "company": {
    "id": 58725961,
    "identifier": "302233483",
    "name": "ULKAN UZBEK QURILISH MCHJ",
    "jurisdiction": "uz",
    "status": "Active"
  },
  "is_full": true
}
```

## Error Handling

Errors are returned as `{"status": <HTTP code>, "message": "<text>"}`.

**No active subscription (402)**

```json
{
  "status": 402,
  "message": "payment required"
}
```

**Plan quota exhausted (429)**

```json
{
  "status": 429,
  "message": "quota exhausted"
}
```

**Access denied (403)**

```json
{
  "status": 403,
  "message": "access denied"
}
```
