API Reference
eKYC Open API
Identity verification flows, verification results, and webhooks.
Example data is synthetic. IDs, credentials and personal details are for documentation. Replace them with values assigned to your Sandbox integration.
1 Introduction
1.1 Overview
The DTC eKYC OpenAPI is a RESTful JSON-based web service that allows third parties to integrate DTC eKYC solutions into their platforms.
This specification defines a set of interfaces and security standards.
1.2 Specification Titles
-
Name: The JSON field name in the request or response.
-
Type: The JSON type of the field.
- String, Integer, Long, Enum (an integer ID unless stated otherwise), Object, Array.
-
Required:
- M — Mandatory. Validated by the server.
- C — Conditional. Mandatory only under the condition stated in the Description column.
- O — Optional.
-
Description: The meaning, allowed values, or format of the field.
1.3 Security Standards
- HTTPS: TLS 1.2, mandatory for every connection.
- Whitelist: Optional IP whitelist, configurable on the
API Key Managementpage. - OAuth 2.0: Request session management.
- Signature: Request integrity checking.
2 Quick Start
2.1 Disclaimer
Use of these APIs is subject to dtcpay's review and approval. dtcpay reserves the right, at its sole discretion, to approve, restrict, suspend, or revoke access at any time.
2.2 Before Integration
- Request account registration on the DTC Wallet platform.
- Log in with the username/password issued by the DTC team and go to the
API Key Managementpage. - Click
+ Createto open the dialog, and choose Wallet / Card API (not Payments API — that's a separate credential for the Payment Open API). - Enter the Name and IP Whitelist, then submit.
- The
API Key,API Secret, andSign Keyare generated and shown once. Keep them safe before closing the dialog. - Request domain names — see Fetch Access Token below.
2.3 OAuth 2.0 Authentication
2.3.1 Usage
Fetch an access token first, then add Authorization: Bearer {access_token} to every other request.
If the token expires, re-fetch it, or use Fetch Access Token by Refresh Token.
Cache the current access token and refresh it before it expires.
2.3.2 Fetch Access Token
API base URLs
- Sbx test environment:
https://open-api.sbx.dtcpayment.net - Production environment:
https://open-api.dtcpay.com
Use the base URL for your environment for both OAuth token requests and eKYC API calls. Append the endpoint path to the base URL.
Request Body Sample
curl -X "POST" "https://{host}/auth/v1/oauth2/token" \
-H "Content-Type: multipart/form-data; charset=utf-8; boundary=__X_PAW_BOUNDARY__" \
-F "client_id=EXAMPLE_CLIENT_ID" \
-F "client_secret=EXAMPLE_CLIENT_SECRET" \
-F "grant_type=client_credentials"The client_id/client_secret are obtained via the web portal at https://business.dtcpay.com/login — navigate to the API menu and create a Wallet API to generate the credentials.
Response Body Sample
{
"access_token": "EXAMPLE_ACCESS_TOKEN",
"expires_in": 21600,
"refresh_token": "EXAMPLE_REFRESH_TOKEN",
"rt_expires_in": 43200,
"token_type": "bearer"
}expires_in is the access token lifetime in seconds. rt_expires_in is the refresh token lifetime in seconds.
NOTE:
Access denied(errCode 00006) usually means aclient_id/client_secretmismatch, or the calling IP does not match the whitelist configured for the API key.
2.3.3 Fetch Access Token by Refresh Token
Request Body Sample
curl -X POST "https://{host}/auth/v1/oauth2/token" \
-F "grant_type=refresh_token" \
-F "refresh_token=<refresh-token>"Response
The response uses the same fields as Fetch Access Token. Use the new access token for API calls and store the new refresh token for the next refresh.
| Field | Type | Description |
|---|---|---|
access_token | String | New access token for the Authorization header |
token_type | String | bearer |
expires_in | Number | Access token lifetime in seconds |
refresh_token | String | New refresh token |
rt_expires_in | Number | Refresh token lifetime in seconds |
2.4 Request Signature
Sign each eKYC Open API request that uses an access token.
-
Concatenate these values in order.
- Method — Uppercase HTTP method.
- Timestamp — Unix time in milliseconds. Use this value in
D-TIMESTAMP. The timestamp must be within 120 seconds of server time. - Path — The request path, including any path parameters, without the scheme, host, or query string.
- Query string — If present, append
?and the raw query string exactly as sent. Preserve its parameter order and percent encoding. - Body — Append the exact UTF-8 request body, or an empty string when there is no body. Send the same JSON bytes you signed, including whitespace and key order.
Method + Timestamp + Path + ("?" + RawQuery if present) + BodyGET without query parameters — Get Verification Result
GET1636360576641/ekyc/v1/verification-result/demo_12345POST with a JSON body — Get Verification URL
POST1636360661729/ekyc/v1/get-verification-url{"query":{"externalId":"demo_12345","email":"alex@example.com","mobile":"+65 00000000","countryOfResidence":"SGP","targetKycLevel":100}}Include any additional fields required for your institution and verification channel before signing the request.
-
Compute HMAC-SHA512 with the Sign Key from Before Integration and Base64-encode the output bytes.
-
Send
Authorization: Bearer {access_token},D-TIMESTAMP, andD-SIGNATURE. SetContent-Type: application/jsonfor the POST.
2.4.1 Signing Examples (Java)
Set DTC_SIGN_KEY to your Sign Key before running the example. Each call prints the D-TIMESTAMP and D-SIGNATURE values for that request. For the POST, send the body string as-is.
import java.nio.charset.StandardCharsets;
import java.util.Base64;
import java.util.Objects;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
public class EkycSignatureExample {
public static void main(String[] args) throws Exception {
String signKey = Objects.requireNonNull(System.getenv("DTC_SIGN_KEY"), "Set DTC_SIGN_KEY");
sign("GET", "/ekyc/v1/verification-result/demo_12345", "", "", signKey);
String body = "{\"query\":{\"externalId\":\"demo_12345\","
+ "\"email\":\"alex@example.com\",\"mobile\":\"+65 00000000\","
+ "\"countryOfResidence\":\"SGP\",\"targetKycLevel\":100}}";
sign("POST", "/ekyc/v1/get-verification-url", "", body, signKey);
}
private static void sign(String method, String path, String rawQuery, String body, String signKey)
throws Exception {
String timestamp = Long.toString(System.currentTimeMillis());
String query = rawQuery.isEmpty() ? "" : "?" + rawQuery;
String stringToSign = method + timestamp + path + query + body;
Mac mac = Mac.getInstance("HmacSHA512");
mac.init(new SecretKeySpec(signKey.getBytes(StandardCharsets.UTF_8), "HmacSHA512"));
String signature = Base64.getEncoder().encodeToString(
mac.doFinal(stringToSign.getBytes(StandardCharsets.UTF_8)));
System.out.println(method + " " + path);
System.out.println("D-TIMESTAMP: " + timestamp);
System.out.println("D-SIGNATURE: " + signature);
}
}3 API
3.1 Message Structure
Every request body:
{
"query": {}
}Paginated requests additionally carry:
{
"query": {},
"page": {
"current": 1,
"size": 10
}
}Responses come in three shapes depending on the endpoint:
Single object
{
"header": {
"success": true,
"errCode": null,
"errMsg": null
},
"result": {}
}Plain list (no pagination — used by a small number of endpoints not covered in this document)
{
"header": {
"success": true
},
"resultList": []
}Paginated list
{
"header": {
"success": true
},
"resultList": [],
"pagination": {
"current": 1,
"size": 10,
"total": 100
}
}Failure:
{
"header": {
"success": false,
"errCode": "31005",
"errMsg": "Card Information is invalid"
}
}3.2 eKYC Process
This is used to obtain the eKYC verification URL, then poll (or receive a webhook for) the verification result.
3.2.1 Get Verification URL
Endpoint
[POST] /ekyc/v1/get-verification-url
Description
Creates (or resumes, if externalId was already registered by the same caller) an applicant's eKYC session and returns an H5 verification URL for them to complete identity verification.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| externalId | String | M | Assign a distinct applicant identifier to each person you register with dtcpay. Reuse the original value when requesting a new verification URL for the same applicant. |
| String | M | The applicant's email address. Example: alex@example.com | |
| mobile | String | M | The applicant's mobile number. Must match ^\+\d{1,3} \d{4,14}$ — a + country calling code (1-3 digits) followed by exactly one space, then the subscriber number (4-14 digits). Use the country code and one space before the subscriber number, for example +65 00000000. |
| countryOfResidence | String | M | Country code representing the applicant's country of residence. Format: ISO 3166-1 alpha-3 (e.g. SGP, MYS, USA). |
| targetKycLevel | Enum | M | Target KYC level for the applicant. Refer to Appendix C — ExternalKycLevel for the full value list. Use 100 (BASIC) for a first-time/standard onboarding (passport + proof-of-address + selfie); use 200 (STANDARD) when the applicant needs a higher transaction limit than Tier 1 (adds a transaction-volume questionnaire); use 900 (ADVANCED) when the applicant needs stablecoin/crypto services, which are only unlocked at Tier 3. |
| reverseSolicitation | String | C | Declares whether this applicant falls under a "reverse solicitation" scenario: T = confirmed reverse solicitation (the client proactively initiated and accepted the service), F = not a reverse solicitation case. Whether this field is required is decided per institution, per country, by an admin-configured setting in the DTC back-office (InstitutionConfig.rsCountryCodes, a country → "T"/"F" map maintained on your API key's institution record): if that map marks countryOfResidence as requiring RS declaration, this field becomes mandatory and F is rejected (50013); if the country is not marked (or the institution has no such config at all), this field is not enforced and can be omitted. This is unrelated to the separate country-of-residence whitelist below. |
| eKycVerifyType | Enum | O | eKYC verification type. Only meaningful when your institution's verification channel (admin-configured, not caller-controlled) is ADVANCE_AI — ignored otherwise. |
| country | String | O | Country (alpha-2 ISO code) used by the verification channel. Only meaningful for the ADVANCE_AI channel — ignored otherwise. |
| language | String | O | Preferred language for the verification page. Only meaningful for the ADVANCE_AI channel — ignored otherwise. Example: en |
| successRedirectUrl | String | C | Redirect URL upon successful verification. Only meaningful for the ADVANCE_AI channel, where it is required (00010 if missing) — ignored for other channels. |
| failureRedirectUrl | String | C | Redirect URL upon verification failure. Only meaningful for the ADVANCE_AI channel, where it is required (00010 if missing) — ignored for other channels. |
Country-of-residence whitelist: separately from reverse solicitation, an institution can also be configured (again in the DTC back-office,
InstitutionConfig.corWhitelist) with a whitelist of allowedcountryOfResidencevalues. When configured and non-empty, acountryOfResidenceoutside that whitelist is rejected with00025before any other validation — this is a different, independent admin setting from the reverse-solicitation map above.
Request Body Sample
{
"query": {
"externalId": "demo_12345",
"email": "alex@example.com",
"mobile": "+65 00000000",
"countryOfResidence": "SGP",
"targetKycLevel": 100
}
}Response Parameters
| Name | Type | Description |
|---|---|---|
| url | String | The H5 page used for authentication. Sbx environment: expires in 10 minutes. Production: expires in 12 hours — see urlExpiredTime for the exact instant. |
| urlExpiredTime | String (yyyy-MM-dd HH:mm:ss, SGT) | The exact expiry instant of url, e.g. 2026-09-10 22:00:00. After this time the applicant must call this endpoint again to get a fresh URL. |
| externalId | String | Echoes back the request's externalId. Only populated on the ADVANCE_AI channel. |
| eKycVerifyType | Enum | Echoes back the request's eKycVerifyType. Only populated on the ADVANCE_AI channel. |
| requestId | String | Third-party verification session ID. Only populated on the ADVANCE_AI channel. |
Response Body Sample
{
"header": {
"success": true
},
"result": {
"url": "https://verify.example/session/EXAMPLE-SESSION-001",
"urlExpiredTime": "2026-09-10 22:00:00"
}
}Possible Error Codes
| Code | Description | When it happens |
|---|---|---|
| 00010 | Invalid parameters | reverseSolicitation missing or not one of T/F for a country where the institution requires it (see reverseSolicitation above — an explicit F is a different code, 50013 below); or (ADVANCE_AI channel only) successRedirectUrl/failureRedirectUrl/externalId missing |
| 00025 | Sorry, our services are currently unavailable in your country or region. | countryOfResidence is not on the institution's configured country-of-residence whitelist |
| 01049 | Your account is invalid. Please contact our support for further inquiries. | externalId already resolves to an existing client whose account status is neither PENDING_KYC nor ACTIVATED |
| 50001 | Please provide mobile number in a correct format. | mobile missing, or fails ^\+\d{1,3} \d{4,14}$ validation (see mobile field above — most commonly a missing space between country code and number) |
| 50002 | Please provide email in a correct format. | email missing or fails format validation |
| 50003 | Please provide country of residence in a correct format. | countryOfResidence missing, or not a country configured to support SMS OTP |
| 50004 | Please provide externalId in a correct format. | externalId missing/blank |
| 50005 | Please provide targetKycLevel in a correct format. | targetKycLevel missing or not one of the ExternalKycLevel values |
| 50006 | Mobile number exist, please choose a different mobile number. | New applicant (externalId not seen before) but mobile is already used by another wallet user |
| 50007 | The applicant is currently undergoing verification. | Existing client's tier upgrade is already in progress and their proof-of-address is not currently marked invalid |
| 50008 | Email exist, please choose a different email. | New applicant (externalId not seen before) but email is already used by another wallet user |
| 50013 | Reverse solicitation not declared by end user. | Institution requires RS declaration for this countryOfResidence and reverseSolicitation was explicitly F |
| 00004 | Unknown API error | Institution has no channel configured for this institutionId, or an unexpected exception |
3.2.2 Get Verification Result
Endpoint
[GET] /ekyc/v1/verification-result/{externalId}
Description
Returns the current eKYC verification status and level for a previously registered applicant.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| externalId | String | M | For hosted verification, pass the original applicant identifier as the path parameter. For token sharing, pass the subaccountRef returned by Create Sub-account. |
Response Parameters
| Name | Type | Description |
|---|---|---|
| externalId | String | Echoes back the path's externalId. |
| clientId | Long | Unique applicant identifier as registered on DTC. This is a different concept from the OAuth client's client_id used to fetch the access token. |
| clientStatus | Enum | The client account status. Refer to Appendix C — ClientStatus. Distinct from verifyStatus (KYC progress) — this reflects the account's own status. For eKYC applicants, only populated once the applicant has an associated DTC client (clientId non-null). For token-sharing sub-accounts (3.4), populated from the first share onwards, before clientId is returned: 1 PENDING_KYC while under review, 4 REJECTED, 99 ACTIVATED (only then is clientId returned). |
| nationality | String | Nationality of the applicant. Format: ISO 3166-1 alpha-3. |
| countryOfResidence | String | Country code representing the applicant's country of residence. Format: ISO 3166-1 alpha-3. |
| currentKycLevel | Enum | Current KYC level for the applicant. Refer to Appendix C — ExternalKycLevel. null until the applicant has been assigned a tier. |
| passportVerifyStatus | Enum | The KYC review status of the applicant's passport. Refer to Appendix C — EKycFileVerifyStatus. |
| passportVerifyFailReason | String | Reason the passport verification failed. Only set when passportVerifyStatus is a failure. |
| faceIdVerifyStatus | Enum | The KYC review status of the applicant's face ID. Refer to Appendix C — EKycFileVerifyStatus. |
| faceIdVerifyFailReason | String | Reason the Face ID verification failed. Only set when faceIdVerifyStatus is a failure. |
| proofOfAddressVerifyStatus | Enum | The KYC review status of the applicant's proof of address. Refer to Appendix C — EKycFileVerifyStatus. |
| proofOfAddressVerifyFailReason | String | Reason the proof-of-address verification failed. Only set when the status is a failure. |
| verifyStatus | Enum | Refer to Appendix C — EkycVerifyStatus. For eKYC applicants, always null on this endpoint (known limitation; use the three ...VerifyStatus fields and clientStatus instead). For token-sharing sub-accounts (3.4), always populated: 1 UNVERIFIED before sharing, 2 VERIFYING under review, 3 APPROVED, 4 REJECT. |
| updatedAt | String (yyyy-MM-dd HH:mm:ss) | Last-updated time of the underlying KYC record. null if the applicant has no associated DTC client yet. |
Response Body Sample
{
"header": {
"success": true
},
"result": {
"externalId": "demo_12345",
"clientId": 85888888891,
"clientStatus": 99,
"nationality": "SGP",
"countryOfResidence": "SGP",
"currentKycLevel": 100,
"passportVerifyStatus": 3,
"faceIdVerifyStatus": 3,
"proofOfAddressVerifyStatus": 3,
"verifyStatus": null,
"updatedAt": "2026-09-02 16:13:59"
}
}Possible Error Codes
| Code | Description | When it happens |
|---|---|---|
| 00006 | Access denied | No authenticated OAuth client resolved for this request |
| 50004 | Please provide externalId in a correct format. | No applicant was found for the supplied externalId. |
| 00004 | Unknown API error | Unexpected exception |
3.3 Webhook
3.3.1 Description
DTC supports webhook callbacks in various business scenarios. Customers can implement their own business logic in the callback interface.
The webhook URL is not part of any eKYC request — it is resolved server-side from your own institution's (the value configured for your API key on the API Key Management page), the same URL used by every other webhook this API sends you. To change it, update it on the API Key Management page.
Transport and Payload
DTC sends webhook callbacks using the HTTP POST method. The request body is formatted as JSON and encoded in UTF-8. The request Content-Type is application/json; charset=utf-8.
Acknowledgement and Failure Handling
Each webhook delivery attempt is considered successful only when all of the following conditions are met:
- The request is completed successfully.
- The endpoint returns HTTP status 200.
- The response body is exactly the plain-text string
OK, without quotation marks.
An attempt is considered unsuccessful if the request fails, times out, returns a non-200 status code, or returns an empty or different response body.
A webhook notification is marked as FAILED only after the initial delivery attempt and all configured retries have failed. A failed attempt that still has retries available is marked as RETRYING.
Delivery and Retry Model
Each delivery attempt is a synchronous HTTP request/response exchange. The callback endpoint must respond promptly and must not rely on fire-and-forget processing.
The initial delivery attempt is started during notification processing. If an attempt fails, DTC records the notification and schedules the next attempt asynchronously in the background. Therefore, the response from the notification submission API confirms that the notification was accepted for processing; it must not be interpreted as confirmation that the customer endpoint has successfully processed the callback.
DTC performs up to six automatic retries after the initial attempt, for a maximum of seven delivery attempts in total. The retry delay is applied after each failed attempt. Retry timing is best-effort and may be later than the stated interval because of scheduling or service availability.
Webhook endpoints should be idempotent because the same event may be delivered more than once.
Retry Intervals: 15s, 30s, 60s, 120s, 240s, 480s.
3.3.2 Signature Verification
The signature field in the webhook payload is generated using HMAC-SHA512 + Base64 encoding with the Sign Key from Before Integration, but not the same string-to-sign as Request Signature (that scheme is for inbound API calls; this is DTC signing an outbound webhook).
The string signed is POST + the exact webhook URL configured on the API Key Management page (the full URL, not a request path) + the data object only (never the whole envelope — event/clientId/signature are not part of the signed string), with data's JSON keys recursively sorted before signing. No timestamp is included.
Example: Webhook Signature Verification (Java)
import com.google.common.hash.Hashing;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
public class WebhookSignatureVerification {
public static void main(String[] args) {
String signKey = "example-sign-key";
String method = "POST";
String webhookUrl = "https://partner.example.com/webhooks/endpoint"; // exactly as configured in API Key Management
// `dataJson` must be the "data" object only, with its keys recursively sorted
// (including nested objects) — not the whole envelope, and not raw bytes as received.
String dataJson = "{\"clientStatus\":1,\"countryOfResidence\":\"SGP\",\"currentKycLevel\":100,\"externalId\":\"demo_12345\",\"faceIdVerifyStatus\":3,\"nationality\":\"SGP\",\"passportVerifyStatus\":3,\"proofOfAddressVerifyStatus\":3,\"verifyStatus\":1}"; // keys sorted alphabetically
String receivedSignature = "MLbutFcQKqE4E/FBbYg3V7pNGuLlR7FlAo1fekDv+m6jhWic1G323umbmkiRWl4ZF7vh9dMB/rhHNOe3wtlUFA==";
String stringToSign = method + webhookUrl + dataJson;
String expectedSignature = Base64.getEncoder().encodeToString(
Hashing.hmacSha512(signKey.getBytes(StandardCharsets.UTF_8))
.hashBytes(stringToSign.getBytes(StandardCharsets.UTF_8))
.asBytes()
);
boolean isValid = expectedSignature.equals(receivedSignature);
System.out.println("StringToSign : " + stringToSign);
System.out.println("Expected : " + expectedSignature);
System.out.println("Received : " + receivedSignature);
System.out.println("Valid : " + isValid);
}
}To verify a real payload: take the
dataobject exactly as received, recursively sort its own keys, and rebuild the same string — do not sign the raw bytes of the whole request body, since key order there is not guaranteed to match what was actually signed.
Webhook Payload Sample
{
"event": "KYC_VERIFICATION",
"clientId": 85888888902,
"signature": "EXAMPLE_SIGNATURE_BASE64",
"data": {
"externalId": "demo_12345",
"clientStatus": 1,
"nationality": "SGP",
"countryOfResidence": "SGP",
"verifyStatus": 1,
"currentKycLevel": 100,
"passportVerifyStatus": 3,
"faceIdVerifyStatus": 3,
"proofOfAddressVerifyStatus": 3
}
}3.4 Sumsub Token Sharing
3.4.1 Overview
A Financial Institution (FI) partner can onboard its customer as a dtcpay sub-account by sharing the customer's existing Sumsub KYC profile, so the customer does not redo identity verification. This adds three endpoints to the eKYC Open API; results come back through the existing Get Verification Result endpoint and the KYC_VERIFICATION webhook.
- Available only to FI (institution) clients, with the same Wallet / Card API key, OAuth 2.0 token and request signature as the rest of the eKYC Open API.
- Host, authentication, signature, message structure and webhook delivery are unchanged — see the main eKYC Open API document.
| Endpoint | Purpose |
|---|---|
POST /ekyc/v1/sub-account/create | Create the sub-account and get its subaccountRef |
POST /ekyc/v1/kyc-precheck | Validate the customer's compliance and document details for today |
POST /ekyc/v1/kyc-share | Submit the Sumsub share token for that sub-account |
3.4.2 Flow
- Create sub-account — call
sub-account/createonce per customer. Keep the returnedsubaccountRef; it is theexternalIdin every later call, in the verification result and in the webhook. - Pre-check — call
kyc-precheckon the day you will share. A pass is valid only for the same calendar day (SGT) and only for one share. If it fails, fix the fields infailedFieldsand call again. - Generate the share token in your own Sumsub account for this customer, right before sharing — tokens are single-use and expire quickly.
- Share — call
kyc-sharewith the token and anIdempotency-Keyheader. Success always answerskycStatus = pending. - Get the result — wait for the
KYC_VERIFICATIONwebhook, or pollGET /ekyc/v1/verification-result/{subaccountRef}.verifyStatus3 (APPROVED) withclientStatus99 (ACTIVATED) means the sub-account is live;clientIdis returned only at that point. - If rejected — contact dtcpay; after Ops clears the failed attempt, repeat from step 2 with a new token.
The sub-account is not listed in Biz Portal until a share succeeds. From then on it is listed while under review, but its Client ID is only available once KYC is approved (clientStatus 99 ACTIVATED). Do not treat a listed sub-account as active.
3.4.3 Create Sub-account
[POST] /ekyc/v1/sub-account/create
Creates a sub-account under your institution. It is not listed in Biz Portal until a share succeeds, and its Client ID is only available once KYC is approved. Name, email and mobile must be unique within your institution.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| officialName | String | M | Customer's full name exactly as printed on the ID document. Used as the sub-account name. |
| mobile | String | M | Mobile number, format +<country code> <number>, e.g. +65 91234567. |
| String | M | Email address. | |
| clientCustomerRef | String | O | Your own customer reference, for reconciliation. |
Request Body Sample
{
"query": {
"officialName": "Example Company",
"mobile": "+65 00000000",
"email": "alex@example.com",
"clientCustomerRef": "EXAMPLE-CUSTOMER-REF-016"
}
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| subaccountRef | String | Sub-account reference. Use it as externalId in all later calls. |
Response Body Sample
{
"header": { "success": true },
"result": { "subaccountRef": "<subaccountRef>" }
}
Possible errors: 00006, 63001, 63002, 63003, 63011, 63014.
3.4.4 KYC Pre-check
[POST] /ekyc/v1/kyc-precheck
Validates the customer's compliance and document details before you generate a share token. A pass is valid for one share on the same day (SGT); calling again replaces the previous result, and a failed repeat voids today's earlier pass. The ID number is checked but not stored.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| externalId | String | M | The subaccountRef from Create Sub-account. |
| employer | String | M | Employer name, max 200 characters. |
| occupation | String | M | Occupation, max 200 characters. |
| purposeOfAccount | String | M | One of: Crypto Investment, Transfer of Fiat funds, Transfer of DPT funds, Payments, Foreign Currency Conversions, Domestic Transfers, Cross Border Transfers, Card Transactions, All of the above, Others. |
| identityType | String | M | Must be passport. |
| identityNo | String | M | Passport number, letters and digits only. |
| identityExpiryDate | String | M | YYYY-MM-DD; must be after today (SGT). |
| poaType | String | M | Proof-of-address issuer: government_organization, utility_provider, bank or telco_operator. |
| poaIssueDate | String | M | YYYY-MM-DD; issue date + 6 months must be after today (SGT). |
Request Body Sample
{
"query": {
"externalId": "<subaccountRef>",
"employer": "Example Company",
"occupation": "Engineer",
"purposeOfAccount": "Payments",
"identityType": "passport",
"identityNo": "EXAMPLE-IDENTITY-001",
"identityExpiryDate": "2031-05-20",
"poaType": "utility_provider",
"poaIssueDate": "2026-10-01"
}
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| subaccountRef | String | Echoes the sub-account. |
| status | String | passed or failed. |
| failedFields | Array | On failed only: names of the request fields to fix. |
A failed pre-check returns success: false with errCode 63005 and a result carrying failedFields:
{
"header": {
"success": false,
"errCode": "63005",
"errMsg": "Pre-check failed. Correct the fields listed in failedFields."
},
"result": {
"subaccountRef": "<subaccountRef>",
"status": "failed",
"failedFields": [
"poaIssueDate"
]
}
}Possible errors: 63004, 63005, 63010, 63011.
3.4.5 KYC Share
[POST] /ekyc/v1/kyc-share
Submits the customer's Sumsub share token. Requires today's passed pre-check. Success always answers pending; the final result arrives by webhook or verification-result.
Request Header
| Name | Required | Description |
|---|---|---|
| Idempotency-Key | M | Unique within your institution for each share attempt, up to 128 characters. To retry the same attempt, use the original key, externalId, and shareToken. Use a new key for each new token. |
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| externalId | String | M | The subaccountRef. |
| shareToken | String | M | Sumsub share token generated for this customer. Single-use; submit it immediately after generating. |
Request Body Sample
{
"query": {
"externalId": "<subaccountRef>",
"shareToken": "EXAMPLE_KYC_SHARE_TOKEN"
}
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| subaccountRef | String | Echoes the sub-account. |
| kycStatus | String | Always pending on success. |
Response Body Sample
{
"header": { "success": true },
"result": { "subaccountRef": "<subaccountRef>", "kycStatus": "pending" }
}
Possible errors: 00004, 63004, 63006, 63007, 63008, 63009, 63010, 63011, 63012, 63013, 63014. On 00004, retry with the same Idempotency-Key before generating a new token — the token may already have been used.
3.4.6 Result & Webhook
Share results use the existing GET /ekyc/v1/verification-result/{externalId} (3.2.2) (pass the subaccountRef) and the KYC_VERIFICATION webhook, with the same fields, enums and signature verification as the main document.
| Stage | verifyStatus | clientStatus | clientId |
|---|---|---|---|
| Created / pre-checked, not shared | 1 UNVERIFIED | null | null |
| Shared, under review | 2 VERIFYING | 1 PENDING_KYC | null |
| Approved | 3 APPROVED | 99 ACTIVATED | returned |
| Rejected | 4 REJECT | 4 REJECTED | null |
passportVerifyStatus,faceIdVerifyStatusandproofOfAddressVerifyStatusshow each step (EKycFileVerifyStatus). A failed step carries its reason:...VerifyFailReasonin verification-result,...VerifyCodein the webhook.currentKycLevelis returned once the sub-account is activated.- A webhook is sent each time the status changes after the share (Sumsub verdict, then dtcpay review). Endpoints must be idempotent; verification-result always returns the latest status.
Webhook Payload Sample (rejected)
{
"event": "KYC_VERIFICATION",
"clientId": "<your institution clientId>",
"signature": "EXAMPLE_SIGNATURE_BASE64",
"data": {
"externalId": "<subaccountRef>",
"clientStatus": 4,
"verifyStatus": 4,
"passportVerifyStatus": 3,
"faceIdVerifyStatus": 3,
"proofOfAddressVerifyStatus": 4,
"proofOfAddressVerifyCode": "EXAMPLE_POA_CODE"
}
}
Webhook Payload Sample (approved)
{
"event": "KYC_VERIFICATION",
"clientId": "<your institution clientId>",
"signature": "EXAMPLE_SIGNATURE_BASE64",
"data": {
"externalId": "<subaccountRef>",
"clientId": "<sub-account clientId>",
"clientStatus": 99,
"verifyStatus": 3,
"currentKycLevel": 100,
"passportVerifyStatus": 3,
"faceIdVerifyStatus": 3,
"proofOfAddressVerifyStatus": 3
}
}data.clientId is the sub-account's clientId and is returned only when ACTIVATED. The top-level clientId is your institution's.
Webhook signature verification: Token sharing webhooks are signed exactly as described in 3.3.2 Signature Verification. Use the same Sign Key and webhook URL as for other webhooks. Sign the data object only, with its keys sorted recursively. data.clientId is part of the signed string when it is present (ACTIVATED only), so always rebuild the string from the data object exactly as received. Never verify against a fixed field list.
4 Appendix A: Data Structure
Every response object referenced above by name is fully specified inline at its first use (see the Response Parameters table for each endpoint). There are no shared cross-endpoint object shapes in this API beyond what is documented per endpoint.
5 Appendix B: Error Structure
All DTC Pay APIs return errors in a consistent structure, under the header field:
{
"header": {
"success": false,
"errCode": "<unique error code>",
"errMsg": "<description of the error>"
}
}Every endpoint above lists its own specific error codes with the condition that triggers each one; the table below lists common codes that can be returned by essentially any endpoint:
5.1 Common Error Codes (any endpoint)
| Code | Description |
|---|---|
| 00004 | Unknown API error |
| 00006 | Access denied |
| 00010 | Invalid parameters |
| 00025 | Sorry, our services are currently unavailable in your country or region. |
5.2 Token Sharing Error Codes
| Code | Message | When / what to do |
|---|---|---|
| 63001 | The mobile, email or sub-account name already exists. | Name, email or mobile already used. Verify details or contact dtcpay ops. |
| 63002 | Another sub-account create with the same name, email or mobile is in progress. | Concurrent create. Retry shortly. |
| 63003 | Mobile or email is not in a valid format. | Fix the format (mobile +65 91234567). |
| 63004 | Sub-account not found. | externalId is not a sub-account created by you. Use the returned subaccountRef. |
| 63005 | Pre-check failed. | Fix the fields in failedFields, then pre-check again. |
| 63006 | No usable pre-check. | No pass today (SGT), or it was already used. Pre-check again, then share the same day. |
| 63007 | Share token has expired or was already used. | Generate a new token and submit immediately. |
| 63008 | The shared KYC profile is missing required steps. | Customer completes the missing Sumsub steps; share again with a new token. |
| 63009 | Sumsub could not reuse this profile. | Retry once with a new token, or contact dtcpay support. |
| 63010 | A share for this sub-account is already in progress or completed. | Query verification-result instead. |
| 63011 | <field> is required. | Add the named field. |
| 63012 | This Idempotency-Key was already used for another request. | Use a new key per share attempt. |
| 63013 | Idempotency-Key header is required. | Add the header. |
| 63014 | <field> is invalid or exceeds the maximum length. | Fix the named field. |
On 63007, 63008 and 63009 no token was consumed on dtcpay's side and today's pre-check still stands — share again with a new token and a new Idempotency-Key.
6 Appendix C: Enum List
ExternalKycLevel (used by targetKycLevel / currentKycLevel)
| Name | ID | Descriptor |
|---|---|---|
| BASIC | 100 | Complete the Passport + PoA + Selfie review. Unlocks Tier 1. |
| STANDARD | 200 | Adds a transaction-volume questionnaire on top of BASIC. Unlocks Tier 2. |
| ADVANCED | 900 | Adds stablecoin service eligibility on top of STANDARD. Unlocks Tier 3. |
EkycVerifyStatus (used by verifyStatus)
| Name | ID | Descriptor |
|---|---|---|
| UNVERIFIED | 1 | The applicant is not being verified. |
| VERIFYING | 2 | The applicant is being verified. |
| APPROVED | 3 | The applicant has been verified. |
| REJECT | 4 | The applicant's verification was rejected. |
EKycFileVerifyStatus (used by passportVerifyStatus / faceIdVerifyStatus / proofOfAddressVerifyStatus)
| Name | ID | Descriptor |
|---|---|---|
| UNVERIFIED | 1 | Document verification is not completed. |
| VERIFYING | 2 | Document verification is in progress. |
| VERIFY_SUCCESS | 3 | Document verification succeeded. |
| VERIFY_FAILURE | 4 | Document verification failed. |
ClientStatus (used by clientStatus)
| Name | ID | Descriptor |
|---|---|---|
| SUSPENDED | 0 | Suspended |
| PENDING_KYC | 1 | Pending KYC |
| DORMANT | 2 | Dormant |
| REGISTERED | 3 | Self Registered |
| REJECTED | 4 | Rejected |
| OFF_BOARD | 5 | Off Board |
| REFERRER | 8 | Referrer |
| TERMINATED | 9 | Terminated |
| DEACTIVATED | 10 | Deactivated |
| RESTRICTED | 11 | Restricted |
| DELETED | 12 | Deleted |
| FROZEN | 13 | Frozen |
| DROP | 14 | Drop |
| ACTIVATED | 99 | Activated |