---
title: "Resolve an external customer identity"
description: "Checks whether a provider internal customer ID maps to an existing local customer."
---

> Documentation Index
> Fetch the complete documentation index at: https://staging.caretlegal.net/docs/llms.txt
> Use this file to discover all available pages before exploring further.

Path: External Customer Access API

`GET /integrations/external-clients/customers/resolve`

Checks whether a provider internal customer ID maps to an existing local customer.

## Authentication

- `PartnerApiKey`, http, header `Authorization`

## Query parameters

- `provider` (`resolveExternalCustomer.query.provider`; string, required)
- `externalCustomerId` (`resolveExternalCustomer.query.externalCustomerId`; string, required) — Provider-generated internal customer/account/entity primary key.

## Header parameters

- `x-organization-id` (`resolveExternalCustomer.header.x-organization-id`; string, required)

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.caretlegal.net/integrations/external-clients/customers/resolve?provider=netsuite&externalCustomerId=string' \
  --header 'Authorization: Bearer <token>' \
  --header 'x-organization-id: string'
```

### TypeScript

```typescript
const url = 'https://api.caretlegal.net/integrations/external-clients/customers/resolve?provider=netsuite&externalCustomerId=string';
const options = {
  method: 'GET',
  headers: {'x-organization-id': 'string', Authorization: 'Bearer <token>'}
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.caretlegal.net/integrations/external-clients/customers/resolve?provider=netsuite&externalCustomerId=string"

headers = {
    "x-organization-id": "string",
    "Authorization": "Bearer <token>"
}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Lookup completed

#### Example

```json
{
  "success": true,
  "data": {
    "exists": true,
    "provider": "netsuite",
    "externalCustomerId": "string",
    "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
    "customerName": "string",
    "customerEmail": "user@example.com",
    "clerkOrganizationId": "string",
    "masterId": "773333e0-2d32-466f-b4b2-e6afdbf6dd5e"
  }
}
```

- `success` (`resolveExternalCustomer.response.200.success`; boolean, required)
- `data` (`resolveExternalCustomer.response.200.data`; object, required)
  - `exists` (`resolveExternalCustomer.response.200.data.exists`; boolean, required)
  - `provider` (`resolveExternalCustomer.response.200.data.provider`; string, required)
  - `externalCustomerId` (`resolveExternalCustomer.response.200.data.externalCustomerId`; string, required)
  - `customerId` (`resolveExternalCustomer.response.200.data.customerId`; string, optional)
    - format `uuid`
  - `customerName` (`resolveExternalCustomer.response.200.data.customerName`; string, optional)
  - `customerEmail` (`resolveExternalCustomer.response.200.data.customerEmail`; string, optional)
    - format `email`
  - `clerkOrganizationId` (`resolveExternalCustomer.response.200.data.clerkOrganizationId`; string, optional)
  - `masterId` (`resolveExternalCustomer.response.200.data.masterId`; string, optional)
    - format `uuid`

### 400

Invalid request

#### Example

```json
{
  "success": false,
  "error": "string",
  "details": [
    {}
  ]
}
```

- `success` (`resolveExternalCustomer.response.400.success`; boolean, required)
- `error` (`resolveExternalCustomer.response.400.error`; string, required)
- `details` (`resolveExternalCustomer.response.400.details`; array<object>, optional)

### 401

Invalid API key

#### Example

```json
{
  "success": false,
  "error": "string",
  "details": [
    {}
  ]
}
```

- `success` (`resolveExternalCustomer.response.401.success`; boolean, required)
- `error` (`resolveExternalCustomer.response.401.error`; string, required)
- `details` (`resolveExternalCustomer.response.401.details`; array<object>, optional)

### 403

Missing scope

#### Example

```json
{
  "success": false,
  "error": "string",
  "details": [
    {}
  ]
}
```

- `success` (`resolveExternalCustomer.response.403.success`; boolean, required)
- `error` (`resolveExternalCustomer.response.403.error`; string, required)
- `details` (`resolveExternalCustomer.response.403.details`; array<object>, optional)


Source: https://staging.caretlegal.net/docs/reference/external-clients/resolveExternalCustomer/index.md
