Guides

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:

  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). Once the customer reaches active status and permissions.can_trade is true, they can perform exchange operations.

Customer Types

TypeDescription
individualA natural person — end-user of your platform
corporateA legal entity — company or business
When creating a corporate customer, the company_name field is required.

Customer Statuses

StatusDescription
newCustomer has been registered, pending verification
activeCustomer is fully verified and can perform transactions
limitedCustomer has restricted access (e.g., pending additional verification)
blockedCustomer is blocked from all operations
closedCustomer 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:

FieldTypeRequiredDescription
typestringYesCustomer type: individual or corporate
emailstringYesCustomer's email address (must be a valid email)
country_codestringNoISO 3166-1 alpha-3 country code (e.g., DEU, FRA)
first_namestringNoCustomer's first name (for individuals)
last_namestringNoCustomer's last name (for individuals)
company_namestringConditionalCompany name — required when type is corporate
phonestringNoCustomer's phone number
external_referencestringNoYour 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

FieldTypeDescription
uuidstring (UUID)Unique customer identifier — use this in all subsequent API calls
customer_idstringHuman-readable customer ID assigned by the system
external_referencestring | nullYour internal reference, if provided during creation
usernamestringAssigned by Stablegate — the customer's email, lowercased
full_namestring | nullFull name (individual) or company name (corporate)
emailstring | nullCustomer's email address
phonestring | nullCustomer's phone number
typestring | nullCustomer type: individual or corporate
statestringCurrent customer status
country_codestring | nullISO 3166-1 alpha-3 country code
email_verifiedbooleanWhether the customer's email has been verified
created_atstring (ISO 8601)Customer creation timestamp
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:
{
  "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:

GET /v1/customers/exists/[email protected]

Response:

{
  "email": "[email protected]",
  "available": true
}
FieldTypeDescription
emailstringThe address that was checked, lowercased
availablebooleanfalse 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:

ParameterTypeDescription
customer_uuidstring (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)

FieldTypeDescription
kyc_levelobject | nullApproved KYC level. kyc_level.key is light (Instant), standard, or advanced; null until the first verification is approved
is_fundedbooleanWhether the customer has made at least one deposit
permissions.can_tradebooleanWhether the customer is allowed to create exchange orders
permissions.can_download_aolbooleanWhether the account opening letter is available for download. true when the customer's KYC level qualifies for AOL generation.
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. 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

ParameterTypeDefaultDescription
limitinteger100Maximum number of customers to return
offsetinteger0Number 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

ParameterTypeDescription
client_idstringExact match on customer ID
emailstringExact match on email
phonestringExact match on phone number
usernamestringExact match on username
full_namestringExact match on full name
external_referencestringExact match on external reference
typestringFilter by customer type: individual, corporate
country_codestringFilter by country code
email_verifiedbooleanFilter by email verification status
statusarrayFilter by one or more statuses: new, active, blocked, limited, closed. Note: the query parameter is named status, while the corresponding response field is state.
patternstringFree-text search across multiple fields
is_fundedbooleanFilter by funded status
kyc_level_keyarrayFilter by KYC level keys
risk_level_keyarrayFilter by risk level keys
partner_uuidstring (UUID)Filter by partner UUID
partner_emailstringFilter by partner email
accuity_sanctionsbooleanFilter by sanctions screening result
video_verification_passedbooleanFilter by video verification status

Partial Match Filters

Use __like suffix for substring (partial) matching:

ParameterDescription
email__likePartial match on email
phone__likePartial match on phone
username__likePartial match on username
full_name__likePartial match on full name
client_id__likePartial match on customer ID
external_reference__likePartial match on external reference
partner_full_name__likePartial match on partner name
partner_email__likePartial 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:

ParameterDescription
created_at__gteCustomers created on or after this date
created_at__lteCustomers created on or before this date
is_funded_updated_at__gteFunded status updated on or after this date
is_funded_updated_at__lteFunded status updated on or before this date
accuity_sanctions_updated_at__gteSanctions check updated on or after this date
accuity_sanctions_updated_at__lteSanctions check updated on or before this date
video_verification_passed_updated_at__gteVideo verification updated on or after this date
video_verification_passed_updated_at__lteVideo verification updated on or before this date
first_deposit_date__gteFirst deposit on or after this date
first_deposit_date__lteFirst deposit on or before this date
Date range filters also support __gt (strictly greater than) and __lt (strictly less than) suffixes.

Sorting

ParameterTypeDefaultDescription
sortstringdescSort direction: asc or desc
order_bystringidSort 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

FieldTypeDescription
uuidstring (UUID)Customer UUID
customer_idstringHuman-readable customer ID
external_referencestring | nullYour internal reference
usernamestringCustomer username
emailstring | nullCustomer email
full_namestring | nullFull name or company name
typestring | nullCustomer type
statestringCurrent status
kyc_levelobject | nullCurrent KYC level details. kyc_level.key is light (Instant), standard, or advanced; null until the first verification is approved
phonestring | nullPhone number
email_verifiedbooleanEmail verification status
country_namestring | nullCountry display name
country_codestring | nullISO country code
created_atstring (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

FieldTypeRequiredDescription
phonestring | nullNoPhone number in international format, up to 50 characters. null clears it
country_codestring | nullNoISO 3166-1 alpha-3 country code (DEU). A two-letter code is stored as its three-letter form
external_referencestring | nullNoYour 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:

ParameterTypeDescription
customer_uuidstring (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.

Statuserror_codeMeaning
404devapi_not_found_errorThe customer does not exist or is not yours
409devapi_customer_close_errorThe customer is not in a state that allows closing
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:

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

Path Parameters:

ParameterTypeDescription
customer_uuidstring (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:

HeaderValue
Content-Typeapplication/pdf;charset=UTF-8
Content-Dispositionattachment; filename*=UTF-8''account_opening_letter.pdf
Content-Transfer-Encodingbinary
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 for what each level allows:

Levelkyc_level.keyHow to start itWhat the customer does
InstantlightStart Instant Verification with the customer's name and date of birthNothing — Stablegate runs an automated AML screening and approves the application when the screening is clear
StandardstandardCreate a Verification Link and redirect the customer to itUploads 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:

FieldTypeRequiredDescription
first_namestringYesCustomer's legal first name
last_namestringYesCustomer's legal last name
date_of_birthstringYesDate 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"
}
FieldTypeDescription
uuidstringKYC application UUID
statusstringApplication status right after submission — waiting (under automated screening or compliance review)
kyc_level_keystringAlways 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:

Statuserror_codemessageMeaning
400devapi_instant_verification_errorInstant verification is not configuredInstant verification is not enabled for your partner account. Use Standard verification (link) or contact Stablegate to enable it.
400devapi_instant_verification_errorInstant verification is available for individual customers onlyThe customer is a company. Use Standard verification.
409devapi_instant_verification_errorNot available in current stateThe 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.

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..."
}
FieldTypeDescription
uuidstringKYC application UUID
urlstringHosted verification page (Sumsub WebSDK) to redirect the customer to. The link is valid for 30 minutes; request a new one if it expires
tokenstringSumsub 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"
  }
}
FieldTypeDescription
kyc_level_keystring or nullLevel the customer holds today. null until an application is approved
applicationobject or nullThe latest application of the customer, null when the customer never started verification
application.statusstringnew, waiting, pending, approved, rejected or cancelled — see below
application.kyc_level_keystringLevel the application was submitted for
application.messagestring or nullWhat compliance asked the customer for. null when there is nothing to pass on
application.created_at, updated_at, last_status_change_atstringISO 8601 timestamps

What the status means:

StatusWhere the application standsWhat to do
newCreated, not startedSend the customer the verification link
waitingThe customer is filling the form, or the automated screening runsWait
pendingCompliance is reviewing, or asked the customer for more documentsRead message, pass it to the customer, and re-issue the link if they need to upload again
approvedThe application passedkyc_level_key is set; the customer may still need activation, see Account Activation
rejectedThe application did not passkyc_level_key stays null; read message and contact Stablegate support before starting a new application
cancelledThe application was cancelledStart 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 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 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.

Ready to integrate?

Tell us about your use case and we will enable Partner API access for your account.
Copyright © 2026