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 Management page.
  • 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

  1. Request account registration on the DTC Wallet platform.
  2. Log in and go to the API Key Management page.
  3. 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.
  4. The Sign Key is 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.

  1. 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) + Body

    GET without query parameters — Sign In

    GET1636360576641/payment/v1/sign-in

    POST with a JSON body — Query Transaction Detail

    POST1636360661729/payment/v1/query-detail{"query":{"referenceNo":"88888888050"}}
  2. Compute HMAC-SHA512 using the terminal's Sign Key and Base64-encode the output bytes.

  3. Send D-MERCHANT-ID, D-TERMINAL-ID, D-TIMESTAMP and D-SIGNATURE with the request. Set Content-Type: application/json for 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. brand and module select 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

NameTypeRequiredDescription
merchantIdLongMThe merchant ID generated by DTC system for merchant.
merchantInfoObjectMThe merchant's information — see below.
terminalIdLongMThe terminal ID generated by DTC system for merchant. Multiple terminal routes can be added to a terminal ID.
requestCurrencyStringMThe terminal's own accounting currency.
cryptoTravelRuleBooleanOWhether Travel Rule data collection applies to this terminal's crypto transactions.
channelsArrayMThe payment channels (brand + module + currency combinations) available to this terminal.

merchantInfo Parameters

NameTypeDescription
nameStringMerchant name.
countryStringMerchant country.
cityStringMerchant city.
stateStringMerchant state.
postalCodeStringMerchant postal code.
addressStringMerchant address line.

Channel Parameters

NameTypeRequiredDescription
brandIntegerMPayment brand for this channel. Refer to Enum List - Brand.
processingCurrencyStringMCurrency the payer pays in on this channel.
moduleIntegerMPayment 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

CodeDescriptionWhen it happens
500Server ErrorUnexpected 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

NameTypeRequiredDescription
transactionObjectMTransaction details, see below.
redirectUrlStringCURL DTC redirects the customer to once a final result has been received from bank/acquirer.

Transaction Request Parameters

NameTypeRequiredDescription
totalAmountDecimalMThe merchant's receive amount; settled by DTC after deducting the fee (corresponds to the terminal's request currency). Must be > 0.
saleAmountDecimalCThe original price of goods or services.
serviceFeeAmountDecimalCService fee amount (if provided, saleAmount must also be filled).
gstAmountDecimalCGoods and Services Tax amount (if provided, saleAmount must also be filled).
tipAmountDecimalCThe voluntary tip given by the customer (if provided, saleAmount must also be filled).
referenceNoStringMTransaction idempotency key. The combination of terminalId and referenceNo must be unique among payment transactions.
billingInfoPersonalInfoCBilling info.
shippingInfoPersonalInfoCShipping info.
notificationUrlStringCWebhook URL for transaction state update notifications — see Notification.

PersonalInfo Parameters

NameTypeRequired
firstNameStringM
lastNameStringM
emailStringM
phoneStringC
countryStringM
stateStringC
cityStringC
postcodeStringM
addressStringM
address2StringO

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

NameTypeRequiredDescription
pageUrlStringMURL of the generated payment page where the merchant should redirect the customer.
timeoutLongMUnix 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

CodeDescriptionWhen it happens
400Bad Request / Invalid parameterstotalAmount <= 0
500Server ErrorUnexpected 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), and CRYPTO_HOSTED (201). Any other brand — including CRYPTO_UNHOSTED (200) — is rejected with Invalid acquirer.

用 crypto currency 支付(stg 测试环境):目前测试环境的 CRYPTO_HOSTED 仅支持以太坊(测试网)+ USDC 币种。可以通过 https://faucet.circle.com/ 领取测试 USDC 后,用自己的钱包(如 MetaMask)向本接口返回的 QR 收款地址转账完成付款;也可以直接用自己已有的测试网钱包向目标地址转账,效果相同。

Top-level Request Parameters

NameTypeRequiredDescription
transactionObjectMTransaction details, see below.

Transaction Request Parameters

NameTypeRequiredDescription
brandIntegerMPayment brand. Only 101 (WECHAT_PAY), 104 (PAY_NOW), 106 (BINANCE_PAY), 201 (CRYPTO_HOSTED) are currently supported — see note above.
moduleIntegerMPayment 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).
processingCurrencyStringMCurrency 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.
totalAmountDecimalMThe merchant's receive amount; settled by DTC after deducting the fee (corresponds to the terminal's request currency).
referenceNoStringMTransaction idempotency key. The combination of terminalId and referenceNo must be unique among payment transactions.
notificationUrlStringCWebhook URL for payment status updates.
billingInfoPersonalInfoCCustomer billing information.
shippingInfoPersonalInfoCCustomer shipping information.

PersonalInfo Parameters

NameTypeRequiredDescription
firstNameStringM
lastNameStringM
emailStringM
phoneStringC
countryStringM
stateStringC
cityStringC
postcodeStringM
addressStringM
address2StringO
binanceIdStringOBinance 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.
payerTypeStringCRequired when binanceId is set. INDIVIDUAL needs firstName/lastName (already required above); CORPORATE needs companyName/registrationNumber/registrationCountry.
companyNameStringCRequired when payerType is CORPORATE.
registrationNumberStringCRequired when payerType is CORPORATE.
registrationCountryStringCISO 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

CodeDescriptionWhen it happens
400Invalid parametersbinanceId present but payerType is neither INDIVIDUAL nor CORPORATE, or payerType=CORPORATE but companyName/registrationNumber/registrationCountry is missing
400Invalid acquirerNo enabled acquirer route matches this terminal/module/brand/currency combination (e.g. an unsupported brand — see the brand-support note above)
400Payer 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)
500Server ErrorUnexpected 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

NameTypeRequiredDescription
transactionIdStringOThe dtcpay-generated transaction ID. Takes precedence when supplied.
referenceNoStringMThe 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

CodeDescriptionWhen it happens
400Invalid requestThe selected identifier matches no transaction under the signed merchant and terminal, or the request omits the lookup identifier.
500Server ErrorUnexpected 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

NameTypeRequiredDescription
qrIdLongODTC generated unique QR ID.
qrStringOQR content the payer scans.
brandIntegerOPayment brand filter. Refer to Enum List - Brand.
pageSizeIntegerMNumber of records per page.
pageNoIntegerMPage 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

NameTypeRequiredDescription
paginationObjectMPaginated wrapper — see below.
resultListArrayMTransaction records — same object as Generate Merchant QR/Query Transaction Detail, see Appendix A.

pagination Parameters

NameTypeRequiredDescription
currentIntegerMCurrent page number.
sizeIntegerMPage size.
totalLongMTotal 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

CodeDescriptionWhen it happens
400Invalid parameterspageSize/pageNo missing
500Server ErrorUnexpected 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

NameTypeRequiredDescription
referenceNoStringMStatic QR idempotency key. The combination of terminalId and referenceNo must be unique among static QR records.
brandIntegerMPayment brand. Only 201 (CRYPTO_HOSTED) is currently supported — see note above.
moduleIntegerMPayment 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

NameTypeRequiredDescription
qrIdLongMUnique static QR ID generated by DTC.
qrStringMThe QR content scanned by customers.
qrStatusIntegerMStatic QR status. Refer to Enum List - StaticQrStatus.
brandIntegerMPayment brand. Refer to Enum List - Brand.
moduleIntegerMPayment module. Refer to Enum List - Module.
referenceNoStringMThe original static QR idempotency key, scoped to the same terminalId.
currenciesArrayMCurrencies customers can use to pay this static QR. Refer to Enum List - Currency.
createdAtStringMCreation timestamp, yyyy-MM-dd HH:mm:ss.
updatedAtStringMLast-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

CodeDescriptionWhen it happens
400Unsupported brand: brand is anything other than 201 (CRYPTO_HOSTED)
500Server ErrorUnexpected 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

NameTypeRequiredDescription
qrIdLongOUnique static QR ID. Takes precedence when supplied.
qrStringOQR content.
referenceNoStringMThe 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

CodeDescriptionWhen it happens
400Invalid requestThe request omits a lookup identifier (qrId, qr, or referenceNo).
500Server ErrorUnexpected 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 (the notificationUrl given 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
KeyTypeDescription
transactionIdLongUnique DTC generated transaction ID.
terminalIdLongDTC terminal ID assigned to the merchant.
merchantIdLongUnique merchant ID generated by DTC for the merchant.
referenceNoStringThe original transaction reference under the notification’s terminalId.
stateIntegerPayment 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).

NameTypeRequiredDescription
idLongMThe DTC generated unique transaction-id.
brandIntegerMPayment brand. Refer to Enum List - Brand.
moduleIntegerOPayment module. Refer to Enum List - Module.
typeIntegerMTransaction type. Refer to Enum List - PaymentTransactionType.
stateIntegerMPayment transaction state. Refer to Enum List - PaymentTransactionState.
settlementStatusIntegerMSettlement status. Refer to Enum List - SettlementStatus.
merchantIdLongMThe merchant ID generated by DTC system for merchant.
merchantNameStringMThe merchant's own name.
terminalIdLongMThe terminal ID generated by DTC system for merchant.
acqTidStringOThe acqTid generated by DTC system for merchant. Null until an acquirer route has processed the transaction.
requestCurrencyStringMCurrency of the merchant transaction (the merchant's own accounting currency).
totalAmountDecimalMTotal 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).
saleAmountDecimalOPrice of goods.
serviceAmountDecimalOService fee amount.
serviceRateDecimalOService fee exchange rate.
gstAmountDecimalOGST amount.
gstRateDecimalOGST rate.
tipAmountDecimalOTips included in the transaction.
processingCurrencyStringMCurrency actually paid by the end customer (payer) — the settlement-facing leg of the transaction, distinct from requestCurrency.
processingAmountDecimalMAmount actually paid by the end customer (payer) in processingCurrency — the FX-converted counterpart of totalAmount that the payer sees and pays.
processingFeeDecimalOProcessing fee.
exchangeRateDecimalOExchange rate between requestCurrency and processingCurrency.
receiptNumberStringOReceipt number. Null until the transaction has a settled receipt.
referenceNoStringMTransaction idempotency key. The combination of terminalId and referenceNo must be unique among payment transactions.
truncatedPanStringOOnly present for credit-card-brand transactions.
cardHolderNameStringOCard holder name, only present for credit-card-brand transactions.
secondaryAmountDecimalOSecondary amount.
qrIdLongOThe DTC generated unique qr-id. Only present for QR-based brands.
qrStringOThe payer scans this to initiate payment. Only present for QR-based brands.
createdAtStringMThe date-time when the request is received or created, yyyy-MM-dd HH:mm:ss.
updatedAtStringMThe datetime when the response was last updated, yyyy-MM-dd HH:mm:ss.
expiresAtStringOTransaction expiry time, yyyy-MM-dd HH:mm:ss. Only present for brands/modules with a payment-page/QR timeout.
additionalDataObjectOAdditional channel-specific transaction data (free-form key/value map).
amountDetailsArrayOAmount breakdown details: each entry has serviceFeeAmount, gstAmount, tipAmount, rate, currency.

6 Appendix B: Enum List

Brand

NameIDDescriptor
UNDEFINED0Undefined
VISA1Visa
MASTERCARD2MasterCard
AMEX3American Express
JCB4JCB
DINERS5Diners Club
DISCOVER6Discover
CUP7China UnionPay
WECHATPAY101WeChat Pay
ALIPAY102Alipay
GRABPAY103GrabPay
PAYNOW104PayNow
QUICKPASS105QuickPass
BINANCE_PAY106Binance Pay
CRYPTO_HOSTED201Crypto Hosted

Module

NameIDDescriptor
WECHAT5WeChat
CIMB6CIMB (PayNow)
WORLDPAY8Worldpay
GOOGLE_PAY9Google Pay
SAMSUNG_PAY10Samsung Pay
BINANCE_PAY11Binance Pay
ETHEREUM1002Ethereum
TRON1003Tron
BSC1007BNB Smart Chain
BASE1008Base
SOLANA1009Solana
ARBITRUM1010Arbitrum
DTCPAY5001dtcpay

Currency

NameIDCategoryCodeDescriptor
AUD10036Australian dollar
CNY20156Chinese yuan
EUR30978Euro
HKD40344Hong Kong dollar
JPY50392Japanese yen
SGD60702Singapore dollar
USD70840United States dollar
USDT81nullUSD Tether
BTC91nullBitcoin
ETH101nullEthereum
TRX111nullTron
GBP120826Pound sterling
WUSD131nullWorldwide USD
USDC141nullUSD Coin

CurrencyCategory

NameIDDescriptor
FIAT0Fiat Currency
CRYPTO1Crypto Currency
E_MONEY2e-Money Currency

SettlementStatus

NameIDDescriptor
PENDING0Pending
ACQ_SETTLED1Acquirer Settled
APPROVED2Settlement Approved
PAID3Settlement Paid
SUBMITTED6Settlement Submitted
REJECTED8Settlement Rejected

PaymentTransactionState

NameIDDescriptor
PENDING0Pending
AUTHORIZED101Authorized
PARTIAL_PAYMENT103Partial Payment
SUCCESS200Success
CAPTURED221Captured
REVERSED301Reversed
CANCELLED302Cancelled
REFUNDED401Refunded
DENIED900Denied
EXPIRED990Expired

PaymentTransactionType

NameIDDescriptor
TOKENIZE0Tokenize
AUTHORIZATION100Authorization
SALE200Sale
CAPTURE220Capture
VOID300Void
REFUNDED400Refund (refund open API is not currently available; operated via the DTC business portal)
MERCHANT_DYNAMIC_QR71001Merchant Dynamic QR
CONSUMER_QR72001Consumer QR
STATIC_QR72002Static QR

StaticQrStatus

NameIDDescriptor
DISABLED1Disabled
ENABLED2Enabled