---
title: "Customers"
description: "A customer represents an end-user of your platform within the Stablegate system. Every operation — orders, external accounts, fee checks, limit checks — is scoped to a customer. Before you can process any transactions, you need to register your customers with Stablegate."
canonical_url: "https://docs.stablegate.com/docs/guide/customers"
---
# Customers

> A customer represents an end-user of your platform within the Stablegate system. Every operation — orders, external accounts, fee checks, limit checks — is scoped to a customer. Before you can process any transactions, you need to register your customers with Stablegate.

A customer represents an end-user of your platform within the Stablegate system. Every operation — orders, external accounts, fee checks, limit checks — is scoped to a customer. Before you can process any transactions, you need to register your customers with Stablegate.

## Developer Integration Path

As a partner integrating with Stablegate, customer management is the first step in your processing workflow:

1. **Create customer** — register your end-user in Stablegate.
2. **Customer gets verified** — Stablegate handles KYC/compliance.
3. **Register accounts** — add bank accounts and/or crypto wallets.
4. **Process transactions** — create orders (on-ramp / off-ramp).

After creating a customer, Stablegate assigns them a UUID. Verification does not start on its own: start Instant verification with the customer's name and date of birth, or request a verification link for Standard verification and hand it to the customer (see [Customer Verification](#customer-verification)). Once the customer reaches `active` status and `permissions.can_trade` is `true`, they can perform exchange operations.

## Customer Types

<table>
<thead>
  <tr>
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        individual
      </code>
    </td>
    
    <td>
      A natural person — end-user of your platform
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        corporate
      </code>
    </td>
    
    <td>
      A legal entity — company or business
    </td>
  </tr>
</tbody>
</table>

::note
When creating a corporate customer, the `company_name` field is required.
::

## Customer Statuses

<table>
<thead>
  <tr>
    <th>
      Status
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        new
      </code>
    </td>
    
    <td>
      Customer has been registered, pending verification
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        active
      </code>
    </td>
    
    <td>
      Customer is fully verified and can perform transactions
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        limited
      </code>
    </td>
    
    <td>
      Customer has restricted access (e.g., pending additional verification)
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        blocked
      </code>
    </td>
    
    <td>
      Customer is blocked from all operations
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        closed
      </code>
    </td>
    
    <td>
      Customer account has been closed — by Stablegate, or by you with <a href="#close-a-customer">
        Close a Customer
      </a>
      
      . Final
    </td>
  </tr>
</tbody>
</table>

---

## Create a Customer

Register a new end-user in the Stablegate system.

**Endpoint:**

```text
POST /v1/customers/
```

**Request Body:**

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Required
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        type
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Yes
    </td>
    
    <td>
      Customer type: <code>
        individual
      </code>
      
       or <code>
        corporate
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Yes
    </td>
    
    <td>
      Customer's email address (must be a valid email)
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        country_code
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      No
    </td>
    
    <td>
      ISO 3166-1 alpha-3 country code (e.g., <code>
        DEU
      </code>
      
      , <code>
        FRA
      </code>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        first_name
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      No
    </td>
    
    <td>
      Customer's first name (for individuals)
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        last_name
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      No
    </td>
    
    <td>
      Customer's last name (for individuals)
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        company_name
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Conditional
    </td>
    
    <td>
      Company name — <strong>
        required
      </strong>
      
       when <code>
        type
      </code>
      
       is <code>
        corporate
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        phone
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      No
    </td>
    
    <td>
      Customer's phone number
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        external_reference
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      No
    </td>
    
    <td>
      Your internal identifier for this customer (1–255 characters). Use this to map Stablegate customers to your own system.
    </td>
  </tr>
</tbody>
</table>

### Example: Create an Individual Customer

**Request:**

::code-switcher{body="{"type":"individual","email":"max.mustermann@example.com","first_name":"Max","last_name":"Mustermann","country_code":"DEU","phone":"+491701234567","external_reference":"USR-2025-00421"}" method="POST" path="/v1/customers/"}
```bash
curl https://api.stablegate.com/v1/customers/ \
  --request POST \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "individual",
  "email": "max.mustermann@example.com",
  "first_name": "Max",
  "last_name": "Mustermann",
  "country_code": "DEU",
  "phone": "+491701234567",
  "external_reference": "USR-2025-00421"
}'
```
::

**Response:**

```json
{
  "uuid": "c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f",
  "customer_id": "CUS-000123",
  "external_reference": "USR-2025-00421",
  "username": "max.mustermann",
  "full_name": "Max Mustermann",
  "email": "max.mustermann@example.com",
  "phone": "+491701234567",
  "type": "individual",
  "state": "new",
  "country_code": "DEU",
  "email_verified": false,
  "created_at": "2025-01-15T10:00:00.000Z"
}
```

### Example: Create a Corporate Customer

**Request:**

::code-switcher{body="{"type":"corporate","email":"finance@acme-corp.com","company_name":"ACME Corporation GmbH","country_code":"DEU","phone":"+4930123456789","external_reference":"CORP-2025-00089"}" method="POST" path="/v1/customers/"}
```bash
curl https://api.stablegate.com/v1/customers/ \
  --request POST \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "corporate",
  "email": "finance@acme-corp.com",
  "company_name": "ACME Corporation GmbH",
  "country_code": "DEU",
  "phone": "+4930123456789",
  "external_reference": "CORP-2025-00089"
}'
```
::

**Response:**

```json
{
  "uuid": "d2e3f4a5-b6c7-8d9e-0f1a-2b3c4d5e6f7a",
  "customer_id": "CUS-000124",
  "external_reference": "CORP-2025-00089",
  "username": "acme-corp",
  "full_name": "ACME Corporation GmbH",
  "email": "finance@acme-corp.com",
  "phone": "+4930123456789",
  "type": "corporate",
  "state": "new",
  "country_code": "DEU",
  "email_verified": false,
  "created_at": "2025-01-15T10:05:00.000Z"
}
```

### Response Fields

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        uuid
      </code>
    </td>
    
    <td>
      string (UUID)
    </td>
    
    <td>
      Unique customer identifier — use this in all subsequent API calls
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        customer_id
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Human-readable customer ID assigned by the system
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        external_reference
      </code>
    </td>
    
    <td>
      string | null
    </td>
    
    <td>
      Your internal reference, if provided during creation
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        username
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Assigned by Stablegate — the customer's email, lowercased
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        full_name
      </code>
    </td>
    
    <td>
      string | null
    </td>
    
    <td>
      Full name (individual) or company name (corporate)
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      string | null
    </td>
    
    <td>
      Customer's email address
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        phone
      </code>
    </td>
    
    <td>
      string | null
    </td>
    
    <td>
      Customer's phone number
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        type
      </code>
    </td>
    
    <td>
      string | null
    </td>
    
    <td>
      Customer type: <code>
        individual
      </code>
      
       or <code>
        corporate
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        state
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Current customer status
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        country_code
      </code>
    </td>
    
    <td>
      string | null
    </td>
    
    <td>
      ISO 3166-1 alpha-3 country code
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email_verified
      </code>
    </td>
    
    <td>
      boolean
    </td>
    
    <td>
      Whether the customer's email has been verified
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        created_at
      </code>
    </td>
    
    <td>
      string (ISO 8601)
    </td>
    
    <td>
      Customer creation timestamp
    </td>
  </tr>
</tbody>
</table>

::warning
Store the returned `uuid` — it is required as a path parameter for all customer-scoped endpoints (orders, external accounts, fees, limits).

**Note:** `email` must be unique among your customers, regardless of customer `type`. If one of your customers already uses the email, creation fails with `400`:

```json
{
  "trace_id": "3fdf0457-00b3-4b87-9ed6-ff97ae1f4375",
  "error_code": "devapi_email_occupied_error",
  "message": "Email or username is already occupied"
}
```

Match on `error_code` to tell a taken email from other request errors. The email is unique across the platform: an address that belongs to a retail Stablegate account or to another partner's customer is refused the same way. If the same real-world person needs both an individual and a corporate record, register the second one under a distinct email alias.
::

---

## Check Email Availability

Ask whether an email is still free before registering a customer: `POST /v1/customers/` refuses an address that any customer already uses, including one you cannot see.

**Endpoint:**

```text
GET /v1/customers/exists/?email=jane.doe@example.com
```

**Response:**

```json
{
  "email": "jane.doe@example.com",
  "available": true
}
```

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      The address that was checked, lowercased
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        available
      </code>
    </td>
    
    <td>
      boolean
    </td>
    
    <td>
      <code>
        false
      </code>
      
       when any customer already uses this address, yours or not
    </td>
  </tr>
</tbody>
</table>

The answer is the same one the create call gives: a free address passes, and an address with `available: false` makes `POST /v1/customers/` fail with `400` `devapi_email_occupied_error`. Check once before the create, not on every retry.

---

## Get Customer Details

Retrieve the full profile of a customer, including their permissions.

**Endpoint:**

```text
GET /v1/customers/{customer_uuid}/
```

**Path Parameters:**

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        customer_uuid
      </code>
    </td>
    
    <td>
      string (UUID)
    </td>
    
    <td>
      The customer's UUID
    </td>
  </tr>
</tbody>
</table>

**Request:**

::code-switcher{method="GET" path="/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/"}
```bash
curl https://api.stablegate.com/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/ \
  --header 'X-Api-Key: YOUR_API_KEY'
```
::

**Response:**

```json
{
  "uuid": "c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f",
  "customer_id": "CUS-000123",
  "external_reference": "USR-2025-00421",
  "username": "max.mustermann",
  "full_name": "Max Mustermann",
  "email": "max.mustermann@example.com",
  "phone": "+491701234567",
  "type": "individual",
  "state": "active",
  "country_code": "DEU",
  "email_verified": true,
  "created_at": "2025-01-15T10:00:00.000Z",
  "kyc_level": {
    "uuid": "kl1a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
    "legal_entity_uuid": "le1a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
    "key": "standard",
    "client_type": "all",
    "name": "Standard",
    "title": "Standard KYC Level",
    "icon": null,
    "approval_date": "2025-01-16T09:00:00.000Z",
    "approved_by": null
  },
  "is_funded": true,
  "permissions": {
    "can_trade": true,
    "can_download_aol": true
  }
}
```

### Additional Fields (compared to creation response)

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        kyc_level
      </code>
    </td>
    
    <td>
      object | null
    </td>
    
    <td>
      Approved KYC level. <code>
        kyc_level.key
      </code>
      
       is <code>
        light
      </code>
      
       (Instant), <code>
        standard
      </code>
      
      , or <code>
        advanced
      </code>
      
      ; <code>
        null
      </code>
      
       until the first verification is approved
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        is_funded
      </code>
    </td>
    
    <td>
      boolean
    </td>
    
    <td>
      Whether the customer has made at least one deposit
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        permissions.can_trade
      </code>
    </td>
    
    <td>
      boolean
    </td>
    
    <td>
      Whether the customer is allowed to create exchange orders
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        permissions.can_download_aol
      </code>
    </td>
    
    <td>
      boolean
    </td>
    
    <td>
      Whether the account opening letter is available for download. <code>
        true
      </code>
      
       when the customer's KYC level qualifies for AOL generation.
    </td>
  </tr>
</tbody>
</table>

::tip
Check `permissions.can_trade` before creating orders. This flag reflects whether the customer has completed all necessary verification and onboarding steps. An `active` customer with Standard verification still has `can_trade: false` until the account is activated with a test deposit or a video interview — see [Account Activation](https://docs.stablegate.com/docs/verification/compliance/individual/activation). Through the API the test deposit is collected by a [verification order](https://docs.stablegate.com/docs/guide/orders#activate-an-account-with-a-verification-order). Customers with Instant verification (`kyc_level.key: "light"`) can trade without activation.
::

---

## List Customers

Retrieve a paginated list of your customers with optional filtering and sorting.

**Endpoint:**

```text
GET /v1/customers/
```

### Query Parameters

#### Pagination

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        limit
      </code>
    </td>
    
    <td>
      integer
    </td>
    
    <td>
      100
    </td>
    
    <td>
      Maximum number of customers to return
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        offset
      </code>
    </td>
    
    <td>
      integer
    </td>
    
    <td>
      0
    </td>
    
    <td>
      Number of customers to skip
    </td>
  </tr>
</tbody>
</table>

The response carries the number of customers that match the same filters, ignoring pagination, in the `X-Total-Count` header. Use it instead of paging until a short page: `limit=100&offset=400` with `X-Total-Count: 437` says you are on the last page.

#### Filtering

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        client_id
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Exact match on customer ID
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Exact match on email
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        phone
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Exact match on phone number
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        username
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Exact match on username
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        full_name
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Exact match on full name
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        external_reference
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Exact match on external reference
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        type
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Filter by customer type: <code>
        individual
      </code>
      
      , <code>
        corporate
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        country_code
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Filter by country code
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email_verified
      </code>
    </td>
    
    <td>
      boolean
    </td>
    
    <td>
      Filter by email verification status
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        status
      </code>
    </td>
    
    <td>
      array
    </td>
    
    <td>
      Filter by one or more statuses: <code>
        new
      </code>
      
      , <code>
        active
      </code>
      
      , <code>
        blocked
      </code>
      
      , <code>
        limited
      </code>
      
      , <code>
        closed
      </code>
      
      . Note: the query parameter is named <code>
        status
      </code>
      
      , while the corresponding response field is <code>
        state
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        pattern
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Free-text search across multiple fields
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        is_funded
      </code>
    </td>
    
    <td>
      boolean
    </td>
    
    <td>
      Filter by funded status
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        kyc_level_key
      </code>
    </td>
    
    <td>
      array
    </td>
    
    <td>
      Filter by KYC level keys
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        risk_level_key
      </code>
    </td>
    
    <td>
      array
    </td>
    
    <td>
      Filter by risk level keys
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        partner_uuid
      </code>
    </td>
    
    <td>
      string (UUID)
    </td>
    
    <td>
      Filter by partner UUID
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        partner_email
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Filter by partner email
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        accuity_sanctions
      </code>
    </td>
    
    <td>
      boolean
    </td>
    
    <td>
      Filter by sanctions screening result
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        video_verification_passed
      </code>
    </td>
    
    <td>
      boolean
    </td>
    
    <td>
      Filter by video verification status
    </td>
  </tr>
</tbody>
</table>

#### Partial Match Filters

Use `__like` suffix for substring (partial) matching:

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        email__like
      </code>
    </td>
    
    <td>
      Partial match on email
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        phone__like
      </code>
    </td>
    
    <td>
      Partial match on phone
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        username__like
      </code>
    </td>
    
    <td>
      Partial match on username
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        full_name__like
      </code>
    </td>
    
    <td>
      Partial match on full name
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        client_id__like
      </code>
    </td>
    
    <td>
      Partial match on customer ID
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        external_reference__like
      </code>
    </td>
    
    <td>
      Partial match on external reference
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        partner_full_name__like
      </code>
    </td>
    
    <td>
      Partial match on partner name
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        partner_email__like
      </code>
    </td>
    
    <td>
      Partial match on partner email
    </td>
  </tr>
</tbody>
</table>

#### Date Range Filters

Use `__gte` (greater than or equal) and `__lte` (less than or equal) suffixes with dates in `YYYY-MM-DD` format:

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        created_at__gte
      </code>
    </td>
    
    <td>
      Customers created on or after this date
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        created_at__lte
      </code>
    </td>
    
    <td>
      Customers created on or before this date
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        is_funded_updated_at__gte
      </code>
    </td>
    
    <td>
      Funded status updated on or after this date
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        is_funded_updated_at__lte
      </code>
    </td>
    
    <td>
      Funded status updated on or before this date
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        accuity_sanctions_updated_at__gte
      </code>
    </td>
    
    <td>
      Sanctions check updated on or after this date
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        accuity_sanctions_updated_at__lte
      </code>
    </td>
    
    <td>
      Sanctions check updated on or before this date
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        video_verification_passed_updated_at__gte
      </code>
    </td>
    
    <td>
      Video verification updated on or after this date
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        video_verification_passed_updated_at__lte
      </code>
    </td>
    
    <td>
      Video verification updated on or before this date
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        first_deposit_date__gte
      </code>
    </td>
    
    <td>
      First deposit on or after this date
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        first_deposit_date__lte
      </code>
    </td>
    
    <td>
      First deposit on or before this date
    </td>
  </tr>
</tbody>
</table>

::note
Date range filters also support `__gt` (strictly greater than) and `__lt` (strictly less than) suffixes.
::

#### Sorting

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        sort
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        desc
      </code>
    </td>
    
    <td>
      Sort direction: <code>
        asc
      </code>
      
       or <code>
        desc
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        order_by
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        id
      </code>
    </td>
    
    <td>
      Sort field (see available values below)
    </td>
  </tr>
</tbody>
</table>

**Available order_by values:** `id`, `uuid`, `client_id`, `email`, `phone`, `username`, `created_at`, `full_name`, `type`, `email_verified`, `country_code`, `status`, `kyc_level_key`, `kyc_level_order`, `risk_level_key`, `risk_level_order`, `partner_full_name`, `partner_email`, `user_first_name`, `user_last_name`, `user_email`, `is_funded`, `is_funded_updated_at`, `accuity_sanctions`, `accuity_sanctions_updated_at`, `video_verification_passed`, `video_verification_passed_updated_at`, `first_deposit_date`

### Example: List Active Individual Customers

**Request:**

::code-switcher{method="GET" path="/v1/customers/" query="type=individual&status=active&limit=10&sort=desc&order_by=created_at"}
```bash
curl 'https://api.stablegate.com/v1/customers/?type=individual&status=active&limit=10&sort=desc&order_by=created_at' \
  --header 'X-Api-Key: YOUR_API_KEY'
```
::

**Response:**

```json
[
  {
    "uuid": "c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f",
    "customer_id": "CUS-000123",
    "external_reference": "USR-2025-00421",
    "username": "max.mustermann",
    "email": "max.mustermann@example.com",
    "full_name": "Max Mustermann",
    "type": "individual",
    "state": "active",
    "kyc_level": {
      "uuid": "kl1a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
      "legal_entity_uuid": "le1a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
      "key": "standard",
      "client_type": "all",
      "name": "Standard",
      "title": "Standard KYC Level",
      "icon": null,
      "approval_date": "2025-01-16T09:00:00.000Z",
      "approved_by": null
    },
    "phone": "+491701234567",
    "email_verified": true,
    "country_name": "Germany",
    "country_code": "DEU",
    "created_at": "2025-01-15T10:00:00.000Z"
  }
]
```

### Example: Search Customers by Email Pattern

**Request:**

::code-switcher{method="GET" path="/v1/customers/" query="email__like=example.com&limit=50"}
```bash
curl 'https://api.stablegate.com/v1/customers/?email__like=example.com&limit=50' \
  --header 'X-Api-Key: YOUR_API_KEY'
```
::

### List Response Fields

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        uuid
      </code>
    </td>
    
    <td>
      string (UUID)
    </td>
    
    <td>
      Customer UUID
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        customer_id
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Human-readable customer ID
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        external_reference
      </code>
    </td>
    
    <td>
      string | null
    </td>
    
    <td>
      Your internal reference
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        username
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Customer username
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      string | null
    </td>
    
    <td>
      Customer email
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        full_name
      </code>
    </td>
    
    <td>
      string | null
    </td>
    
    <td>
      Full name or company name
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        type
      </code>
    </td>
    
    <td>
      string | null
    </td>
    
    <td>
      Customer type
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        state
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Current status
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        kyc_level
      </code>
    </td>
    
    <td>
      object | null
    </td>
    
    <td>
      Current KYC level details. <code>
        kyc_level.key
      </code>
      
       is <code>
        light
      </code>
      
       (Instant), <code>
        standard
      </code>
      
      , or <code>
        advanced
      </code>
      
      ; <code>
        null
      </code>
      
       until the first verification is approved
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        phone
      </code>
    </td>
    
    <td>
      string | null
    </td>
    
    <td>
      Phone number
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email_verified
      </code>
    </td>
    
    <td>
      boolean
    </td>
    
    <td>
      Email verification status
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        country_name
      </code>
    </td>
    
    <td>
      string | null
    </td>
    
    <td>
      Country display name
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        country_code
      </code>
    </td>
    
    <td>
      string | null
    </td>
    
    <td>
      ISO country code
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        created_at
      </code>
    </td>
    
    <td>
      string (ISO 8601)
    </td>
    
    <td>
      Creation timestamp
    </td>
  </tr>
</tbody>
</table>

---

## Update a Customer

Change the phone number, the country or your own identifier of a customer after creation. Every other field stays as it was: a name, an email or a date of birth goes through a [data change request](#customer-verification), not through this endpoint.

**Endpoint:**

```text
PATCH /v1/customers/{customer_uuid}/
```

### Request Body

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Required
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        phone
      </code>
    </td>
    
    <td>
      string | null
    </td>
    
    <td>
      No
    </td>
    
    <td>
      Phone number in international format, up to 50 characters. <code>
        null
      </code>
      
       clears it
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        country_code
      </code>
    </td>
    
    <td>
      string | null
    </td>
    
    <td>
      No
    </td>
    
    <td>
      ISO 3166-1 alpha-3 country code (<code>
        DEU
      </code>
      
      ). A two-letter code is stored as its three-letter form
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        external_reference
      </code>
    </td>
    
    <td>
      string | null
    </td>
    
    <td>
      No
    </td>
    
    <td>
      Your own identifier of this customer, up to 255 characters
    </td>
  </tr>
</tbody>
</table>

Send at least one field. The response is `204 No Content`; read the customer back to show the new values.

::code-switcher{body="{"phone":"+4915112345678","country_code":"DEU"}" method="PATCH" path="/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/"}
```bash
curl https://api.stablegate.com/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/ \
  --request PATCH \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "phone": "+4915112345678",
  "country_code": "DEU"
}'
```
::

A code outside ISO 3166-1 answers `400` with `devapi_bad_request_error`. A customer that does not exist or belongs to another partner answers `404`, the same as everywhere else.

## Close a Customer

Close a customer you created by mistake or for an integration test.

**Endpoint:**

```text
DELETE /v1/customers/{customer_uuid}/
```

**Path Parameters:**

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        customer_uuid
      </code>
    </td>
    
    <td>
      string (UUID)
    </td>
    
    <td>
      The customer's UUID
    </td>
  </tr>
</tbody>
</table>

**Request:**

::code-switcher{method="DELETE" path="/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/"}
```bash
curl https://api.stablegate.com/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/ \
  --request DELETE \
  --header 'X-Api-Key: YOUR_API_KEY'
```
::

**Response:** `204 No Content`. Closing a customer that is already closed also answers `204`.

A customer can be closed only while it is in the `new` state, has no KYC level, and has no submitted verification — a verification link that was created but never completed does not count. Customers past that point are closed by Stablegate support.

<table>
<thead>
  <tr>
    <th>
      Status
    </th>
    
    <th>
      <code>
        error_code
      </code>
    </th>
    
    <th>
      Meaning
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        404
      </code>
    </td>
    
    <td>
      <code>
        devapi_not_found_error
      </code>
    </td>
    
    <td>
      The customer does not exist or is not yours
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        409
      </code>
    </td>
    
    <td>
      <code>
        devapi_customer_close_error
      </code>
    </td>
    
    <td>
      The customer is not in a state that allows closing
    </td>
  </tr>
</tbody>
</table>

::caution
**Closing is irreversible.** The record is not deleted: it stays in `GET /v1/customers/{customer_uuid}/` and in the list with `state: "closed"`, and its email stays taken — creating a new customer with the same email fails with `devapi_email_occupied_error`.
::

---

## Download Account Opening Letter

Download the account opening letter (AOL) for a customer as a PDF document. This letter is generated after the customer passes verification.

**Endpoint:**

```text
GET /v1/customers/{customer_uuid}/account-opening-letter/
```

**Path Parameters:**

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        customer_uuid
      </code>
    </td>
    
    <td>
      string (UUID)
    </td>
    
    <td>
      The customer's UUID
    </td>
  </tr>
</tbody>
</table>

**Request:**

```bash
curl -X GET https://api.stablegate.com/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/account-opening-letter/ \
  -H "X-Api-Key: YOUR_API_KEY" \
  --output account_opening_letter.pdf
```

**Response:**

The response is a binary PDF file with the following headers:

<table>
<thead>
  <tr>
    <th>
      Header
    </th>
    
    <th>
      Value
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        Content-Type
      </code>
    </td>
    
    <td>
      <code>
        application/pdf;charset=UTF-8
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        Content-Disposition
      </code>
    </td>
    
    <td>
      <code>
        attachment; filename*=UTF-8''account_opening_letter.pdf
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        Content-Transfer-Encoding
      </code>
    </td>
    
    <td>
      <code>
        binary
      </code>
    </td>
  </tr>
</tbody>
</table>

::note
The AOL is only available when `permissions.can_download_aol` is `true` in the customer detail response. Check this flag before requesting the download.
::

---

## Customer Verification

Individual customers created through the Partner API can be verified at two levels — see [Individual Verification](https://docs.stablegate.com/docs/verification/compliance/individual) for what each level allows:

<table>
<thead>
  <tr>
    <th>
      Level
    </th>
    
    <th>
      <code>
        kyc_level.key
      </code>
    </th>
    
    <th>
      How to start it
    </th>
    
    <th>
      What the customer does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Instant
      </strong>
    </td>
    
    <td>
      <code>
        light
      </code>
    </td>
    
    <td>
      <a href="#start-instant-verification">
        Start Instant Verification
      </a>
      
       with the customer's name and date of birth
    </td>
    
    <td>
      Nothing — Stablegate runs an automated AML screening and approves the application when the screening is clear
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Standard
      </strong>
    </td>
    
    <td>
      <code>
        standard
      </code>
    </td>
    
    <td>
      <a href="#create-a-verification-link">
        Create a Verification Link
      </a>
      
       and redirect the customer to it
    </td>
    
    <td>
      Uploads an ID document, passes a liveness check, provides proof of address, then activates the account with a test deposit or a video interview
    </td>
  </tr>
</tbody>
</table>

Corporate customers are verified at the Standard level only.

### Start Instant Verification

Submit the customer's identity details. Stablegate creates an Instant (`light`) KYC application, runs the AML screening (sanctions and politically exposed persons), and approves the application automatically when the screening is clear — usually within minutes. If the screening returns a match, the application goes to manual compliance review.

**Endpoint:**

```text
POST /v1/customers/{customer_uuid}/verification/instant/
```

**Request Body:**

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Required
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        first_name
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Yes
    </td>
    
    <td>
      Customer's legal first name
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        last_name
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Yes
    </td>
    
    <td>
      Customer's legal last name
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        date_of_birth
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Yes
    </td>
    
    <td>
      Date of birth in <code>
        YYYY-MM-DD
      </code>
      
       format
    </td>
  </tr>
</tbody>
</table>

**Request:**

::code-switcher{body="{"first_name":"Max","last_name":"Mustermann","date_of_birth":"1990-05-17"}" method="POST" path="/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/verification/instant/"}
```bash
curl https://api.stablegate.com/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/verification/instant/ \
  --request POST \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "first_name": "Max",
  "last_name": "Mustermann",
  "date_of_birth": "1990-05-17"
}'
```
::

**Response:**

```json
{
  "uuid": "ka1a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
  "status": "waiting",
  "kyc_level_key": "light"
}
```

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        uuid
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      KYC application UUID
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        status
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Application status right after submission — <code>
        waiting
      </code>
      
       (under automated screening or compliance review)
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        kyc_level_key
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Always <code>
        light
      </code>
    </td>
  </tr>
</tbody>
</table>

The response only confirms that the application has been submitted. To learn the outcome, poll [Check the Verification State](#check-the-verification-state): `kyc_level` becomes `{"key": "light", ...}` once the application is approved, and `permissions.can_trade` turns `true` at the same time — Instant verification needs no account activation. If compliance rejects the application, `kyc_level` stays `null`.

**Errors:**

<table>
<thead>
  <tr>
    <th>
      Status
    </th>
    
    <th>
      <code>
        error_code
      </code>
    </th>
    
    <th>
      <code>
        message
      </code>
    </th>
    
    <th>
      Meaning
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        400
      </code>
    </td>
    
    <td>
      <code>
        devapi_instant_verification_error
      </code>
    </td>
    
    <td>
      <code>
        Instant verification is not configured
      </code>
    </td>
    
    <td>
      Instant verification is not enabled for your partner account. Use Standard verification (link) or contact Stablegate to enable it.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        400
      </code>
    </td>
    
    <td>
      <code>
        devapi_instant_verification_error
      </code>
    </td>
    
    <td>
      <code>
        Instant verification is available for individual customers only
      </code>
    </td>
    
    <td>
      The customer is a company. Use Standard verification.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        409
      </code>
    </td>
    
    <td>
      <code>
        devapi_instant_verification_error
      </code>
    </td>
    
    <td>
      <code>
        Not available in current state
      </code>
    </td>
    
    <td>
      The customer already has a verification application in progress or approved. Check <code>
        kyc_level
      </code>
      
       and the application status instead of resubmitting.
    </td>
  </tr>
</tbody>
</table>

All three errors share the same `error_code`, so tell them apart by the HTTP status and the `message`.

Calling the endpoint again for a customer whose Instant application was created but never submitted (for example, a previous call failed midway) completes that submission with the newly provided details.

### Create a Verification Link

Request a hosted Standard verification flow for the customer and redirect them to the returned `url`.

**Endpoint:**

```text
POST /v1/customers/{customer_uuid}/verification/link/
```

**Request:**

::code-switcher{method="POST" path="/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/verification/link/"}
```bash
curl https://api.stablegate.com/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/verification/link/ \
  --request POST \
  --header 'X-Api-Key: YOUR_API_KEY'
```
::

**Response:**

```json
{
  "uuid": "ka1a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
  "url": "https://in.sumsub.com/websdk/p/sbx_uni_abc123def456",
  "token": "_act-sbx-jwt-eyJhbGciOi..."
}
```

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        uuid
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      KYC application UUID
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        url
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Hosted verification page (Sumsub WebSDK) to redirect the customer to. The link is valid for <strong>
        30 minutes
      </strong>
      
      ; request a new one if it expires
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        token
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Sumsub SDK access token for the same session — only needed if you embed the <a href="https://docs.sumsub.com/docs/get-started-with-web-sdk" rel="nofollow">
        Sumsub WebSDK
      </a>
      
       in your own app instead of redirecting to <code>
        url
      </code>
    </td>
  </tr>
</tbody>
</table>

Calling the endpoint again for a customer whose Standard application is still open — `new`, `waiting` or `pending` — returns the same application with a fresh link, so the customer can resume uploading after the previous link expires. The endpoint responds with `409` when the open application was submitted at another level, for example an Instant one, and with `409` when the customer already holds an approved KYC level.

After the customer completes the flow, poll [Check the Verification State](#check-the-verification-state): `kyc_level` is set once compliance approves the application, and `permissions.can_trade` becomes `true` once the account is activated.

Compliance reviews a submitted Standard application within one business day. The outcome, and anything compliance asks the customer for, appears in **Check the Verification State**.

### Check the Verification State

Returns the latest KYC application of the customer: its status, the level it was submitted for, and `message` — what compliance asked the customer for. Read the outcome here instead of inferring it from `kyc_level`.

**Endpoint:**

```text
GET /v1/customers/{customer_uuid}/verification/
```

**Request:**

::code-switcher{method="GET" path="/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/verification/"}
```bash
curl https://api.stablegate.com/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/verification/ \
  --header 'X-Api-Key: YOUR_API_KEY'
```
::

**Response — compliance asked the customer for another document:**

```json
{
  "kyc_level_key": null,
  "application": {
    "uuid": "ka1a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
    "status": "pending",
    "kyc_level_key": "standard",
    "message": "The utility bill is older than six months. Please upload a recent one.",
    "created_at": "2026-11-02T09:15:00.000Z",
    "updated_at": "2026-11-05T14:20:00.000Z",
    "last_status_change_at": "2026-11-05T14:20:00.000Z"
  }
}
```

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        kyc_level_key
      </code>
    </td>
    
    <td>
      string or null
    </td>
    
    <td>
      Level the customer holds today. <code>
        null
      </code>
      
       until an application is approved
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        application
      </code>
    </td>
    
    <td>
      object or null
    </td>
    
    <td>
      The latest application of the customer, <code>
        null
      </code>
      
       when the customer never started verification
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        application.status
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        new
      </code>
      
      , <code>
        waiting
      </code>
      
      , <code>
        pending
      </code>
      
      , <code>
        approved
      </code>
      
      , <code>
        rejected
      </code>
      
       or <code>
        cancelled
      </code>
      
       — see below
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        application.kyc_level_key
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Level the application was submitted for
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        application.message
      </code>
    </td>
    
    <td>
      string or null
    </td>
    
    <td>
      What compliance asked the customer for. <code>
        null
      </code>
      
       when there is nothing to pass on
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        application.created_at
      </code>
      
      , <code>
        updated_at
      </code>
      
      , <code>
        last_status_change_at
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      ISO 8601 timestamps
    </td>
  </tr>
</tbody>
</table>

**What the status means:**

<table>
<thead>
  <tr>
    <th>
      Status
    </th>
    
    <th>
      Where the application stands
    </th>
    
    <th>
      What to do
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        new
      </code>
    </td>
    
    <td>
      Created, not started
    </td>
    
    <td>
      Send the customer the <a href="#create-a-verification-link">
        verification link
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        waiting
      </code>
    </td>
    
    <td>
      The customer is filling the form, or the automated screening runs
    </td>
    
    <td>
      Wait
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        pending
      </code>
    </td>
    
    <td>
      Compliance is reviewing, or asked the customer for more documents
    </td>
    
    <td>
      Read <code>
        message
      </code>
      
      , pass it to the customer, and re-issue the link if they need to upload again
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        approved
      </code>
    </td>
    
    <td>
      The application passed
    </td>
    
    <td>
      <code>
        kyc_level_key
      </code>
      
       is set; the customer may still need activation, see <a href="https://docs.stablegate.com/docs/verification/compliance/individual/activation">
        Account Activation
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        rejected
      </code>
    </td>
    
    <td>
      The application did not pass
    </td>
    
    <td>
      <code>
        kyc_level_key
      </code>
      
       stays <code>
        null
      </code>
      
      ; read <code>
        message
      </code>
      
       and contact Stablegate support before starting a new application
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        cancelled
      </code>
    </td>
    
    <td>
      The application was cancelled
    </td>
    
    <td>
      Start a new application
    </td>
  </tr>
</tbody>
</table>

A customer who never started verification answers `{"kyc_level_key": null, "application": null}`.

---

## Best Practices

- **Create customers early.** Register customers as soon as they sign up on your platform and start verification right away: Instant verification is usually approved within minutes, Standard verification takes longer.
- **Store the customer uuid.** Map it to your internal user ID for all subsequent API calls.
- **Poll customer status.** After creation, the customer starts in `new` status. Poll the detail endpoint to know when they reach `active` status with `permissions.can_trade: true`. There is no customer-status webhook — [webhooks](https://docs.stablegate.com/docs/guide/webhooks) cover order status changes only.
- **Check permissions.can_trade** before initiating any exchange operations.
- **Use external_reference to link customers.** Pass your internal user ID as `external_reference` during creation — it makes reconciliation between your system and Stablegate straightforward. You can also filter customers by `external_reference` to look up Stablegate records by your own identifiers.
- **Use filtering for dashboards.** The list endpoint's extensive filter options make it suitable for building admin dashboards or partner management UIs.


## Sitemap

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