# CheckSeller

> Verify whether a company sells a given product or service.

- **Endpoint:** `POST https://api.nyne.ai/company/checkseller`
- **Group:** Company APIs (https://api.nyne.ai/documentation/company.md)
- **Auth:** `X-API-Key` + `X-API-Secret` headers
- **Mode:** Asynchronous - submit returns a `request_id` (normally with `202 Accepted`); poll `GET /company/checkseller?request_id=<request_id>` with the same auth headers until the endpoint reports a terminal response. Where supported, a `callback_url` can notify you when queued work finishes; follow this endpoint's retrieval notes.
- **HTML version:** https://api.nyne.ai/documentation/company/checkseller

Ask whether a company sells or provides a specific product or service. Both `company_name` and `product_service` are required. The request is queued asynchronously and returns a `request_id`; poll the status endpoint or supply a `callback_url`. The completed result carries a verdict (`sells`), a confidence level, and supporting evidence. A credit is charged only when a verdict is produced.

## Authentication

All `/person/*` and `/company/*` endpoints authenticate with an API key and secret sent as HTTP headers on every request: `X-API-Key` and `X-API-Secret`. Create keys from your Nyne.ai dashboard and keep the secret server-side. Rate limits: 100 requests/minute, 1,000 requests/hour. Full guide: https://api.nyne.ai/documentation/authentication.md

## Parameters

| Name | Type | Required | Description | Example |
| --- | --- | --- | --- | --- |
| `company_name` | string | **yes** | Legal or commonly used company name. Max 255 chars. | "Acme Cloud" |
| `product_service` | string | **yes** | Product or service to test for, e.g. “SOC 2 automation platform”. Max 255 chars. | "SOC 2 compliance automation" |
| `callback_url` | string | no | http(s) URL on an allowed host that receives the completed payload automatically. | "https://example.com/webhooks/checkseller" |

## Polling for the result

A newly queued submit normally returns `202 Accepted` with a `request_id`. Poll the same path until `status` is `completed` (results stay available afterwards). Where supported, pass a `callback_url` on the submit to receive a webhook when queued work finishes; keep the documented GET as a recovery and retrieval path:

```bash
curl "https://api.nyne.ai/company/checkseller?request_id=<request_id>" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "X-API-Secret: YOUR_API_SECRET"
```

## Credit usage

| Item | Credits | Condition |
| --- | --- | --- |
| CheckSeller | - | Charged once when a verdict (yes/no/unknown) is produced |
| No data | 0 | No verdict / failure never burns credits |

## Responses

| Code | Meaning |
| --- | --- |
| `202` | Seller check queued - poll the status endpoint with the returned request_id |
| `400` | missing_parameters / invalid_parameters / invalid_callback_url |
| `401` | Missing or invalid API credentials |
| `403` | subscription_required or ip_not_allowed |
| `404` | no checkseller data found (no credit charged) |
| `429` | rate_limit_exceeded / monthly_limit_exceeded |
| `503` | service_unavailable - the API is temporarily unavailable |

## Example request

### cURL

```bash
curl -X POST https://api.nyne.ai/company/checkseller \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "X-API-Secret: YOUR_API_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "company_name": "Acme Cloud",
    "product_service": "SOC 2 compliance automation",
    "callback_url": "https://example.com/webhooks/checkseller"
  }'
```

### Python

```python
import requests

resp = requests.post(
    "https://api.nyne.ai/company/checkseller",
    headers={
        "X-API-Key": "YOUR_API_KEY",
        "X-API-Secret": "YOUR_API_SECRET",
    },
    json={
        "company_name": "Acme Cloud",
        "product_service": "SOC 2 compliance automation",
        "callback_url": "https://example.com/webhooks/checkseller",
    },
)
data = resp.json()
print(data)
```

### Node

```javascript
const resp = await fetch("https://api.nyne.ai/company/checkseller", {
  method: "POST",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "X-API-Secret": "YOUR_API_SECRET",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    company_name: "Acme Cloud",
    product_service: "SOC 2 compliance automation",
    callback_url: "https://example.com/webhooks/checkseller",
  }),
});
const data = await resp.json();
console.log(data);
```

### PHP

```php
<?php
$ch = curl_init("https://api.nyne.ai/company/checkseller");
curl_setopt_array($ch, [
  CURLOPT_POST => true,
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => [
    "X-API-Key: YOUR_API_KEY",
    "X-API-Secret: YOUR_API_SECRET",
    "Content-Type: application/json",
  ],
  CURLOPT_POSTFIELDS => json_encode([
    "company_name" => "Acme Cloud",
    "product_service" => "SOC 2 compliance automation",
    "callback_url" => "https://example.com/webhooks/checkseller",
  ]),
]);
$data = json_decode(curl_exec($ch), true);
print_r($data);
```

## Example response

```json
{
  "request_id": "64f2d8e4cs1f065a9b4e7fbc3df6aabb_1700000123_3310",
  "status": "completed",
  "completed": true,
  "result": {
    "company": "Acme Cloud",
    "product_service": "SOC 2 compliance automation",
    "sells": true,
    "confidence": "medium",
    "evidence": "Acme Cloud lists SOC 2 automation on its compliance solutions page."
  },
  "completed_on": "2026-01-15T10:35:00Z"
}
```

---

All documentation pages are available as Markdown by appending `.md` to their URL. Index: https://api.nyne.ai/llms.txt
