API Reference
Payment Open API
Payment pages, dynamic and static QR, transaction queries, and notifications.
Example data is synthetic. IDs, credentials and personal details are for documentation. Replace them with values assigned to your Sandbox integration. QR and wallet address placeholders cannot be used to make payments.
1 Introduction
1.1 Overview
The DTC Payment OpenAPI, a JSON RESTful web service, is for third-party merchants to integrate DTC's payment processing (payment pages, dynamic/static QR codes, transaction queries) into their own systems.
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, Decimal (a JSON number, not a string — see the note below), Boolean, Object, Array.
-
Required:
- M — Mandatory for integrations using this specification.
- C — Conditional. Mandatory only under the condition stated in the Description column.
- O — Optional.
-
Description: The meaning, allowed values, or format of the field.
NOTE (numeric fields): Every amount/fee/rate field in this document (
totalAmount,saleAmount,serviceFeeAmount,gstAmount,tipAmount,processingAmount,processingFee,exchangeRate,secondaryAmount, etc.) is a JSON number, both in requests and responses — e.g."totalAmount": 1.23, never"totalAmount": "1.23". All JSON samples in this document follow the number convention.
1.3 Security Standards
- HTTPS: TLS 1.2, mandatory for every connection.
- Whitelist: Optional IP whitelist, configurable on the
API Key Managementpage. - Signature: Request integrity checking (identity comes entirely from the signature + merchant/terminal headers below).
1.4 Request domain name
- Sbx test environment:
https://open-api.sbx.dtcpayment.net - Production environment:
https://open-api.dtcpay.com
2 Quick Start
2.1 Before Integration
- Request account registration on the DTC Wallet platform.
- Log in and go to the
API Key Managementpage. - Click
+ Create, choose Payments API (not Wallet / Card API — that's a separate credential for the Card/Wallet/eKYC Open APIs), and fill in the Name and IP Whitelist. - The
Sign Keyis generated and shown once — copy it before closing the dialog. Each merchant's terminal has its own unique sign key.
Payment Authentication
Payment authenticates each request using the terminal's Sign Key. Sign In is optional and returns merchant and terminal configuration in result, including the terminal's currency and available payment channels. Generate a signature with a fresh D-TIMESTAMP for every request. The timestamp is in Unix milliseconds and must be within 120 seconds of server time.
2.2 Request Signature
Sign each Payment Open API request with the Sign Key for the terminal identified by D-TERMINAL-ID.
-
Concatenate these values in order.
- Method — Uppercase HTTP method.
- Timestamp — Unix time in milliseconds. Use the same value in
D-TIMESTAMP. - Path — Request path without the scheme, host, or query string.
- Query string — When present, append
?followed by the raw query string, preserving parameter order and percent encoding. - Body — For a POST, append the exact UTF-8 JSON body. Use an empty string for GET. Keep the JSON whitespace and key order identical in the signed string and the HTTP request.
Method + Timestamp + Path + ("?" + RawQuery if present) + BodyGET without query parameters — Sign In
GET1636360576641/payment/v1/sign-inPOST with a JSON body — Query Transaction Detail
POST1636360661729/payment/v1/query-detail{"query":{"referenceNo":"88888888050"}} -
Compute HMAC-SHA512 using the terminal's Sign Key and Base64-encode the output bytes.
-
Send
D-MERCHANT-ID,D-TERMINAL-ID,D-TIMESTAMPandD-SIGNATUREwith the request. SetContent-Type: application/jsonfor the POST.
2.2.1 Signing Examples (Java)
Set DTC_SIGN_KEY to your terminal's Sign Key before running this example. The program prints the timestamp and signature for each request. Send the POST body exactly as shown and use a fresh timestamp when making a request.
import java.nio.charset.StandardCharsets;
import java.util.Base64;
import java.util.Objects;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
public class PaymentSignatureExample {
public static void main(String[] args) throws Exception {
String signKey = Objects.requireNonNull(System.getenv("DTC_SIGN_KEY"), "Set DTC_SIGN_KEY");
sign("GET", "/payment/v1/sign-in", "", "", signKey);
String body = "{\"query\":{\"referenceNo\":\"88888888050\"}}";
sign("POST", "/payment/v1/query-detail", "", 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);
}
}2.3 HTTP Headers
Every request carries:
D-MERCHANT-ID: Assigned by DTC.D-TERMINAL-ID: Assigned by DTC.D-TIMESTAMP— Unix timestamp in milliseconds. Send the exact value used in the signature. Requests more than 120 seconds from server time are rejected.D-SIGNATURE: The generated signature string.
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"
}
}Reference number uniqueness
dtcpay checks reference numbers by terminalId + referenceNo. The terminal ID comes from D-TERMINAL-ID. Different terminals can use the same reference number.
- Payment transactions — Use a new reference for each transaction under the same terminal across Payment Page and Generate Merchant QR. Generate Merchant QR checks for duplicates when creating the transaction. For Payment Page, dtcpay checks when the customer submits the payment from the hosted page.
- Static QR codes — Generate Static QR checks the pair against existing static QR codes under the terminal. This check is separate from the payment transaction check.
brandandmoduleselect how the QR is generated.
When querying by reference number, send the original referenceNo with the same terminal.
3.2 Sign In
Endpoint
[GET] /payment/v1/sign-in
Description
Optionally checks the configuration for the signed merchant and terminal. The result contains the merchant and terminal IDs, merchant information, the terminal currency, and available payment channels. Each Payment API call uses its own signature.
Response Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| merchantId | Long | M | The merchant ID generated by DTC system for merchant. |
| merchantInfo | Object | M | The merchant's information — see below. |
| terminalId | Long | M | The terminal ID generated by DTC system for merchant. Multiple terminal routes can be added to a terminal ID. |
| requestCurrency | String | M | The terminal's own accounting currency. |
| cryptoTravelRule | Boolean | O | Whether Travel Rule data collection applies to this terminal's crypto transactions. |
| channels | Array | M | The payment channels (brand + module + currency combinations) available to this terminal. |
merchantInfo Parameters
| Name | Type | Description |
|---|---|---|
| name | String | Merchant name. |
| country | String | Merchant country. |
| city | String | Merchant city. |
| state | String | Merchant state. |
| postalCode | String | Merchant postal code. |
| address | String | Merchant address line. |
Channel Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| brand | Integer | M | Payment brand for this channel. Refer to Enum List - Brand. |
| processingCurrency | String | M | Currency the payer pays in on this channel. |
| module | Integer | M | Payment module for this channel. Refer to Enum List - Module. |
Response Body Sample
{
"header": {
"success": true
},
"result": {
"merchantId": 88888888055,
"merchantInfo": {
"name": "Example Company",
"country": "SGP",
"city": "Singapore",
"state": "Central Singapore",
"postalCode": "000000",
"address": "10 Example Street"
},
"terminalId": 88888888051,
"requestCurrency": "SGD",
"cryptoTravelRule": true,
"channels": [
{
"brand": 201,
"processingCurrency": "USDC",
"module": 1002
},
{
"brand": 101,
"processingCurrency": "SGD",
"module": 5
}
]
}
}Possible Error Codes
| Code | Description | When it happens |
|---|---|---|
| 500 | Server Error | Unexpected exception (e.g. downstream call to payment-api failed) — this proxy's own catch converts it into the standard {header:{success,errCode,errMsg}} shape |
3.3 Payment Page
Endpoint
[POST] /payment/v1/payment-page
Description
Creates a hosted payment page for a customer transaction. After the merchant submits transaction details (amounts, reference number, optional billing/shipping info, redirect URL), the API returns a payment page URL the customer visits to complete payment.
Use a new referenceNo for each hosted payment under the terminal. dtcpay checks for duplicates when the customer submits the payment.
Top-level Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| transaction | Object | M | Transaction details, see below. |
| redirectUrl | String | C | URL DTC redirects the customer to once a final result has been received from bank/acquirer. |
Transaction Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| totalAmount | Decimal | M | The merchant's receive amount; settled by DTC after deducting the fee (corresponds to the terminal's request currency). Must be > 0. |
| saleAmount | Decimal | C | The original price of goods or services. |
| serviceFeeAmount | Decimal | C | Service fee amount (if provided, saleAmount must also be filled). |
| gstAmount | Decimal | C | Goods and Services Tax amount (if provided, saleAmount must also be filled). |
| tipAmount | Decimal | C | The voluntary tip given by the customer (if provided, saleAmount must also be filled). |
| referenceNo | String | M | Transaction idempotency key. The combination of terminalId and referenceNo must be unique among payment transactions. |
| billingInfo | PersonalInfo | C | Billing info. |
| shippingInfo | PersonalInfo | C | Shipping info. |
| notificationUrl | String | C | Webhook URL for transaction state update notifications — see Notification. |
PersonalInfo Parameters
| Name | Type | Required |
|---|---|---|
| firstName | String | M |
| lastName | String | M |
| String | M | |
| phone | String | C |
| country | String | M |
| state | String | C |
| city | String | C |
| postcode | String | M |
| address | String | M |
| address2 | String | O |
Request Body Sample (formatted)
{
"query": {
"transaction": {
"totalAmount": 1.23,
"referenceNo": "88888888050",
"notificationUrl": "https://partner.example/notifications",
"billingInfo": {
"firstName": "Alex",
"lastName": "Example",
"email": "alex@example.com",
"phone": "00000000",
"country": "Singapore",
"state": "Singapore",
"city": "Singapore",
"postcode": "000000",
"address": "10 Example Street",
"address2": "Example District"
},
"shippingInfo": {
"firstName": "Jamie",
"lastName": "Sample",
"email": "shipping@example.com",
"phone": "00000000",
"country": "Singapore",
"state": "Singapore",
"city": "Singapore",
"postcode": "000001",
"address": "20 Example Shipping Street",
"address2": "Example Shipping District"
}
},
"redirectUrl": "https://partner.example/return"
}
}Response Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| pageUrl | String | M | URL of the generated payment page where the merchant should redirect the customer. |
| timeout | Long | M | Unix timestamp in seconds when the payment page expires. |
Response Body Sample
{
"header": {
"success": true
},
"result": {
"pageUrl": "https://checkout.example/payment-pages/EXAMPLE-PAGE-001",
"timeout": 1604756861
}
}Possible Error Codes
| Code | Description | When it happens |
|---|---|---|
| 400 | Bad Request / Invalid parameters | totalAmount <= 0 |
| 500 | Server Error | Unexpected exception (see the envelope note under Sign In) |
3.4 Generate Merchant QR
Endpoint
[POST] /payment/v1/generate-merchant-qr
Description
Creates a dynamic QR code for a one-time merchant payment. The merchant submits amount, reference number, brand/module/currency, and optional customer info; the API returns the created transaction (see PaymentTransactionResp) including the qr content the customer scans to pay.
This endpoint currently supports four brands:
WECHAT_PAY(101),PAY_NOW(104),BINANCE_PAY(106), andCRYPTO_HOSTED(201). Any other brand — includingCRYPTO_UNHOSTED(200) — is rejected withInvalid acquirer.
用 crypto currency 支付(stg 测试环境):目前测试环境的
CRYPTO_HOSTED仅支持以太坊(测试网)+ USDC 币种。可以通过 https://faucet.circle.com/ 领取测试 USDC 后,用自己的钱包(如 MetaMask)向本接口返回的 QR 收款地址转账完成付款;也可以直接用自己已有的测试网钱包向目标地址转账,效果相同。
Top-level Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| transaction | Object | M | Transaction details, see below. |
Transaction Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| brand | Integer | M | Payment brand. Only 101 (WECHAT_PAY), 104 (PAY_NOW), 106 (BINANCE_PAY), 201 (CRYPTO_HOSTED) are currently supported — see note above. |
| module | Integer | M | Payment module, must match brand's module (WECHAT_PAY→5, PAY_NOW→6, BINANCE_PAY→11; CRYPTO_HOSTED→ whichever chain module the terminal's acquirer route is configured with, e.g. 1002 Ethereum, 1003 Tron, 1007 BSC). |
| processingCurrency | String | M | Currency actually paid by the end customer (payer) — e.g. the stablecoin the customer pays with for a Binance Pay transaction. Distinct from the merchant's own accounting currency. |
| totalAmount | Decimal | M | The merchant's receive amount; settled by DTC after deducting the fee (corresponds to the terminal's request currency). |
| referenceNo | String | M | Transaction idempotency key. The combination of terminalId and referenceNo must be unique among payment transactions. |
| notificationUrl | String | C | Webhook URL for payment status updates. |
| billingInfo | PersonalInfo | C | Customer billing information. |
| shippingInfo | PersonalInfo | C | Customer shipping information. |
PersonalInfo Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| firstName | String | M | |
| lastName | String | M | |
| String | M | ||
| phone | String | C | |
| country | String | M | |
| state | String | C | |
| city | String | C | |
| postcode | String | M | |
| address | String | M | |
| address2 | String | O | |
| binanceId | String | O | Binance UID. Optional even when brand=106 (BINANCE_PAY) — verified from BinancePayVerifyService.verifyPayerIfRequired, which is a no-op whenever binanceId is blank, regardless of brand. Providing it opts the transaction into Binance's payer-verification check (requires payerType); omitting it, including on a Binance Pay transaction, simply skips that check — it is never rejected as missing. |
| payerType | String | C | Required when binanceId is set. INDIVIDUAL needs firstName/lastName (already required above); CORPORATE needs companyName/registrationNumber/registrationCountry. |
| companyName | String | C | Required when payerType is CORPORATE. |
| registrationNumber | String | C | Required when payerType is CORPORATE. |
| registrationCountry | String | C | ISO 3166-1 alpha-3 (e.g. SGP). Required when payerType is CORPORATE. |
Request Body Sample (formatted)
{
"query": {
"transaction": {
"brand": 106,
"module": 11,
"processingCurrency": "USDT",
"totalAmount": 1,
"referenceNo": "88888888050",
"billingInfo": {
"firstName": "Alex",
"lastName": "Example",
"email": "alex@example.com",
"phone": "00000000",
"country": "Singapore",
"state": "Singapore",
"city": "Singapore",
"postcode": "000000",
"address": "10 Example Street",
"address2": "Example District",
"binanceId": "EXAMPLE_ACCOUNT_ID",
"payerType": "INDIVIDUAL"
},
"notificationUrl": "https://partner.example/notifications"
}
}
}Response Body Sample
{
"header": {
"success": true
},
"result": {
"id": 88888888076,
"brand": 106,
"module": 11,
"type": 71001,
"state": 0,
"settlementStatus": 0,
"merchantId": 88888888055,
"merchantName": "EXAMPLE MERCHANT",
"terminalId": 88888888051,
"requestCurrency": "SGD",
"totalAmount": 1,
"saleAmount": 1,
"serviceAmount": 0,
"serviceRate": 0,
"gstAmount": 0,
"gstRate": 0,
"tipAmount": 0,
"processingCurrency": "USDT",
"processingAmount": 0.76086,
"processingFee": 0,
"referenceNo": "88888888050",
"qr": "EXAMPLE_QR_PAYLOAD_NOT_SCANNABLE",
"createdAt": "2026-09-06 16:13:59",
"updatedAt": "2026-09-06 16:14:00"
}
}Response object fields are documented once, in Appendix A: Data Structure — see the note there on why generate-merchant-qr/query-detail/query-history all return the same object shape.
Possible Error Codes
| Code | Description | When it happens |
|---|---|---|
| 400 | Invalid parameters | binanceId present but payerType is neither INDIVIDUAL nor CORPORATE, or payerType=CORPORATE but companyName/registrationNumber/registrationCountry is missing |
| 400 | Invalid acquirer | No enabled acquirer route matches this terminal/module/brand/currency combination (e.g. an unsupported brand — see the brand-support note above) |
| 400 | Payer verification failed: | binanceId provided but Binance's payer-verification call failed or returned unverified (e.g. 400601 account does not exist, 400722 KYC not completed, 406108 rate limited) |
| 500 | Server Error | Unexpected exception (see the envelope note under Sign In) |
3.5 Query Transaction Detail
Endpoint
[POST] /payment/v1/query-detail
Description
For new integrations, query using the original referenceNo and the same D-TERMINAL-ID used to create the payment. The response uses the same object shape as Generate Merchant QR (see Appendix A).
Existing integrations can query by transactionId alone. When a request supplies transactionId, the lookup uses that ID.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| transactionId | String | O | The dtcpay-generated transaction ID. Takes precedence when supplied. |
| referenceNo | String | M | The original transaction idempotency key, scoped to the same terminalId. |
Request Body Sample (formatted)
{
"query": {
"referenceNo": "88888888050"
}
}Response Body Sample
{
"header": {
"success": true
},
"result": {
"id": 88888888077,
"brand": 201,
"module": 1002,
"type": 200,
"state": 200,
"settlementStatus": 0,
"merchantId": 88888888055,
"merchantName": "EXAMPLE MERCHANT",
"terminalId": 88888888051,
"acqTid": "EXAMPLE_ACQUIRER_TERMINAL_001",
"requestCurrency": "SGD",
"totalAmount": 1.0,
"saleAmount": 1.0,
"serviceRate": 0,
"serviceAmount": 0,
"gstRate": 0,
"gstAmount": 0,
"tipAmount": 0,
"processingCurrency": "USDT",
"processingAmount": 0.76086,
"processingFee": 0,
"exchangeRate": 1.24284,
"receiptNumber": "EXAMPLE-RECEIPT-001",
"referenceNo": "88888888066",
"cardHolderName": "Alex Example",
"secondaryAmount": 0.76086,
"createdAt": "2026-09-20 21:24:11",
"updatedAt": "2026-09-20 22:21:51"
}
}Possible Error Codes
| Code | Description | When it happens |
|---|---|---|
| 400 | Invalid request | The selected identifier matches no transaction under the signed merchant and terminal, or the request omits the lookup identifier. |
| 500 | Server Error | Unexpected exception (see the envelope note under Sign In) |
3.6 Query Transaction History
Endpoint
[POST] /payment/v1/query-history
Description
Retrieves a paginated list of past transactions, optionally filtered by QR ID, QR content, and/or brand. Each record is the same object shape as Generate Merchant QR/Query Transaction Detail — see Appendix A.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| qrId | Long | O | DTC generated unique QR ID. |
| qr | String | O | QR content the payer scans. |
| brand | Integer | O | Payment brand filter. Refer to Enum List - Brand. |
| pageSize | Integer | M | Number of records per page. |
| pageNo | Integer | M | Page number to retrieve (starting from 1). |
Request Body Sample (formatted)
{
"query": {
"brand": 201,
"qrId": 88888888027,
"qr": "EXAMPLE_QR_PAYLOAD_NOT_SCANNABLE",
"pageSize": 30,
"pageNo": 1
}
}Response Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| pagination | Object | M | Paginated wrapper — see below. |
| resultList | Array | M | Transaction records — same object as Generate Merchant QR/Query Transaction Detail, see Appendix A. |
pagination Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| current | Integer | M | Current page number. |
| size | Integer | M | Page size. |
| total | Long | M | Total record count. |
Response Body Sample
{
"header": {
"success": true
},
"pagination": {
"current": 1,
"size": 30,
"total": 2
},
"resultList": [
{
"id": 88888888077,
"brand": 201,
"type": 200,
"state": 200,
"settlementStatus": 0,
"merchantId": 88888888055,
"merchantName": "EXAMPLE MERCHANT",
"terminalId": 88888888051,
"acqTid": "EXAMPLE_ACQUIRER_TERMINAL_001",
"requestCurrency": "SGD",
"totalAmount": 1.0,
"saleAmount": 1.0,
"serviceRate": 0,
"serviceAmount": 0,
"gstRate": 0,
"gstAmount": 0,
"tipAmount": 0,
"processingCurrency": "USDT",
"processingAmount": 0.76086,
"processingFee": 0,
"receiptNumber": "EXAMPLE-RECEIPT-001",
"referenceNo": "88888888066",
"cardHolderName": "Alex Example",
"createdAt": "2026-09-20 21:24:11",
"secondaryAmount": 0.76086,
"updatedAt": "2026-09-20 22:21:51"
},
{
"id": 88888888100,
"brand": 201,
"module": 1002,
"type": 71001,
"state": 200,
"settlementStatus": 3,
"merchantId": 85888888890,
"merchantName": "EXAMPLE MERCHANT",
"terminalId": 88888888061,
"acqTid": "EXAMPLE_ACQUIRER_TERMINAL_002",
"requestCurrency": "SGD",
"totalAmount": 1,
"saleAmount": 1,
"exchangeRate": 1.24284,
"processingCurrency": "USDC",
"processingAmount": 0.81,
"processingFee": 0,
"receiptNumber": "EXAMPLE-RECEIPT-002",
"referenceNo": "88888888071",
"truncatedPan": "000000******0000",
"expiresAt": "2026-06-24 11:50:18",
"createdAt": "2026-06-24 11:45:18",
"secondaryAmount": 0.81,
"updatedAt": "2026-06-24 12:55:25",
"additionalData": {
"account": "0",
"txn_ids": "EXAMPLE_TRANSACTION_HASH",
"address_id": "88888888024",
"institution": "SAFEHERON"
}
}
]
}Possible Error Codes
| Code | Description | When it happens |
|---|---|---|
| 400 | Invalid parameters | pageSize/pageNo missing |
| 500 | Server Error | Unexpected exception (see the envelope note under Sign In) |
3.7 Generate Static QR
Endpoint
[POST] /payment/v1/generate-static-qr
Description
Creates a reusable static QR code that can be scanned for multiple payments. dtcpay checks the QR reference number within the requesting terminal. brand and module select how the QR is generated.
This endpoint currently only supports one brand:
CRYPTO_HOSTED(201). Any other brand is rejected with"Unsupported brand: <brand>".
stg 测试环境的付款方式同 Generate Merchant QR 一节的说明:仅支持以太坊测试网 + USDC,可用 https://faucet.circle.com/ 领取测试币或自己的钱包向目标地址转账。
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| referenceNo | String | M | Static QR idempotency key. The combination of terminalId and referenceNo must be unique among static QR records. |
| brand | Integer | M | Payment brand. Only 201 (CRYPTO_HOSTED) is currently supported — see note above. |
| module | Integer | M | Payment module — for the supported CRYPTO_HOSTED brand, selects the chain (e.g. 1002=Ethereum, 1003=Tron, 1007=BSC). |
Request Body Sample (formatted)
{
"query": {
"referenceNo": "88888888074",
"brand": 201,
"module": 1002
}
}Response Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| qrId | Long | M | Unique static QR ID generated by DTC. |
| qr | String | M | The QR content scanned by customers. |
| qrStatus | Integer | M | Static QR status. Refer to Enum List - StaticQrStatus. |
| brand | Integer | M | Payment brand. Refer to Enum List - Brand. |
| module | Integer | M | Payment module. Refer to Enum List - Module. |
| referenceNo | String | M | The original static QR idempotency key, scoped to the same terminalId. |
| currencies | Array | M | Currencies customers can use to pay this static QR. Refer to Enum List - Currency. |
| createdAt | String | M | Creation timestamp, yyyy-MM-dd HH:mm:ss. |
| updatedAt | String | M | Last-updated timestamp, yyyy-MM-dd HH:mm:ss. |
Response Body Sample
{
"header": {
"success": true
},
"result": {
"qrId": 88888888026,
"qrStatus": 1,
"brand": 201,
"module": 1002,
"currencies": [
"USDT",
"USDC"
],
"qr": "EXAMPLE_QR_PAYLOAD_NOT_SCANNABLE",
"referenceNo": "88888888074",
"createdAt": "2026-09-06 16:13:59",
"updatedAt": "2026-09-06 16:13:59"
}
}Possible Error Codes
| Code | Description | When it happens |
|---|---|---|
| 400 | Unsupported brand: | brand is anything other than 201 (CRYPTO_HOSTED) |
| 500 | Server Error | Unexpected exception (see the envelope note under Sign In) |
3.8 Query Static QR
Endpoint
[POST] /payment/v1/query-static-qr
Description
For new integrations, query using the original referenceNo and the same D-TERMINAL-ID used to create the static QR. The response uses the same shape as Generate Static QR.
Existing integrations can query by qrId or qr alone. When a request supplies qrId, the lookup uses that ID. If the lookup finds no matching static QR, the response indicates success and contains no QR details.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| qrId | Long | O | Unique static QR ID. Takes precedence when supplied. |
| qr | String | O | QR content. |
| referenceNo | String | M | The original static QR idempotency key, scoped to the same terminalId. |
Request Body Sample (formatted)
{
"query": {
"referenceNo": "88888888074"
}
}Response Body Sample — same shape as Generate Static QR:
{
"header": {
"success": true
},
"result": {
"qrId": 88888888026,
"qrStatus": 1,
"brand": 201,
"module": 1002,
"currencies": [
"USDT",
"USDC"
],
"qr": "EXAMPLE_QR_PAYLOAD_NOT_SCANNABLE",
"referenceNo": "88888888074",
"createdAt": "2026-09-06 16:13:59",
"updatedAt": "2026-09-06 16:13:59"
}
}Possible Error Codes
| Code | Description | When it happens |
|---|---|---|
| 400 | Invalid request | The request omits a lookup identifier (qrId, qr, or referenceNo). |
| 500 | Server Error | Unexpected exception (see the envelope note under Sign In) |
4 Notification
Using the transactionId, terminalId, and merchantId inside the GET parameters of the notification, callers can further query and verify trading results. Key points:
- It is a GET request toward
notify_url(thenotificationUrlgiven in the originating request). - A webhook fires whenever a transaction's status or amount changes. On receipt, callers are recommended to call Query Transaction Detail to verify the latest transaction details rather than trusting the GET params alone.
- Acknowledgement: respond with any HTTP 2xx status to acknowledge receipt. The response body is ignored.
- Retry: a non-2xx response, timeout or connection error is retried up to 6 times, after 15s, 30s, 1m, 2m, 4m and 8m (about 16 minutes in total). After that the notification is no longer sent.
- Idempotency: the same notification may be delivered more than once (retry, or multiple state changes). Process notifications idempotently and query the latest transaction details on receipt; an amount change may occur without a change of state.
- The result is in GET-formatted query params:
https://partner.example/notifications?transactionId=88888888075&merchantId=88888888057&terminalId=88888888052&referenceNo=88888888075&state=200| Key | Type | Description |
|---|---|---|
| transactionId | Long | Unique DTC generated transaction ID. |
| terminalId | Long | DTC terminal ID assigned to the merchant. |
| merchantId | Long | Unique merchant ID generated by DTC for the merchant. |
| referenceNo | String | The original transaction reference under the notification’s terminalId. |
| state | Integer | Payment transaction state. Refer to Enum List - PaymentTransactionState. |
5 Appendix A: Data Structure
PaymentTransactionResp — the single shared object returned by Generate Merchant QR, Query Transaction Detail, and each item of Query Transaction History's resultList.
Previously these three endpoints each defined their own separate response class with a silently drifting field set (e.g. query-history's records were missing qrId; generate-merchant-qr's response was missing acqTid/receiptNumber/truncatedPan/expiresAt). They are now the same object — some fields are naturally null depending on the transaction's stage (e.g. acqTid/receiptNumber are null until an acquirer route has processed the transaction; qrId/qr are only present for QR-based brands; truncatedPan/cardHolderName only for credit-card-brand transactions).
| Name | Type | Required | Description |
|---|---|---|---|
| id | Long | M | The DTC generated unique transaction-id. |
| brand | Integer | M | Payment brand. Refer to Enum List - Brand. |
| module | Integer | O | Payment module. Refer to Enum List - Module. |
| type | Integer | M | Transaction type. Refer to Enum List - PaymentTransactionType. |
| state | Integer | M | Payment transaction state. Refer to Enum List - PaymentTransactionState. |
| settlementStatus | Integer | M | Settlement status. Refer to Enum List - SettlementStatus. |
| merchantId | Long | M | The merchant ID generated by DTC system for merchant. |
| merchantName | String | M | The merchant's own name. |
| terminalId | Long | M | The terminal ID generated by DTC system for merchant. |
| acqTid | String | O | The acqTid generated by DTC system for merchant. Null until an acquirer route has processed the transaction. |
| requestCurrency | String | M | Currency of the merchant transaction (the merchant's own accounting currency). |
| totalAmount | Decimal | M | Total amount of payer transactions (saleAmount+serviceAmount+gstAmount+tipAmount = totalAmount). The merchant's receive amount, settled by DTC after deducting the fee (corresponds to the terminal's request currency). |
| saleAmount | Decimal | O | Price of goods. |
| serviceAmount | Decimal | O | Service fee amount. |
| serviceRate | Decimal | O | Service fee exchange rate. |
| gstAmount | Decimal | O | GST amount. |
| gstRate | Decimal | O | GST rate. |
| tipAmount | Decimal | O | Tips included in the transaction. |
| processingCurrency | String | M | Currency actually paid by the end customer (payer) — the settlement-facing leg of the transaction, distinct from requestCurrency. |
| processingAmount | Decimal | M | Amount actually paid by the end customer (payer) in processingCurrency — the FX-converted counterpart of totalAmount that the payer sees and pays. |
| processingFee | Decimal | O | Processing fee. |
| exchangeRate | Decimal | O | Exchange rate between requestCurrency and processingCurrency. |
| receiptNumber | String | O | Receipt number. Null until the transaction has a settled receipt. |
| referenceNo | String | M | Transaction idempotency key. The combination of terminalId and referenceNo must be unique among payment transactions. |
| truncatedPan | String | O | Only present for credit-card-brand transactions. |
| cardHolderName | String | O | Card holder name, only present for credit-card-brand transactions. |
| secondaryAmount | Decimal | O | Secondary amount. |
| qrId | Long | O | The DTC generated unique qr-id. Only present for QR-based brands. |
| qr | String | O | The payer scans this to initiate payment. Only present for QR-based brands. |
| createdAt | String | M | The date-time when the request is received or created, yyyy-MM-dd HH:mm:ss. |
| updatedAt | String | M | The datetime when the response was last updated, yyyy-MM-dd HH:mm:ss. |
| expiresAt | String | O | Transaction expiry time, yyyy-MM-dd HH:mm:ss. Only present for brands/modules with a payment-page/QR timeout. |
| additionalData | Object | O | Additional channel-specific transaction data (free-form key/value map). |
| amountDetails | Array | O | Amount breakdown details: each entry has serviceFeeAmount, gstAmount, tipAmount, rate, currency. |
6 Appendix B: Enum List
Brand
| Name | ID | Descriptor |
|---|---|---|
| UNDEFINED | 0 | Undefined |
| VISA | 1 | Visa |
| MASTERCARD | 2 | MasterCard |
| AMEX | 3 | American Express |
| JCB | 4 | JCB |
| DINERS | 5 | Diners Club |
| DISCOVER | 6 | Discover |
| CUP | 7 | China UnionPay |
| WECHATPAY | 101 | WeChat Pay |
| ALIPAY | 102 | Alipay |
| GRABPAY | 103 | GrabPay |
| PAYNOW | 104 | PayNow |
| QUICKPASS | 105 | QuickPass |
| BINANCE_PAY | 106 | Binance Pay |
| CRYPTO_HOSTED | 201 | Crypto Hosted |
Module
| Name | ID | Descriptor |
|---|---|---|
| 5 | ||
| CIMB | 6 | CIMB (PayNow) |
| WORLDPAY | 8 | Worldpay |
| GOOGLE_PAY | 9 | Google Pay |
| SAMSUNG_PAY | 10 | Samsung Pay |
| BINANCE_PAY | 11 | Binance Pay |
| ETHEREUM | 1002 | Ethereum |
| TRON | 1003 | Tron |
| BSC | 1007 | BNB Smart Chain |
| BASE | 1008 | Base |
| SOLANA | 1009 | Solana |
| ARBITRUM | 1010 | Arbitrum |
| DTCPAY | 5001 | dtcpay |
Currency
| Name | ID | Category | Code | Descriptor |
|---|---|---|---|---|
| AUD | 1 | 0 | 036 | Australian dollar |
| CNY | 2 | 0 | 156 | Chinese yuan |
| EUR | 3 | 0 | 978 | Euro |
| HKD | 4 | 0 | 344 | Hong Kong dollar |
| JPY | 5 | 0 | 392 | Japanese yen |
| SGD | 6 | 0 | 702 | Singapore dollar |
| USD | 7 | 0 | 840 | United States dollar |
| USDT | 8 | 1 | null | USD Tether |
| BTC | 9 | 1 | null | Bitcoin |
| ETH | 10 | 1 | null | Ethereum |
| TRX | 11 | 1 | null | Tron |
| GBP | 12 | 0 | 826 | Pound sterling |
| WUSD | 13 | 1 | null | Worldwide USD |
| USDC | 14 | 1 | null | USD Coin |
CurrencyCategory
| Name | ID | Descriptor |
|---|---|---|
| FIAT | 0 | Fiat Currency |
| CRYPTO | 1 | Crypto Currency |
| E_MONEY | 2 | e-Money Currency |
SettlementStatus
| Name | ID | Descriptor |
|---|---|---|
| PENDING | 0 | Pending |
| ACQ_SETTLED | 1 | Acquirer Settled |
| APPROVED | 2 | Settlement Approved |
| PAID | 3 | Settlement Paid |
| SUBMITTED | 6 | Settlement Submitted |
| REJECTED | 8 | Settlement Rejected |
PaymentTransactionState
| Name | ID | Descriptor |
|---|---|---|
| PENDING | 0 | Pending |
| AUTHORIZED | 101 | Authorized |
| PARTIAL_PAYMENT | 103 | Partial Payment |
| SUCCESS | 200 | Success |
| CAPTURED | 221 | Captured |
| REVERSED | 301 | Reversed |
| CANCELLED | 302 | Cancelled |
| REFUNDED | 401 | Refunded |
| DENIED | 900 | Denied |
| EXPIRED | 990 | Expired |
PaymentTransactionType
| Name | ID | Descriptor |
|---|---|---|
| TOKENIZE | 0 | Tokenize |
| AUTHORIZATION | 100 | Authorization |
| SALE | 200 | Sale |
| CAPTURE | 220 | Capture |
| VOID | 300 | Void |
| REFUNDED | 400 | Refund (refund open API is not currently available; operated via the DTC business portal) |
| MERCHANT_DYNAMIC_QR | 71001 | Merchant Dynamic QR |
| CONSUMER_QR | 72001 | Consumer QR |
| STATIC_QR | 72002 | Static QR |
StaticQrStatus
| Name | ID | Descriptor |
|---|---|---|
| DISABLED | 1 | Disabled |
| ENABLED | 2 | Enabled |