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.
Developer Integration Path
As a partner integrating with Stablegate, customer management is the first step in your processing workflow:
- Create customer — register your end-user in Stablegate.
- Customer gets verified — Stablegate handles KYC/compliance.
- Register accounts — add bank accounts and/or crypto wallets.
- 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). Once the customer reaches active status and permissions.can_trade is true, they can perform exchange operations.
Customer Types
| Type | Description |
|---|---|
individual | A natural person — end-user of your platform |
corporate | A legal entity — company or business |
company_name field is required.Customer Statuses
| Status | Description |
|---|---|
new | Customer has been registered, pending verification |
active | Customer is fully verified and can perform transactions |
limited | Customer has restricted access (e.g., pending additional verification) |
blocked | Customer is blocked from all operations |
closed | Customer account has been closed — by Stablegate, or by you with Close a Customer. Final |
Create a Customer
Register a new end-user in the Stablegate system.
Endpoint:
POST /v1/customers/
Request Body:
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Customer type: individual or corporate |
email | string | Yes | Customer's email address (must be a valid email) |
country_code | string | No | ISO 3166-1 alpha-3 country code (e.g., DEU, FRA) |
first_name | string | No | Customer's first name (for individuals) |
last_name | string | No | Customer's last name (for individuals) |
company_name | string | Conditional | Company name — required when type is corporate |
phone | string | No | Customer's phone number |
external_reference | string | No | Your internal identifier for this customer (1–255 characters). Use this to map Stablegate customers to your own system. |
Example: Create an Individual Customer
Request:
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": "[email protected]",
"first_name": "Max",
"last_name": "Mustermann",
"country_code": "DEU",
"phone": "+491701234567",
"external_reference": "USR-2025-00421"
}'
Response:
{
"uuid": "c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f",
"customer_id": "CUS-000123",
"external_reference": "USR-2025-00421",
"username": "max.mustermann",
"full_name": "Max Mustermann",
"email": "[email protected]",
"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:
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": "[email protected]",
"company_name": "ACME Corporation GmbH",
"country_code": "DEU",
"phone": "+4930123456789",
"external_reference": "CORP-2025-00089"
}'
Response:
{
"uuid": "d2e3f4a5-b6c7-8d9e-0f1a-2b3c4d5e6f7a",
"customer_id": "CUS-000124",
"external_reference": "CORP-2025-00089",
"username": "acme-corp",
"full_name": "ACME Corporation GmbH",
"email": "[email protected]",
"phone": "+4930123456789",
"type": "corporate",
"state": "new",
"country_code": "DEU",
"email_verified": false,
"created_at": "2025-01-15T10:05:00.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
uuid | string (UUID) | Unique customer identifier — use this in all subsequent API calls |
customer_id | string | Human-readable customer ID assigned by the system |
external_reference | string | null | Your internal reference, if provided during creation |
username | string | Assigned by Stablegate — the customer's email, lowercased |
full_name | string | null | Full name (individual) or company name (corporate) |
email | string | null | Customer's email address |
phone | string | null | Customer's phone number |
type | string | null | Customer type: individual or corporate |
state | string | Current customer status |
country_code | string | null | ISO 3166-1 alpha-3 country code |
email_verified | boolean | Whether the customer's email has been verified |
created_at | string (ISO 8601) | Customer creation timestamp |
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:{
"trace_id": "3fdf0457-00b3-4b87-9ed6-ff97ae1f4375",
"error_code": "devapi_email_occupied_error",
"message": "Email or username is already occupied"
}
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:
GET /v1/customers/exists/[email protected]
Response:
{
"email": "[email protected]",
"available": true
}
| Field | Type | Description |
|---|---|---|
email | string | The address that was checked, lowercased |
available | boolean | false when any customer already uses this address, yours or not |
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:
GET /v1/customers/{customer_uuid}/
Path Parameters:
| Parameter | Type | Description |
|---|---|---|
customer_uuid | string (UUID) | The customer's UUID |
Request:
curl https://api.stablegate.com/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/ \
--header 'X-Api-Key: YOUR_API_KEY'
Response:
{
"uuid": "c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f",
"customer_id": "CUS-000123",
"external_reference": "USR-2025-00421",
"username": "max.mustermann",
"full_name": "Max Mustermann",
"email": "[email protected]",
"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)
| Field | Type | Description |
|---|---|---|
kyc_level | object | null | Approved KYC level. kyc_level.key is light (Instant), standard, or advanced; null until the first verification is approved |
is_funded | boolean | Whether the customer has made at least one deposit |
permissions.can_trade | boolean | Whether the customer is allowed to create exchange orders |
permissions.can_download_aol | boolean | Whether the account opening letter is available for download. true when the customer's KYC level qualifies for AOL generation. |
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. Through the API the test deposit is collected by 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:
GET /v1/customers/
Query Parameters
Pagination
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | integer | 100 | Maximum number of customers to return |
offset | integer | 0 | Number of customers to skip |
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
| Parameter | Type | Description |
|---|---|---|
client_id | string | Exact match on customer ID |
email | string | Exact match on email |
phone | string | Exact match on phone number |
username | string | Exact match on username |
full_name | string | Exact match on full name |
external_reference | string | Exact match on external reference |
type | string | Filter by customer type: individual, corporate |
country_code | string | Filter by country code |
email_verified | boolean | Filter by email verification status |
status | array | Filter by one or more statuses: new, active, blocked, limited, closed. Note: the query parameter is named status, while the corresponding response field is state. |
pattern | string | Free-text search across multiple fields |
is_funded | boolean | Filter by funded status |
kyc_level_key | array | Filter by KYC level keys |
risk_level_key | array | Filter by risk level keys |
partner_uuid | string (UUID) | Filter by partner UUID |
partner_email | string | Filter by partner email |
accuity_sanctions | boolean | Filter by sanctions screening result |
video_verification_passed | boolean | Filter by video verification status |
Partial Match Filters
Use __like suffix for substring (partial) matching:
| Parameter | Description |
|---|---|
email__like | Partial match on email |
phone__like | Partial match on phone |
username__like | Partial match on username |
full_name__like | Partial match on full name |
client_id__like | Partial match on customer ID |
external_reference__like | Partial match on external reference |
partner_full_name__like | Partial match on partner name |
partner_email__like | Partial match on partner email |
Date Range Filters
Use __gte (greater than or equal) and __lte (less than or equal) suffixes with dates in YYYY-MM-DD format:
| Parameter | Description |
|---|---|
created_at__gte | Customers created on or after this date |
created_at__lte | Customers created on or before this date |
is_funded_updated_at__gte | Funded status updated on or after this date |
is_funded_updated_at__lte | Funded status updated on or before this date |
accuity_sanctions_updated_at__gte | Sanctions check updated on or after this date |
accuity_sanctions_updated_at__lte | Sanctions check updated on or before this date |
video_verification_passed_updated_at__gte | Video verification updated on or after this date |
video_verification_passed_updated_at__lte | Video verification updated on or before this date |
first_deposit_date__gte | First deposit on or after this date |
first_deposit_date__lte | First deposit on or before this date |
__gt (strictly greater than) and __lt (strictly less than) suffixes.Sorting
| Parameter | Type | Default | Description |
|---|---|---|---|
sort | string | desc | Sort direction: asc or desc |
order_by | string | id | Sort field (see available values below) |
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:
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:
[
{
"uuid": "c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f",
"customer_id": "CUS-000123",
"external_reference": "USR-2025-00421",
"username": "max.mustermann",
"email": "[email protected]",
"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:
curl 'https://api.stablegate.com/v1/customers/?email__like=example.com&limit=50' \
--header 'X-Api-Key: YOUR_API_KEY'
List Response Fields
| Field | Type | Description |
|---|---|---|
uuid | string (UUID) | Customer UUID |
customer_id | string | Human-readable customer ID |
external_reference | string | null | Your internal reference |
username | string | Customer username |
email | string | null | Customer email |
full_name | string | null | Full name or company name |
type | string | null | Customer type |
state | string | Current status |
kyc_level | object | null | Current KYC level details. kyc_level.key is light (Instant), standard, or advanced; null until the first verification is approved |
phone | string | null | Phone number |
email_verified | boolean | Email verification status |
country_name | string | null | Country display name |
country_code | string | null | ISO country code |
created_at | string (ISO 8601) | Creation timestamp |
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, not through this endpoint.
Endpoint:
PATCH /v1/customers/{customer_uuid}/
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
phone | string | null | No | Phone number in international format, up to 50 characters. null clears it |
country_code | string | null | No | ISO 3166-1 alpha-3 country code (DEU). A two-letter code is stored as its three-letter form |
external_reference | string | null | No | Your own identifier of this customer, up to 255 characters |
Send at least one field. The response is 204 No Content; read the customer back to show the new values.
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:
DELETE /v1/customers/{customer_uuid}/
Path Parameters:
| Parameter | Type | Description |
|---|---|---|
customer_uuid | string (UUID) | The customer's UUID |
Request:
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.
| Status | error_code | Meaning |
|---|---|---|
404 | devapi_not_found_error | The customer does not exist or is not yours |
409 | devapi_customer_close_error | The customer is not in a state that allows closing |
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:
GET /v1/customers/{customer_uuid}/account-opening-letter/
Path Parameters:
| Parameter | Type | Description |
|---|---|---|
customer_uuid | string (UUID) | The customer's UUID |
Request:
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:
| Header | Value |
|---|---|
Content-Type | application/pdf;charset=UTF-8 |
Content-Disposition | attachment; filename*=UTF-8''account_opening_letter.pdf |
Content-Transfer-Encoding | binary |
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 for what each level allows:
| Level | kyc_level.key | How to start it | What the customer does |
|---|---|---|---|
| Instant | light | Start Instant Verification with the customer's name and date of birth | Nothing — Stablegate runs an automated AML screening and approves the application when the screening is clear |
| Standard | standard | Create a Verification Link and redirect the customer to it | Uploads an ID document, passes a liveness check, provides proof of address, then activates the account with a test deposit or a video interview |
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:
POST /v1/customers/{customer_uuid}/verification/instant/
Request Body:
| Field | Type | Required | Description |
|---|---|---|---|
first_name | string | Yes | Customer's legal first name |
last_name | string | Yes | Customer's legal last name |
date_of_birth | string | Yes | Date of birth in YYYY-MM-DD format |
Request:
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:
{
"uuid": "ka1a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
"status": "waiting",
"kyc_level_key": "light"
}
| Field | Type | Description |
|---|---|---|
uuid | string | KYC application UUID |
status | string | Application status right after submission — waiting (under automated screening or compliance review) |
kyc_level_key | string | Always light |
The response only confirms that the application has been submitted. To learn the outcome, poll 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:
| Status | error_code | message | Meaning |
|---|---|---|---|
400 | devapi_instant_verification_error | Instant verification is not configured | Instant verification is not enabled for your partner account. Use Standard verification (link) or contact Stablegate to enable it. |
400 | devapi_instant_verification_error | Instant verification is available for individual customers only | The customer is a company. Use Standard verification. |
409 | devapi_instant_verification_error | Not available in current state | The customer already has a verification application in progress or approved. Check kyc_level and the application status instead of resubmitting. |
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:
POST /v1/customers/{customer_uuid}/verification/link/
Request:
curl https://api.stablegate.com/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/verification/link/ \
--request POST \
--header 'X-Api-Key: YOUR_API_KEY'
Response:
{
"uuid": "ka1a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
"url": "https://in.sumsub.com/websdk/p/sbx_uni_abc123def456",
"token": "_act-sbx-jwt-eyJhbGciOi..."
}
| Field | Type | Description |
|---|---|---|
uuid | string | KYC application UUID |
url | string | Hosted verification page (Sumsub WebSDK) to redirect the customer to. The link is valid for 30 minutes; request a new one if it expires |
token | string | Sumsub SDK access token for the same session — only needed if you embed the Sumsub WebSDK in your own app instead of redirecting to url |
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: 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:
GET /v1/customers/{customer_uuid}/verification/
Request:
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:
{
"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"
}
}
| Field | Type | Description |
|---|---|---|
kyc_level_key | string or null | Level the customer holds today. null until an application is approved |
application | object or null | The latest application of the customer, null when the customer never started verification |
application.status | string | new, waiting, pending, approved, rejected or cancelled — see below |
application.kyc_level_key | string | Level the application was submitted for |
application.message | string or null | What compliance asked the customer for. null when there is nothing to pass on |
application.created_at, updated_at, last_status_change_at | string | ISO 8601 timestamps |
What the status means:
| Status | Where the application stands | What to do |
|---|---|---|
new | Created, not started | Send the customer the verification link |
waiting | The customer is filling the form, or the automated screening runs | Wait |
pending | Compliance is reviewing, or asked the customer for more documents | Read message, pass it to the customer, and re-issue the link if they need to upload again |
approved | The application passed | kyc_level_key is set; the customer may still need activation, see Account Activation |
rejected | The application did not pass | kyc_level_key stays null; read message and contact Stablegate support before starting a new application |
cancelled | The application was cancelled | Start a new application |
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
newstatus. Poll the detail endpoint to know when they reachactivestatus withpermissions.can_trade: true. There is no customer-status webhook — webhooks cover order status changes only. - Check
permissions.can_tradebefore initiating any exchange operations. - Use
external_referenceto link customers. Pass your internal user ID asexternal_referenceduring creation — it makes reconciliation between your system and Stablegate straightforward. You can also filter customers byexternal_referenceto 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.
Ready to integrate?
Client SDK
We do not ship a hand-written SDK. The API description is public, and the two generators below turn it into typed client code that matches the current contract — every endpoint, request body, response and error code included.
Exchange Routes
Exchange routes define the available conversion paths between fiat currencies and digital assets. Before creating an order, you should verify that the desired route is supported and currently available.