---
title: "Enterprises"
description: "Interface with the autoZnetwork enterprises."
canonical_url: "https://autoznetwork.com/docs/api/enterprises"
---

> Index of every page on this site: [llms.txt](https://autoznetwork.com/llms.txt)

# Enterprises (Private Access)

**A dealer must be a **Paid Enterprise Customer** in order to operate across multiple organizations. Please reference [Organizations](https://autoznetwork.com/docs/api/organizations) for the default usage of autoZnetwork. Enterprise functionality is intended for large dealer groups only at this point in time.

## Example Usage

To use the enterprise account across the API replace the `X-AutozNetwork-Organization-Id` header with the `X-AutozNetwork-Enterprise-Id` header.

GET Request: `https://api.autoznetwork.com/v1/inventory`

<code-group>

```bash [CURL]
AUTOZNETWORK_TOKEN="your API token"
AUTOZNETWORK_ENTERPRISE_ID="your enterprise id"

curl -X GET https://api.autoznetwork.com/v1/enterprises \
  -H "Authorization: Bearer $AUTOZNETWORK_TOKEN" \
  -H "X-AutozNetwork-Enterprise-Id: $AUTOZNETWORK_ENTERPRISE_ID" \
  -H 'Accept: application/json'
```

```php [PHP]
<?php 
$apiToken = 'ABCD12345 ...';
$enterpriseId = 'your enterprise id';

$autoZnetwork = new AutozNetwork($apiToken);

$vehicles = $autoznetwork
              ->withEnterprise($enterpriseId)
              ->inventory()
              ->get();

print($vehicles)
```

</code-group>

## List Enterprises

GET Request: `https://api.autoznetwork.com/v1/enterprises`

<code-group>

```bash [CURL]
AUTOZNETWORK_TOKEN="your API token"

curl -X GET https://api.autoznetwork.com/v1/enterprises \
  -H "Authorization: Bearer $AUTOZNETWORK_TOKEN" \
  -H 'Accept: application/json'
```

```php [PHP]
<?php 
$apiToken = 'ABCD12345 ...';

$autoZnetwork = new AutozNetwork($apiToken);

$enterprises = $autoznetwork
                  ->enterprises()
                  ->get();

print($enterprises)
```

</code-group>

## Add an Organization to an Enterprise

POST Request: `https://api.autoznetwork.com/v1/enterprises/organizations/{AUTOZNETWORK_ORG_ID}`

<code-group>

```bash [CURL]
AUTOZNETWORK_TOKEN="your API token"
AUTOZNETWORK_ENTERPRISE_ID="your enterprise id"
AUTOZNETWORK_ORG_ID="your organization id"

curl -X POST https://api.autoznetwork.com/v1/enterprises/organizations/$AUTOZNETWORK_ORG_ID \
  -H "Authorization: Bearer $AUTOZNETWORK_TOKEN" \
  -H "X-AutozNetwork-Enterprise-Id: $AUTOZNETWORK_ENTERPRISE_ID" \
  -H 'Accept: application/json'
```

```php [PHP]
<?php 
$apiToken = 'ABCD12345 ...';
$enterpriseId = 'your enterprise id';
$organizationId = 'your organization id';

$autoZnetwork = new AutozNetwork($apiToken);

$enterprise = $autoznetwork
                  ->withEnterprise($enterpriseId)
                  ->organization($organizationId)
                  ->add();

print($enterprise)
```

</code-group>

## Remove an Organization from an Enterprise

DELETE Request: `https://api.autoznetwork.com/v1/enterprises/organizations/{AUTOZNETWORK_ORG_ID}`

<code-group>

```bash [CURL]
AUTOZNETWORK_TOKEN="your API token"
AUTOZNETWORK_ENTERPRISE_ID="your enterprise id"
AUTOZNETWORK_ORG_ID="your organization id"

curl -X DELETE https://api.autoznetwork.com/v1/enterprises/organizations/$AUTOZNETWORK_ORG_ID \
  -H "Authorization: Bearer $AUTOZNETWORK_TOKEN" \
  -H "X-AutozNetwork-Enterprise-Id: $AUTOZNETWORK_ENTERPRISE_ID" \
  -H 'Accept: application/json'
```

```php [PHP]
<?php 
$apiToken = 'ABCD12345 ...';
$enterpriseId = 'your enterprise id';
$organizationId = 'your organization id';

$autoZnetwork = new AutozNetwork($apiToken);

$enterprise = $autoznetwork
                  ->withEnterprise($enterpriseId)
                  ->organization($organizationId)
                  ->remove();

print($enterprise)
```

</code-group>

## Sitemap

See the full [sitemap](https://autoznetwork.com/sitemap.md) for all pages.
