API Reference

Partner-Managed Card Issuing API

Card issuing, partner-driven authorization webhooks, and Master Settlement Account settlement.

Example data is synthetic. IDs, credentials and personal details are for documentation. Replace them with values assigned to your Sandbox integration.

1. Introduction

Overview

The Partner-Managed Card Issuing API connects DTC's card issuing infrastructure to the partner's authorization system.

  • DTC provides card issuing infrastructure, eKYC capability and settlement services.
  • The partner issues and manages cards through dtcpay, manages cardholder balances and makes real-time card authorization decisions.
  • The partner pre-funds a Master Settlement Account (MSA) with DTC.

Security standards

Use HTTPS with TLS 1.2 or later.

Start by applying for and activating a card through the Partner-to-DTC card APIs. Integrate the card transaction callbacks to authorize and track activity on issued cards.

2. Partner-to-DTC card APIs

Call these endpoints from your system to apply for, activate and manage cards on dtcpay. dtcpay returns the result of each call. Keep the card ID for subsequent card operations.

API base URLs

Append the endpoint path to the base URL for your environment. Use the same base URL for OAuth token requests and partner query APIs.

EnvironmentBase URL
Productionhttps://open-api.dtcpay.com
Sandbox (SBX)https://open-api.sbx.dtcpayment.net

Request and response formats

In request tables, M means mandatory, O means optional and C means conditional.

Send the card and cardholder fields for POST and PUT endpoints in the JSON query object. For paged POST endpoints, send page alongside query. For GET endpoints, put the required identifier in the path and send an empty body.

FieldJSON typeDescription
queryObjectEndpoint-specific request fields. See the endpoint for required values.
pageObjectPagination settings for endpoints that accept them. current is the page number and size is the page size.
{"query":{"cardId":88888888041}}

Read header.success to determine the outcome. Use a JSON parser that preserves 64-bit integer precision for IDs. Optional response fields may be omitted.

FieldJSON typeDescription
header.successBooleanIndicates whether dtcpay processed the request successfully.
header.errCodeStringError code on failure. Leading zeros are significant.
header.errMsgStringError description on failure.
resultObjectData returned by a single-object endpoint. An acknowledgment-only response returns header.
resultListArrayRecords returned by a list endpoint.
paginationObjectPagination metadata returned by a paged list endpoint.
{"header":{"success":true},"result":{"cardId":88888888041,"status":1}}
{"header":{"success":false,"errCode":"31005","errMsg":"Invalid card information"}}

Partner-to-DTC API signing

Obtain an access token and use the Sign Key associated with your API credential. OAuth 2.0 authentication

  1. Build the string to sign from the following values in order.

    • Method is the uppercase HTTP method.
    • Timestamp is the Unix time in milliseconds used in D-TIMESTAMP. Use a timestamp within two minutes of dtcpay server time.
    • Path is the request path with path parameters substituted. Use the scheme and host only in the HTTP request URL.
    • Query string starts with ? when present. Preserve the exact parameter order and percent encoding.
    • Body is the exact UTF-8 request body. Use an empty string when there is no body. Preserve the JSON whitespace and key order.
    Method + Timestamp + Path + ("?" + RawQuery if present) + Body

    GET without query parameters — Inquire about a card by application reference

    GET1780444800000/card/v1/inquiry-info/REF123

    POST with a JSON body — Freeze a card

    POST1780444800000/card/v1/freeze{"query":{"cardId":88888888041}}
  2. Compute HMAC-SHA512 with your Sign Key and Base64-encode the result. The POST example above produces HUEnlKDNaHZNn8cxMY7sPWhcOD7kI6hXL2ZSoIoNjSHhtaL7bPqLqFJXl5bywF+wfhVVlHosLsFlZWn6Zu/bcw== with the fictitious key example-sign-key. Generate a fresh timestamp for each actual request.

  3. Attach the request headers.

HeaderRequiredValue
AuthorizationMBearer <access_token>.
D-TIMESTAMPMThe timestamp used in the signing input.
D-SIGNATUREMThe Base64-encoded signature.
Content-TypeCRequired for requests with a JSON body. Use application/json.
D-SUB-ACCOUNT-IDCThe linked card client ID when acting on behalf of a sub-account.
DTC-MFA-DataCMFA data for applicable requests. MFA requirements

Signing example (Java)

Set DTC_SIGN_KEY to your Sign Key. Send the printed timestamp and signature as request headers. For the POST, send the body string as shown.

import java.nio.charset.StandardCharsets;
import java.util.Base64;
import java.util.Objects;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;

public class PartnerCardSignatureExample {
    public static void main(String[] args) throws Exception {
        String signKey = Objects.requireNonNull(System.getenv("DTC_SIGN_KEY"), "Set DTC_SIGN_KEY");
        sign("GET", "/card/v1/inquiry-info/REF123", "", "", signKey);

        String body = "{\"query\":{\"cardId\":88888888041}}";
        sign("POST", "/card/v1/freeze", "", 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("D-TIMESTAMP: " + timestamp);
        System.out.println("D-SIGNATURE: " + signature);
    }
}

MFA requirements

dtcpay can enable or disable API MFA for each institution. When API MFA is enabled, include a valid DTC-MFA-Data header for completed face authentication when acting on behalf of a sub-account identified by D-SUB-ACCOUNT-ID on the card application, activation, set PIN, reset PIN and sensitive card information endpoints. Poll for the face-authentication result and use the token returned on success as the face-authentication proof in the header. See the individual endpoint for any OTP requirements.

Build the header value as the operation code followed by :1, and the face-authentication token. The following example is for a card application.

DTC-MFA-Data: 3:1,<face-authentication-token>
Card operationOperation code
Apply for a card3
Activate a card4
Set a card PIN5
Reset a card PIN6
Inquire about sensitive card information7

2.1 Apply for a card

POST /card/v1/apply

Submit a virtual or physical card application for a linked card client. The partner must have a base-currency MSA and a configured card webhook. Save the application reference and the returned card ID to look up the card later. After a duplicate submission, check the existing application by its reference or card ID. The MFA requirements above apply.

dtcpay checks for duplicate card applications within a 1-second window.

Request body fields

FieldJSON typeRequiredDescription
query.referenceNoStringMIdempotency key unique to the combination of the effective clientId and referenceNo for card applications.
query.settlementModeStringMSet to MSA_DELEGATED. This value is required for Partner-Managed Card Issuing.
query.productCodeStringMCard product code assigned by DTC.
query.cardMaterialIntegerM1 metal, 2 plastic, 3 virtual.
query.currencyStringMISO 4217 card currency, such as SGD.
query.firstNameStringMCardholder given name, up to 25 characters.
query.lastNameStringMCardholder family name, up to 25 characters.
query.preferredPrintedNameStringCRequired for physical cards. Name to print on the card, up to 25 characters.
query.emailStringMEmail associated with the card.
query.mobileObjectMMobile number associated with the card.
query.mobile.countryCodeStringMInternational calling code, such as 65.
query.mobile.numberStringMPhone number without the calling code.
query.deliveryAddressObjectCRequired for physical cards. Shipping address. Address fields below apply when this object is supplied.
query.deliveryAddress.countryStringCRequired when supplying query.deliveryAddress. ISO 3166-1 alpha-3 destination country.
query.deliveryAddress.stateStringOState or province, up to 40 characters.
query.deliveryAddress.cityStringCRequired when supplying query.deliveryAddress. City, up to 40 characters.
query.deliveryAddress.districtStringODistrict, up to 40 characters.
query.deliveryAddress.address1StringCRequired when supplying query.deliveryAddress. First address line, up to 40 characters.
query.deliveryAddress.address2StringOSecond address line, up to 40 characters.
query.deliveryAddress.address3StringOAdditional address line.
query.deliveryAddress.postalStringCRequired when supplying query.deliveryAddress. Postal code, up to 10 characters.
query.deliveryAddress.fullNameStringORecipient name, up to 60 characters. Defaults to the cardholder name.
query.deliveryAddress.phoneNumberStringORecipient phone number. Defaults to the cardholder mobile.
query.cardFeeDetailsArrayOWallet-funded application or delivery charges, when applicable.
query.cardFeeDetails[].typeIntegerCRequired for each entry in query.cardFeeDetails. Fee category. 1 application fee or 2 delivery fee.
query.cardFeeDetails[].amountNumberCRequired for each entry in query.cardFeeDetails. Fee amount.
query.cardFeeDetails[].currencyStringCRequired for each entry in query.cardFeeDetails. ISO 4217 currency of the charge.
query.autoDebitEnabledIntegerO0 off (default), 1 on.

Request example

{
  "query": {
    "referenceNo": "EXAMPLE-REF-013",
    "settlementMode": "MSA_DELEGATED",
    "productCode": "EXAMPLE_PRODUCT",
    "cardMaterial": 3,
    "currency": "SGD",
    "firstName": "Alex",
    "lastName": "Example",
    "email": "alex@example.com",
    "mobile": {
      "countryCode": "65",
      "number": "00000000"
    }
  }
}

Successful response

FieldJSON typeDescription
result.cardIdLongDTC ID of the card created or resolved by the application.
result.statusIntegerCurrent card status. A virtual card returns 1 (activated) immediately after successful issuance. A physical card returns 99 (pending approval). dtcpay issues the physical card after approving the application.
{
  "header": {
    "success": true
  },
  "result": {
    "cardId": 88888888041,
    "status": 1
  }
}

Endpoint-specific errors include 31001 for an unavailable product configuration, 31055 for insufficient funds for an applicable card fee, and 31057 for a mainland China delivery address. If the partner's MSA or card webhook is missing, the response returns 31999 with the configuration error in header.errMsg.

2.2 Inquire about a card by application reference

GET /card/v1/inquiry-info/{referenceNo}

Look up the card associated with the reference used in the application.

Path parameter

FieldJSON typeRequiredDescription
referenceNoStringMOriginal application reference. Look up the card under the same effective clientId used to apply.

Example request path GET /card/v1/inquiry-info/EXAMPLE-REF-013. This request uses an empty body.

Successful response

FieldJSON typeDescription
result.cardIdLongDTC card ID.
result.referenceNoStringOriginal application reference supplied when applying for the card.
result.statusIntegerCurrent card status ID. See Card status.
result.clientIdLongID of the card client.
result.cardholderNameStringName on the cardholder record.
result.truncatedCardNumberStringMasked card number, when available.
result.currencyStringCard currency.
result.cardBrandInteger1 Visa, 2 Mastercard.
result.cardMaterialInteger1 metal, 2 plastic, 3 virtual.
result.preferredPrintedNameStringPreferred name printed on a physical card.
result.mobileNumberStringMobile number associated with the card.
result.emailStringEmail associated with the card.
result.pinEnabledBooleanIndicates whether a card PIN is set.
result.autoDebitEnabledBooleanIndicates whether auto-debit is enabled.
result.cardLimitEnabledBooleanIndicates whether card spending limits are enabled.
result.transactionLimitNumberPer-transaction limit, when enabled.
result.monthlyLimitNumberMonthly limit, when enabled.
result.productCodeStringDTC card product code.
result.trackingNoStringShipment tracking reference, when assigned.
result.createdAtStringCard record creation time.
result.issuedDateStringIssuance date, when available.
result.activationDateStringActivation time, when available.
result.deliveryAddressObjectDelivery address for physical cards, when present. It can include country, state, city, district, address1, address2, address3 and postal.
{
  "header": {
    "success": true
  },
  "result": {
    "cardId": 88888888041,
    "referenceNo": "EXAMPLE-REF-013",
    "status": 1,
    "clientId": 85888888901,
    "cardholderName": "Alex Example",
    "truncatedCardNumber": "000000******0000",
    "currency": "SGD",
    "cardBrand": 1,
    "cardMaterial": 3,
    "pinEnabled": false,
    "productCode": "EXAMPLE_PRODUCT"
  }
}

Endpoint-specific errors include 31005 for invalid or unavailable card information.

2.3 Inquire about a card by ID

GET /card/v1/inquiry-info/by-id/{cardId}

Look up a card using the DTC card ID.

Path parameter

FieldJSON typeRequiredDescription
cardIdLongMDTC ID returned by the card application.

Example request path GET /card/v1/inquiry-info/by-id/88888888041. This request uses an empty body.

Successful response

FieldJSON typeDescription
result.cardIdLongDTC card ID.
result.referenceNoStringOriginal application reference supplied when applying for the card.
result.statusIntegerCurrent card status ID. See Card status.
result.clientIdLongID of the card client.
result.cardholderNameStringName on the cardholder record.
result.truncatedCardNumberStringMasked card number, when available.
result.currencyStringCard currency.
result.cardBrandInteger1 Visa, 2 Mastercard.
result.cardMaterialInteger1 metal, 2 plastic, 3 virtual.
result.preferredPrintedNameStringPreferred name printed on a physical card.
result.mobileNumberStringMobile number associated with the card.
result.emailStringEmail associated with the card.
result.pinEnabledBooleanIndicates whether a card PIN is set.
result.autoDebitEnabledBooleanIndicates whether auto-debit is enabled.
result.cardLimitEnabledBooleanIndicates whether card spending limits are enabled.
result.transactionLimitNumberPer-transaction limit, when enabled.
result.monthlyLimitNumberMonthly limit, when enabled.
result.productCodeStringDTC card product code.
result.trackingNoStringShipment tracking reference, when assigned.
result.createdAtStringCard record creation time.
result.issuedDateStringIssuance date, when available.
result.activationDateStringActivation time, when available.
result.deliveryAddressObjectDelivery address for physical cards, when present. It can include country, state, city, district, address1, address2, address3 and postal.
{
  "header": {
    "success": true
  },
  "result": {
    "cardId": 88888888041,
    "referenceNo": "EXAMPLE-REF-013",
    "status": 1,
    "clientId": 85888888901,
    "cardholderName": "Alex Example",
    "truncatedCardNumber": "000000******0000",
    "currency": "SGD",
    "cardBrand": 1,
    "cardMaterial": 3,
    "pinEnabled": false,
    "productCode": "EXAMPLE_PRODUCT"
  }
}

Endpoint-specific errors include 31005 for invalid or unavailable card information.

2.4 Cancel a physical card application

POST /card/v1/cancel

Cancel an eligible physical card application.

Request body fields

FieldJSON typeRequiredDescription
query.cardIdLongMDTC ID of the card.

Request example

{
  "query": {
    "cardId": 88888888041
  }
}

Successful response

{
  "header": {
    "success": true
  }
}

Endpoint-specific errors include 31005 for invalid or unavailable card information, 31027 for a failed cancellation.

2.5 Send a card activation OTP

POST /card/v1/otp/activate-card

Send a one-time password using the selected contact method registered on a card eligible for activation.

Request body fields

FieldJSON typeRequiredDescription
query.cardIdLongMDTC ID of the card.
query.otpTypeIntegerM1 for email or 2 for SMS.

Request example

{
  "query": {
    "cardId": 88888888041,
    "otpType": 1
  }
}

Successful response

{
  "header": {
    "success": true
  }
}

Endpoint-specific errors include 31005 for invalid or unavailable card information, 01006 for an OTP request inside the resend cooldown.

2.6 Activate a card

POST /card/v1/activate

Activate an issued card that is ready for activation. For a physical card, wait until the cardholder receives it. Send the card ID and the last four digits of the card number.

A 1-second duplicate-submission check uses query.cardId.

Activate the card using its last four digits and the applicable verification method. The MFA requirements above apply.

Request body fields

FieldJSON typeRequiredDescription
query.cardIdLongMDTC ID of the card.
query.lastFourDigitCardNoStringMExactly four digits from the end of the card number.
query.otpCodeStringCActivation OTP. Supply it when the request lacks valid sub-account face authentication.

Request example

{
  "query": {
    "cardId": 88888888041,
    "lastFourDigitCardNo": "0000",
    "otpCode": "000000"
  }
}

Successful response

{
  "header": {
    "success": true
  }
}

Endpoint-specific errors include 00017 for an incorrect activation OTP, 31008 for a card number suffix mismatch, 31017 for failed activation.

2.7 Generate a card public key

POST /card/v1/public-key

Obtain a public key for encrypting the PIN or mobile number for an activated card. Use RSA/ECB/PKCS1Padding with the returned key. Send the resulting ciphertext as Base64 in the relevant operation.

Request body fields

FieldJSON typeRequiredDescription
query.cardIdLongMDTC ID of the card.
query.cardPublicKeyTypeIntegerMUse 0 (PIN) for setting or resetting a PIN, or 1 (CARD_PHONE) for editing a mobile number.

Request example

{
  "query": {
    "cardId": 88888888041,
    "cardPublicKeyType": 0
  }
}

Successful response

FieldJSON typeDescription
result.publicKeyStringBase64-encoded RSA public key for the requested card and purpose.
{
  "header": {
    "success": true
  },
  "result": {
    "publicKey": "EXAMPLE_PUBLIC_KEY_BASE64"
  }
}

Endpoint-specific errors include 31005 for invalid or unavailable card information, 31006 for an invalid key purpose.

2.8 Set a card PIN

POST /card/v1/set-pin

Set the initial PIN for an activated card. Generate a PIN public key for that card and encrypt the PIN before submitting it.

A 1-second duplicate-submission check uses query.cardId.

Set the first PIN for an activated card. Obtain a PIN public key for the same card before encrypting the new PIN. The MFA requirements above apply.

Request body fields

FieldJSON typeRequiredDescription
query.cardIdLongMDTC ID of the card.
query.encryptedPinStringMBase64 ciphertext produced by encrypting the six-digit PIN with the public key for purpose 0 (PIN).

Request example

{
  "query": {
    "cardId": 88888888041,
    "encryptedPin": "EXAMPLE_ENCRYPTED_PIN_BASE64"
  }
}

Successful response

{
  "header": {
    "success": true
  }
}

Endpoint-specific errors include 31014 for a PIN setup failure, 31031 for a PIN that does not meet the complexity rules, 31052 for a card that already has a PIN.

2.9 Send a PIN reset OTP

POST /card/v1/otp/reset-pin

Send a one-time password for resetting the PIN on an activated card.

Request body fields

FieldJSON typeRequiredDescription
query.cardIdLongMDTC ID of the card.
query.otpTypeIntegerM1 for email or 2 for SMS.

Request example

{
  "query": {
    "cardId": 88888888041,
    "otpType": 2
  }
}

Successful response

{
  "header": {
    "success": true
  }
}

Endpoint-specific errors include 31005 for invalid or unavailable card information, 01006 for an OTP request inside the resend cooldown.

2.10 Reset a card PIN

POST /card/v1/reset-pin

Replace the existing PIN on an activated card. Use a PIN public key for the same card. The MFA requirements above apply.

Request body fields

FieldJSON typeRequiredDescription
query.cardIdLongMDTC ID of the card.
query.encryptedPinStringMBase64 ciphertext produced by encrypting the six-digit PIN with the public key for purpose 0 (PIN).
query.otpCodeStringCReset OTP when required by the partner’s verification configuration. Valid sub-account face authentication satisfies verification where enabled.

Request example

{
  "query": {
    "cardId": 88888888041,
    "encryptedPin": "EXAMPLE_ENCRYPTED_PIN_BASE64",
    "otpCode": "000000"
  }
}

Successful response

{
  "header": {
    "success": true
  }
}

Endpoint-specific errors include 31014 for a PIN update failure, 31999 for an invalid reset OTP, with details in header.errMsg.

2.11 Freeze a card

POST /card/v1/freeze

A 1-second duplicate-submission check uses query.cardId.

Temporarily freeze an eligible card to prevent new spending. Use Unfreeze to restore the card when it can be used again.

Request body fields

FieldJSON typeRequiredDescription
query.cardIdLongMDTC ID of the card.

Request example

{
  "query": {
    "cardId": 88888888041
  }
}

Successful response

{
  "header": {
    "success": true
  }
}

Endpoint-specific errors include 31005 for invalid or unavailable card information, 31011 for a failed freeze operation.

2.12 Unfreeze a card

POST /card/v1/unfreeze

A 1-second duplicate-submission check uses query.cardId.

Restore a frozen card so it can be used again, subject to the card status and controls.

Request body fields

FieldJSON typeRequiredDescription
query.cardIdLongMDTC ID of the card.

Request example

{
  "query": {
    "cardId": 88888888041
  }
}

Successful response

{
  "header": {
    "success": true
  }
}

Endpoint-specific errors include 31005 for invalid or unavailable card information, 31012 for a failed unfreeze operation.

2.13 Terminate a card

POST /card/v1/terminate

A 1-second duplicate-submission check uses query.cardId.

Permanently close the card so the cardholder can no longer use it.

Request body fields

FieldJSON typeRequiredDescription
query.cardIdLongMDTC ID of the card.
query.reasonStringOFree-text termination reason, up to 64 characters.

Request example

{
  "query": {
    "cardId": 88888888041,
    "reason": "Cardholder requested termination"
  }
}

Successful response

{
  "header": {
    "success": true
  }
}

Endpoint-specific errors include 31005 for invalid or unavailable card information, 31027 for a failed termination.

2.14 Inquire about sensitive card information

POST /card/v1/inquiry-card-sensitive-info

Retrieve the card number, security code and expiry date for an authorized card. The MFA requirements above apply.

Request body fields

FieldJSON typeRequiredDescription
query.cardIdLongMDTC ID of the card.

Request example

{
  "query": {
    "cardId": 88888888041
  }
}

Successful response

FieldJSON typeDescription
result.cardNumberStringFull card number (PAN).
result.cvcStringCard verification code.
result.expiryDateStringCard expiry in yyyy-MM format.
{
  "header": {
    "success": true
  },
  "result": {
    "cardNumber": "0000000000000000",
    "cvc": "000",
    "expiryDate": "2030-04"
  }
}

Endpoint-specific errors include 31005 for invalid or unavailable card information, 31016 for failed retrieval of sensitive card data.

2.15 Edit the card mobile number

PUT /card/v1/edit-mobile

Update the mobile number associated with the card. Encrypt the new number, including its country calling code, with the key generated for CARD_PHONE.

Request body fields

FieldJSON typeRequiredDescription
query.cardIdLongMDTC ID of the card.
query.encryptedMobileStringMBase64 ciphertext for the new mobile number, encrypted with this card’s public key for purpose 1.

Request example

{
  "query": {
    "cardId": 88888888041,
    "encryptedMobile": "EXAMPLE_ENCRYPTED_MOBILE_BASE64"
  }
}

Successful response

{
  "header": {
    "success": true
  }
}

Endpoint-specific errors include 31010 for an unknown card ID, 31002 for a decryption or processor failure.

3. Card transaction callbacks

Use one partner endpoint to receive HTTPS POST requests from dtcpay. These callbacks start after eligible cards are issued and activated. For authorization and other decision requests, your system checks the cardholder’s balance and applies your own rules before returning a decision. For result notifications, update your records from the reported event and acknowledge receipt. Route each callback by its top-level event field.

DTC-to-partner webhook signature verification

  1. Build the string to sign from the following values in order.

    • Method is POST.
    • URL is the configured webhook URL exactly as entered, including its scheme, host, path and any query string.
    • Data is compact JSON from the top-level data object. Sort object keys recursively and preserve array element order. Preserve 64-bit integer precision and decimal scale when parsing and serializing JSON. For example, keep 100.00 as 100.00.
    POST + ConfiguredWebhookUrl + CanonicalJson(data)
  2. Compute HMAC-SHA512 with the Sign Key associated with the webhook configuration and Base64-encode the result.

  3. Compare the resulting signature with signature in the request body. Card transaction callbacks also carry the signature in D-SIGNATURE.

Webhook signature example

Use the fictitious key example-sign-key, URL https://partner.example/webhook and input data {"tranType":2,"tranId":9007199254740993,"amount":100.00}. The first line is the exact signing input after canonicalizing data. The second is the Base64-encoded HMAC.

POSThttps://partner.example/webhook{"amount":100.00,"tranId":9007199254740993,"tranType":2}
RHmcfeqYYSWHZIKdTWoXXjcC5VI39MT5wt8IWqg7kU1dUc8YQngDt/nOdbWU3yKsWMQBgxTVpPTRPk/4xbWueA==

Webhook request format

Callbacks use Content-Type: application/json. Card transaction callbacks include the Unix timestamp in milliseconds in timestamp and D-TIMESTAMP. The 3DS OOB callbacks use the signature in the body.

FieldJSON typeDescription
eventStringCallback name used to select the payload and response format.
clientIdLongCard client ID, also supplied as data.clientId.
timestampIntegerEvent timestamp for card transaction callbacks.
dataObjectEvent-specific payload described below.
signatureStringBase64-encoded signature for the request.

Example IDs are fictitious. Both clientId fields are 64-bit JSON integers. The examples use 85888888901 for the card client and 85888888903 for its partner institution.

Webhook response format

FieldJSON typeDescription
codeStringReturn "000000" with HTTP 2xx to acknowledge that your system received and processed the callback.
msgStringOptional response message, such as "success".
dataObjectEvent-specific response fields, such as responseCode for a decision or authenInd for a 3DS OOB inquiry.

Decision requests

Return HTTP 2xx and outer code of "000000" when you have processed a decision request. Set data.responseCode to "00" to approve or to a supported processor response code to decline.

{"code":"000000","msg":"success","data":{"responseCode":"00"}}

For example, you can decline for insufficient funds using the following response.

{"code":"000000","msg":"success","data":{"responseCode":"51"}}

DTC forwards recognized decline codes to the processor. An unrecognized non-empty code is treated as 05. A timeout, failed delivery, non-2xx status, invalid response, non-success outer code or missing decision code is treated as 91. For a successful ATM balance inquiry, include the balances specified below.

Result notifications

Acknowledge receipt with HTTP 2xx and outer code of "000000".

{"code":"000000","msg":"success"}

The acknowledgment confirms delivery. DTC determines the transaction outcome and MSA movement independently of this acknowledgment. The sender attempts delivery once per processing attempt. Handle redeliveries idempotently. For transaction events, use data.eventId to identify a repeated delivery of the same event and tranId to correlate separate events for the same transaction.

3.1 Authorization request

CARD_TXN_AUTH_REQ

DTC reserves the requested amount from the MSA before sending the request and creates a PENDING ledger entry. The reserved amount is unavailable for new transactions while DTC waits for your decision. Approval moves the ledger entry to FROZEN. A decline or failed decision callback releases the reservation and marks the associated transaction and ledger as denied. If DTC cannot fund the reservation, the processor can receive 51 before a webhook is sent.

Fields with no value may be omitted. Preserve the full precision of 64-bit IDs.

FieldJSON typeMeaning
eventStringCARD_TXN_AUTH_REQ.
timestampIntegerUnix event timestamp in milliseconds. Also sent in D-TIMESTAMP.
clientIdLongCard client ID. Equal to data.clientId.
dataObjectPayload described by the data.* fields below.
signatureStringBase64 signature. Also sent in D-SIGNATURE.
data.eventIdLongUnique identifier of this event.
data.clientIdLongCard client ID. Equal to the top-level clientId.
data.cardIdLongDTC card ID.
data.cardNumberStringTruncated card number.
data.cardProdCodeStringCard product code.
data.cardPresenceStringCard presence indicator, when supplied.
data.cardholderPresenceStringCardholder presence indicator, when supplied.
data.tranIdLongDTC authorization transaction ID. Use it to associate the request with its result.
data.oriTranIdLongDTC ID of the original transaction, when supplied.
data.tranTypeIntegerNumeric Webhook transaction type. Examples are 2 for purchase, 8 for cash withdrawal and 20 for account verification.
data.tranStateIntegerNumeric Webhook transaction state. 0 (pending) while the partner decision is requested.
data.tranCodeStringProcessor transaction code.
data.tranDateStringTransaction date as received from the processor.
data.tranTimeStringTransaction time as received from the processor.
data.tranAmountNumberAmount in the original request currency.
data.tranCurrencyStringCurrency of tranAmount.
data.amountNumberAmount recorded for this transaction in card currency.
data.currencyStringCard currency of amount.
data.rejectedReasonStringRejection reason, when available.
data.exchangeRateNumberExchange rate recorded for this card transaction, when available.
data.merchantNameStringMerchant name or transaction descriptor.
data.merchantCityStringMerchant city.
data.merchantCodeStringMerchant category code (MCC).
data.panEntryModeStringCard number entry mode, when supplied.
data.pinEntryModeStringPIN entry mode, when supplied.
data.merchantIdStringMerchant ID supplied for the authorization.
data.merchantCountryStringMerchant country supplied for the authorization.
data.eciStringElectronic commerce indicator, when supplied.
data.cavvResultStringCardholder authentication verification result, when supplied.
{
  "event": "CARD_TXN_AUTH_REQ",
  "timestamp": 1780444800000,
  "clientId": 85888888901,
  "data": {
    "eventId": 88888888032,
    "clientId": 85888888901,
    "cardId": 88888888041,
    "tranId": 88888888031,
    "tranType": 2,
    "tranState": 0,
    "tranAmount": 100.00,
    "tranCurrency": "SGD",
    "amount": 100.00,
    "currency": "SGD"
  },
  "signature": "EXAMPLE_SIGNATURE_BASE64"
}

Partner response

Return HTTP 2xx and {"code":"000000","data":{"responseCode":"00"}} to approve. To decline, return a supported processor response code in data.responseCode.

3.2 Authorization result notification

CARD_TXN_AUTH_NOTIFICATION

DTC reports the processor’s authorization result. On processor approval, the existing reservation remains in place. On processor decline, DTC releases it.

Fields with no value may be omitted. Preserve the full precision of 64-bit IDs.

FieldJSON typeMeaning
eventStringCARD_TXN_AUTH_NOTIFICATION.
timestampIntegerUnix event timestamp in milliseconds. Also sent in D-TIMESTAMP.
clientIdLongCard client ID. Equal to data.clientId.
dataObjectPayload described by the data.* fields below.
signatureStringBase64 signature. Also sent in D-SIGNATURE.
data.eventIdLongUnique identifier of this event.
data.clientIdLongCard client ID. Equal to the top-level clientId.
data.cardIdLongDTC card ID.
data.cardNumberStringTruncated card number.
data.cardProdCodeStringCard product code.
data.cardPresenceStringCard presence indicator, when supplied.
data.cardholderPresenceStringCardholder presence indicator, when supplied.
data.tranIdLongAuthorization transaction ID. Use it to associate this result with the request.
data.oriTranIdLongDTC ID of the original transaction, when supplied.
data.tranTypeIntegerCard transaction type. Examples are 2 for purchase, 8 for cash withdrawal and 20 for account verification.
data.tranStateIntegerTransaction state after dtcpay processing. 101 is authorized, 200 is successful zero-amount account verification and 900 is denied.
data.tranCodeStringProcessor transaction code.
data.tranDateStringTransaction date as received from the processor.
data.tranTimeStringTransaction time as received from the processor.
data.tranAmountNumberAmount in the original request currency.
data.tranCurrencyStringCurrency of tranAmount.
data.amountNumberAmount recorded for this transaction in card currency.
data.currencyStringCard currency of amount.
data.rejectedReasonStringRejection reason, when available.
data.exchangeRateNumberExchange rate recorded for this card transaction, when available.
data.merchantNameStringMerchant name or transaction descriptor.
data.merchantCityStringMerchant city.
data.merchantCodeStringMerchant category code (MCC).
data.panEntryModeStringCard number entry mode, when supplied.
data.pinEntryModeStringPIN entry mode, when supplied.

Partner response

Acknowledge receipt with HTTP 2xx and {"code":"000000","msg":"success"}.

3.3 Incremental authorization request

CARD_TXN_INCRE_AUTH_REQ

DTC reserves the additional amount before asking for your decision and creates a PENDING ledger entry. Approval marks that entry FROZEN. A decline or failed decision callback releases the additional amount. The original reservation remains in place.

Fields with no value may be omitted. Preserve the full precision of 64-bit IDs.

FieldJSON typeMeaning
eventStringCARD_TXN_INCRE_AUTH_REQ.
timestampIntegerUnix event timestamp in milliseconds. Also sent in D-TIMESTAMP.
clientIdLongCard client ID. Equal to data.clientId.
dataObjectPayload described by the data.* fields below.
signatureStringBase64 signature. Also sent in D-SIGNATURE.
data.eventIdLongUnique identifier of this event.
data.clientIdLongCard client ID. Equal to the top-level clientId.
data.cardIdLongDTC card ID.
data.cardNumberStringTruncated card number.
data.cardProdCodeStringCard product code.
data.cardPresenceStringCard presence indicator, when supplied.
data.cardholderPresenceStringCardholder presence indicator, when supplied.
data.tranIdLongDTC ID of this incremental authorization.
data.oriTranIdLongDTC transaction ID of the original authorization.
data.tranTypeInteger23 (incremental authorization).
data.tranStateInteger0 (pending) while the partner decision is requested.
data.tranCodeStringProcessor transaction code.
data.tranDateStringTransaction date as received from the processor.
data.tranTimeStringTransaction time as received from the processor.
data.tranAmountNumberAmount in the original request currency.
data.tranCurrencyStringCurrency of tranAmount.
data.amountNumberAmount recorded for this transaction in card currency.
data.currencyStringCard currency of amount.
data.rejectedReasonStringRejection reason, when available.
data.exchangeRateNumberExchange rate recorded for this card transaction, when available.
data.merchantNameStringMerchant name or transaction descriptor.
data.merchantCityStringMerchant city.
data.merchantCodeStringMerchant category code (MCC).
data.panEntryModeStringCard number entry mode, when supplied.
data.pinEntryModeStringPIN entry mode, when supplied.
data.merchantIdStringMerchant ID supplied for the authorization.
data.merchantCountryStringMerchant country supplied for the authorization.
data.eciStringElectronic commerce indicator, when supplied.
data.cavvResultStringCardholder authentication verification result, when supplied.

Partner response

Return HTTP 2xx and {"code":"000000","data":{"responseCode":"00"}} to approve. To decline, return a supported processor response code in data.responseCode.

3.4 Incremental authorization result notification

CARD_TXN_INCRE_AUTH_NOTIFICATION

DTC reports the processor’s decision for the additional amount. A processor decline releases the incremental reservation.

Fields with no value may be omitted. Preserve the full precision of 64-bit IDs.

FieldJSON typeMeaning
eventStringCARD_TXN_INCRE_AUTH_NOTIFICATION.
timestampIntegerUnix event timestamp in milliseconds. Also sent in D-TIMESTAMP.
clientIdLongCard client ID. Equal to data.clientId.
dataObjectPayload described by the data.* fields below.
signatureStringBase64 signature. Also sent in D-SIGNATURE.
data.eventIdLongUnique identifier of this event.
data.clientIdLongCard client ID. Equal to the top-level clientId.
data.cardIdLongDTC card ID.
data.cardNumberStringTruncated card number.
data.cardProdCodeStringCard product code.
data.cardPresenceStringCard presence indicator, when supplied.
data.cardholderPresenceStringCardholder presence indicator, when supplied.
data.tranIdLongIncremental authorization ID. Use it to associate this result with the request.
data.oriTranIdLongDTC transaction ID of the original authorization.
data.tranTypeInteger23 (incremental authorization).
data.tranStateIntegerIncremental authorization state after dtcpay processing. 101 is authorized and 900 is denied.
data.tranCodeStringProcessor transaction code.
data.tranDateStringTransaction date as received from the processor.
data.tranTimeStringTransaction time as received from the processor.
data.tranAmountNumberAmount in the original request currency.
data.tranCurrencyStringCurrency of tranAmount.
data.amountNumberAmount recorded for this transaction in card currency.
data.currencyStringCard currency of amount.
data.rejectedReasonStringRejection reason, when available.
data.exchangeRateNumberExchange rate recorded for this card transaction, when available.
data.merchantNameStringMerchant name or transaction descriptor.
data.merchantCityStringMerchant city.
data.merchantCodeStringMerchant category code (MCC).
data.panEntryModeStringCard number entry mode, when supplied.
data.pinEntryModeStringPIN entry mode, when supplied.

Partner response

Acknowledge receipt with HTTP 2xx and {"code":"000000","msg":"success"}.

3.5 Capture notification

CARD_TXN_CAPTURE_NOTIFICATION

DTC reports a capture associated with an earlier authorization. An existing authorization can cover the capture. DTC may debit an excess amount or release a qualifying unused amount. For eligible clearing events that reference a closed authorization, DTC funds the capture independently.

Fields with no value may be omitted. Preserve the full precision of 64-bit IDs.

FieldJSON typeMeaning
eventStringCARD_TXN_CAPTURE_NOTIFICATION.
timestampIntegerUnix event timestamp in milliseconds. Also sent in D-TIMESTAMP.
clientIdLongCard client ID. Equal to data.clientId.
dataObjectPayload described by the data.* fields below.
signatureStringBase64 signature. Also sent in D-SIGNATURE.
data.eventIdLongUnique identifier of this event.
data.clientIdLongCard client ID. Equal to the top-level clientId.
data.cardIdLongDTC card ID.
data.cardNumberStringTruncated card number.
data.cardProdCodeStringCard product code.
data.cardPresenceStringCard presence indicator, when supplied.
data.cardholderPresenceStringCardholder presence indicator, when supplied.
data.tranIdLongDTC transaction ID of the capture.
data.oriTranIdLongDTC transaction ID of the original authorization, when available.
data.tranTypeInteger21 (capture).
data.tranStateInteger200 (successful capture).
data.tranCodeStringProcessor transaction code.
data.tranDateStringTransaction date as received from the processor.
data.tranTimeStringTransaction time as received from the processor.
data.tranAmountNumberAmount in the original request currency.
data.tranCurrencyStringCurrency of tranAmount.
data.amountNumberAmount recorded for this transaction in card currency.
data.currencyStringCard currency of amount.
data.rejectedReasonStringRejection reason, when available.
data.exchangeRateNumberExchange rate recorded for this card transaction, when available.
data.merchantNameStringMerchant name or transaction descriptor.
data.merchantCityStringMerchant city.
data.merchantCodeStringMerchant category code (MCC).
data.panEntryModeStringCard number entry mode, when supplied.
data.pinEntryModeStringPIN entry mode, when supplied.
data.finalAmountNumberCumulative capture amount in card currency, when available.

Partner response

Acknowledge receipt with HTTP 2xx and {"code":"000000","msg":"success"}.

3.6 Capture without prior authorization notification

CARD_TXN_CAPTURE_WITHOUT_AUTH_NOTIFICATION

DTC records the full eligible capture amount before sending the notification. Insufficient balance can result in a forced debit and an alert.

Fields with no value may be omitted. Preserve the full precision of 64-bit IDs.

FieldJSON typeMeaning
eventStringCARD_TXN_CAPTURE_WITHOUT_AUTH_NOTIFICATION.
timestampIntegerUnix event timestamp in milliseconds. Also sent in D-TIMESTAMP.
clientIdLongCard client ID. Equal to data.clientId.
dataObjectPayload described by the data.* fields below.
signatureStringBase64 signature. Also sent in D-SIGNATURE.
data.eventIdLongUnique identifier of this event.
data.clientIdLongCard client ID. Equal to the top-level clientId.
data.cardIdLongDTC card ID.
data.cardNumberStringTruncated card number.
data.cardProdCodeStringCard product code.
data.cardPresenceStringCard presence indicator, when supplied.
data.cardholderPresenceStringCardholder presence indicator, when supplied.
data.tranIdLongDTC transaction ID of the capture.
data.oriTranIdLongOriginal transaction ID, when available. A capture without an original transaction omits this field.
data.tranTypeInteger21 (capture).
data.tranStateInteger200 (successful capture).
data.tranCodeStringProcessor transaction code.
data.tranDateStringTransaction date as received from the processor.
data.tranTimeStringTransaction time as received from the processor.
data.tranAmountNumberAmount in the original request currency.
data.tranCurrencyStringCurrency of tranAmount.
data.amountNumberAmount recorded for this transaction in card currency.
data.currencyStringCard currency of amount.
data.rejectedReasonStringRejection reason, when available.
data.exchangeRateNumberExchange rate recorded for this card transaction, when available.
data.merchantNameStringMerchant name or transaction descriptor.
data.merchantCityStringMerchant city.
data.merchantCodeStringMerchant category code (MCC).
data.panEntryModeStringCard number entry mode, when supplied.
data.pinEntryModeStringPIN entry mode, when supplied.
data.finalAmountNumberCumulative capture amount in card currency, when available.

Partner response

Acknowledge receipt with HTTP 2xx and {"code":"000000","msg":"success"}.

3.7 Capture cancellation notification

CARD_TXN_CAPTURE_CANCEL_NOTIFICATION

DTC reports a completed cancellation of a prior capture. DTC reverses applicable MSA movements of the original capture. An original debit is credited back. An original credit is debited back. A capture without a separate ledger movement has no movement to reverse. If a required re-debit cannot be funded, DTC declines the cancellation with processor response code 05.

Fields with no value may be omitted. Preserve the full precision of 64-bit IDs.

FieldJSON typeMeaning
eventStringCARD_TXN_CAPTURE_CANCEL_NOTIFICATION.
timestampIntegerUnix event timestamp in milliseconds. Also sent in D-TIMESTAMP.
clientIdLongCard client ID. Equal to data.clientId.
dataObjectPayload described by the data.* fields below.
signatureStringBase64 signature. Also sent in D-SIGNATURE.
data.eventIdLongUnique identifier of this event.
data.clientIdLongCard client ID. Equal to the top-level clientId.
data.cardIdLongDTC card ID.
data.cardNumberStringTruncated card number.
data.cardProdCodeStringCard product code.
data.cardPresenceStringCard presence indicator, when supplied.
data.cardholderPresenceStringCardholder presence indicator, when supplied.
data.tranIdLongDTC transaction ID of the canceled capture.
data.oriTranIdLongDTC transaction ID of the authorization associated with the capture, when available.
data.tranTypeInteger21 (capture).
data.tranStateInteger900 indicates that the original capture was canceled. The event detail for the same eventId returns "SUCCESS" for the completed cancellation.
data.tranCodeStringProcessor transaction code.
data.tranDateStringTransaction date as received from the processor.
data.tranTimeStringTransaction time as received from the processor.
data.tranAmountNumberAmount in the original request currency.
data.tranCurrencyStringCurrency of tranAmount.
data.amountNumberAmount of the original capture in card currency.
data.currencyStringCard currency of amount.
data.rejectedReasonStringRejection reason, when available.
data.exchangeRateNumberExchange rate recorded for this card transaction, when available.
data.merchantNameStringMerchant name or transaction descriptor.
data.merchantCityStringMerchant city.
data.merchantCodeStringMerchant category code (MCC).
data.panEntryModeStringCard number entry mode, when supplied.
data.pinEntryModeStringPIN entry mode, when supplied.
data.finalAmountNumberCumulative capture amount in card currency after applying the cancellation, when available.

Partner response

Acknowledge receipt with HTTP 2xx and {"code":"000000","msg":"success"}.

3.8 Card deposits

Card deposits are unavailable for MSA-delegated cards.

3.9 Refund notification

CARD_TXN_REFUND_NOTIFICATION

DTC records the eligible refund credit before sending the notification. The credited amount may be converted to the applicable MSA settlement currency.

Fields with no value may be omitted. Preserve the full precision of 64-bit IDs.

FieldJSON typeMeaning
eventStringCARD_TXN_REFUND_NOTIFICATION.
timestampIntegerUnix event timestamp in milliseconds. Also sent in D-TIMESTAMP.
clientIdLongCard client ID. Equal to data.clientId.
dataObjectPayload described by the data.* fields below.
signatureStringBase64 signature. Also sent in D-SIGNATURE.
data.eventIdLongUnique identifier of this event.
data.clientIdLongCard client ID. Equal to the top-level clientId.
data.cardIdLongDTC card ID.
data.cardNumberStringTruncated card number.
data.cardProdCodeStringCard product code.
data.cardPresenceStringCard presence indicator, when supplied.
data.cardholderPresenceStringCardholder presence indicator, when supplied.
data.tranIdLongDTC transaction ID of the refund.
data.oriTranIdLongDTC transaction ID associated with the refund, when available.
data.tranTypeInteger18 (refund).
data.tranStateInteger200 (refund recorded successfully).
data.tranCodeStringProcessor transaction code.
data.tranDateStringTransaction date as received from the processor.
data.tranTimeStringTransaction time as received from the processor.
data.tranAmountNumberAmount in the original request currency.
data.tranCurrencyStringCurrency of tranAmount.
data.amountNumberAmount recorded for this transaction in card currency.
data.currencyStringCard currency of amount.
data.rejectedReasonStringRejection reason, when available.
data.exchangeRateNumberExchange rate recorded for this card transaction, when available.
data.merchantNameStringMerchant name or transaction descriptor.
data.merchantCityStringMerchant city.
data.merchantCodeStringMerchant category code (MCC).
data.panEntryModeStringCard number entry mode, when supplied.
data.pinEntryModeStringPIN entry mode, when supplied.

Partner response

Acknowledge receipt with HTTP 2xx and {"code":"000000","msg":"success"}.

3.10 Reversal request

CARD_TXN_REVERSAL_REQ

DTC asks for your decision on the reversal. For a purchase reversal, DTC releases the applicable authorization amount after successful processor confirmation.

Fields with no value may be omitted. Preserve the full precision of 64-bit IDs.

FieldJSON typeMeaning
eventStringCARD_TXN_REVERSAL_REQ.
timestampIntegerUnix event timestamp in milliseconds. Also sent in D-TIMESTAMP.
clientIdLongCard client ID. Equal to data.clientId.
dataObjectPayload described by the data.* fields below.
signatureStringBase64 signature. Also sent in D-SIGNATURE.
data.eventIdLongUnique identifier of this event.
data.clientIdLongCard client ID. Equal to the top-level clientId.
data.cardIdLongDTC card ID.
data.cardNumberStringTruncated card number.
data.cardProdCodeStringCard product code.
data.cardPresenceStringCard presence indicator, when supplied.
data.cardholderPresenceStringCardholder presence indicator, when supplied.
data.tranIdLongDTC transaction ID of the reversal.
data.oriTranIdLongDTC ID of the transaction being reversed.
data.tranTypeInteger19 (reversal).
data.tranStateInteger0 (pending) while the partner decision is requested.
data.tranCodeStringProcessor transaction code.
data.tranDateStringTransaction date as received from the processor.
data.tranTimeStringTransaction time as received from the processor.
data.tranAmountNumberAmount in the original request currency.
data.tranCurrencyStringCurrency of tranAmount.
data.amountNumberAmount recorded for this transaction in card currency.
data.currencyStringCard currency of amount.
data.rejectedReasonStringRejection reason, when available.
data.exchangeRateNumberExchange rate recorded for this card transaction, when available.
data.merchantNameStringMerchant name or transaction descriptor.
data.merchantCityStringMerchant city.
data.merchantCodeStringMerchant category code (MCC).
data.panEntryModeStringCard number entry mode, when supplied.
data.pinEntryModeStringPIN entry mode, when supplied.
data.merchantIdStringMerchant ID supplied for the reversal.

Partner response

Return HTTP 2xx and {"code":"000000","data":{"responseCode":"00"}} to approve. To decline, return a supported processor response code in data.responseCode.

3.11 Reversal result notification

CARD_TXN_REVERSAL_NOTIFICATION

dtcpay reports the reversal outcome after processing the processor's confirmation. A successful purchase reversal releases the applicable original and incremental authorization holds. The partner can receive tranState = 900 after Coshine confirms a successful reversal if dtcpay rejects it during confirmation checks.

When an authorization times out and dtcpay successfully releases the remaining hold, dtcpay sends this same event with tranType = 24 (TIMEOUT_REVERSAL) and tranState = 200.

Fields with no value may be omitted. Preserve the full precision of 64-bit IDs.

FieldJSON typeMeaning
eventStringCARD_TXN_REVERSAL_NOTIFICATION.
timestampIntegerUnix event timestamp in milliseconds. Also sent in D-TIMESTAMP.
clientIdLongCard client ID. Equal to data.clientId.
dataObjectPayload described by the data.* fields below.
signatureStringBase64 signature. Also sent in D-SIGNATURE.
data.eventIdLongUnique identifier of this event.
data.clientIdLongCard client ID. Equal to the top-level clientId.
data.cardIdLongDTC card ID.
data.cardNumberStringTruncated card number.
data.cardProdCodeStringCard product code.
data.cardPresenceStringCard presence indicator, when supplied.
data.cardholderPresenceStringCardholder presence indicator, when supplied.
data.tranIdLongReversal transaction ID. Use it to match the result to a reversal request when applicable.
data.oriTranIdLongDTC ID of the transaction being reversed.
data.tranTypeInteger19 for a regular reversal or 24 (TIMEOUT_REVERSAL) for an automatic release.
data.tranStateIntegerReversal state after dtcpay processing. 200 is successful, including a successful automatic release. 900 is denied.
data.tranCodeStringProcessor transaction code.
data.tranDateStringTransaction date as received from the processor.
data.tranTimeStringTransaction time as received from the processor.
data.tranAmountNumberAmount in the original request currency.
data.tranCurrencyStringCurrency of tranAmount.
data.amountNumberAmount recorded for this transaction in card currency.
data.currencyStringCard currency of amount.
data.rejectedReasonStringRejection reason, when available.
data.exchangeRateNumberExchange rate recorded for this card transaction, when available.
data.merchantNameStringMerchant name or transaction descriptor.
data.merchantCityStringMerchant city.
data.merchantCodeStringMerchant category code (MCC).
data.panEntryModeStringCard number entry mode, when supplied.
data.pinEntryModeStringPIN entry mode, when supplied.

Partner response

Acknowledge receipt with HTTP 2xx and {"code":"000000","msg":"success"}.

3.12 ATM balance inquiry request

CARD_BALANCE_INQUIRY_REQ

DTC requests the balance to show on an ATM inquiry.

Fields with no value may be omitted. Preserve the full precision of 64-bit IDs.

FieldJSON typeMeaning
eventStringCARD_BALANCE_INQUIRY_REQ.
timestampIntegerUnix event timestamp in milliseconds. Also sent in D-TIMESTAMP.
clientIdLongCard client ID. Equal to data.clientId.
dataObjectPayload described by the data.* fields below.
signatureStringBase64 signature. Also sent in D-SIGNATURE.
data.eventIdLongUnique identifier of this event.
data.clientIdLongCard client ID. Equal to the top-level clientId.
data.cardIdLongDTC card ID.
data.cardNumberStringTruncated card number.
data.cardProdCodeStringCard product code.
data.cardPresenceStringCard presence indicator, when supplied.
data.cardholderPresenceStringCardholder presence indicator, when supplied.
data.tranIdLongDTC transaction ID of the balance inquiry.
data.oriTranIdLongDTC ID of the original transaction, when supplied.
data.tranTypeInteger15 (ATM balance inquiry).
data.tranStateInteger200 means that dtcpay recorded the ATM inquiry. The partner’s data.responseCode determines whether the inquiry succeeds.
data.tranCodeStringProcessor transaction code.
data.tranDateStringTransaction date as received from the processor.
data.tranTimeStringTransaction time as received from the processor.
data.tranAmountNumberOriginal inquiry amount. Always zero.
data.tranCurrencyStringCurrency of tranAmount.
data.amountNumberInquiry amount in card currency. Always zero.
data.currencyStringCard currency of amount.
data.rejectedReasonStringRejection reason, when available.
data.exchangeRateNumberExchange rate recorded for this card transaction, when available.
data.merchantNameStringMerchant name or transaction descriptor.
data.merchantCityStringMerchant city.
data.merchantCodeStringMerchant category code (MCC).
data.panEntryModeStringCard number entry mode, when supplied.
data.pinEntryModeStringPIN entry mode, when supplied.

Partner response

Return HTTP 2xx and code: "000000". Set data.responseCode to "00" when the balance inquiry succeeds. Return all three balances in the card currency as decimal strings. Keep acctBalance = avaiBalance + blockBalance. dtcpay forwards each balance to the processor individually. It forwards zero for a missing or invalid value.

FieldJSON typeMeaning
data.avaiBalanceStringAvailable balance. The amount the cardholder can currently spend, after deducting authorization holds.
data.blockBalanceStringHeld balance. Amounts reserved by authorizations that have yet to be posted or released.
data.acctBalanceStringBook balance. The balance after posted transactions, including funds that are still on hold.

For a card in SGD, return balances as of the inquiry time.

When the inquiry arrivesavaiBalanceblockBalanceacctBalance
Before authorization, with SGD 100 on the account and no holds"100.00""0.00""100.00"
After an authorization places SGD 30 on hold"70.00""30.00""100.00"
After SGD 10 of the hold is captured and posted, with SGD 20 still on hold"70.00""20.00""90.00"

Example response after an authorization places SGD 30 on hold.

{
  "code": "000000",
  "msg": "success",
  "data": {
    "responseCode": "00",
    "avaiBalance": "70.00",
    "blockBalance": "30.00",
    "acctBalance": "100.00"
  }
}

3.13 One-time password delivery

DTC handles one-time password delivery for supported wallet provisioning and 3DS OTP flows.

3.14 3DS OOB authentication request

CARD_3DS_OOB_REQ

DTC sends this event to start cardholder authentication in the partner’s authentication flow.

FieldJSON typeMeaning
eventStringCARD_3DS_OOB_REQ.
clientIdLongCard client ID. Equal to data.clientId.
dataObjectPayload described by the data.* fields below.
signatureStringBase64 signature in the request body.
data.acsTransIdStringAuthentication transaction ID. Use it to link the request and inquiry.
data.clientIdLongCard client ID. Equal to the top-level clientId.
data.cardIdLongDTC card ID.
data.customerIdStringProcessor customer ID.
data.acquirerBinStringAcquirer BIN, when supplied.
data.merchantIdStringMerchant ID, when supplied.
data.merchantNameStringMerchant name, when supplied.
data.last4DigitsStringLast four digits of the card number, when available.
data.expiryDateStringCard expiry, when available.
data.purchaseAmountStringPurchase amount in minor units as supplied by the processor.
data.purchaseCurrencyStringPurchase currency as supplied by the processor.
data.purchaseExponentStringDecimal exponent. "3999" with exponent "2" represents 39.99.
data.purchaseDateStringPurchase date and time as supplied by the processor.
data.expiryAtStringAuthentication expiry as an ISO 8601 UTC timestamp with milliseconds. DTC adds five minutes to the purchase time if it can parse it as yyyyMMddHHmmss in UTC. Otherwise, DTC adds five minutes to processing time.
data.callbackUrlStringProcessor-supplied callback URL, when present.
{
  "event": "CARD_3DS_OOB_REQ",
  "clientId": 85888888901,
  "data": {
    "acsTransId": "00000000-0000-4000-8000-888888880009",
    "clientId": 85888888901,
    "cardId": 88888888041,
    "customerId": "EXAMPLE-CUSTOMER-ID-017",
    "purchaseAmount": "3999",
    "purchaseCurrency": "EUR",
    "purchaseExponent": "2",
    "purchaseDate": "20260520123000",
    "expiryAt": "2026-05-20T12:35:00.000Z"
  },
  "signature": "EXAMPLE_SIGNATURE_BASE64"
}

Partner response

Acknowledge receipt with HTTP 2xx and {"code":"000000","msg":"success"}. Report authentication status through the inquiry response.

3.15 3DS OOB authentication inquiry

CARD_3DS_OOB_INQUIRY

DTC sends this event when the processor asks for the current authentication status. The processor can poll more than once.

FieldJSON typeMeaning
eventStringCARD_3DS_OOB_INQUIRY.
clientIdLongCard client ID. Equal to data.clientId.
dataObjectPayload described by the data.* fields below.
signatureStringBase64 signature in the request body.
data.acsTransIdStringAuthentication transaction ID. Use it to link the request and inquiry.
data.clientIdLongCard client ID. Equal to the top-level clientId.
data.cardIdLongDTC card ID.
data.customerIdStringProcessor customer ID.
{
  "event": "CARD_3DS_OOB_INQUIRY",
  "clientId": 85888888901,
  "data": {
    "acsTransId": "00000000-0000-4000-8000-888888880009",
    "customerId": "EXAMPLE-CUSTOMER-ID-017",
    "clientId": 85888888901,
    "cardId": 88888888041
  },
  "signature": "EXAMPLE_SIGNATURE_BASE64"
}

Partner response

Return HTTP 2xx, code: "000000" and data.authenInd. Return "P" while the cardholder is deciding.

{"code":"000000","msg":"success","data":{"authenInd":"P"}}
authenIndMeaning
YThe cardholder approved in the partner’s authentication flow.
FAuthentication failed or was declined. DTC also uses this result for failed or invalid inquiry replies.
OAuthentication timed out.
PThe cardholder’s decision is pending. A subsequent inquiry can request the updated result.

4. Balance threshold alerts

dtcpay administrators configure the baseline balance and email recipients for these alerts. Contact dtcpay to set up or update your alert settings.

DTC checks the base-currency MSA available balance asynchronously after applicable reservations or debits. If alert recipients are configured, an alert is sent when the available balance reaches or falls below a threshold and the tier is currently clear. One balance change can trigger several tiers. A credit to the base-currency MSA clears a tier once the available balance is above that tier's threshold. An authorization that cannot be funded may be declined with response code 51.

TierThresholdAction
Tier 1alertBaseLineBalance / 0.6Warning email
Tier 2alertBaseLineBalance / 0.8Urgent email
Tier 3alertBaseLineBalanceCritical balance alert email

Tier 1 and Tier 2 thresholds are rounded to eight decimal places, half-up.

4.1 Alert email content

Balance alert emails identify the MSA and use the account currency for the reported amounts. The current frozen balance reflects funds still reserved when the email is generated.

TierWhat the email communicates
Tier 1The available balance has reached or fallen below the Tier 1 threshold.
Tier 2The available balance has reached or fallen below the Tier 2 threshold.
Tier 3The available balance has reached or fallen below the critical threshold. Authorizations that cannot be funded may be declined with response code 51.

5. Partner query APIs

Call these endpoints to reconcile activity in your settlement accounts and look up recorded card events. Partner-to-DTC API signing

5.1 Query MSA accounts

GET /card/v1/master-settlement-accounts

Authenticate as the partner institution with Card permission. The endpoint returns its MSA accounts in resultList without pagination.

Response fields

FieldJSON typeMeaning
idLongSettlement account ID. Use it as msaId in ledger queries.
clientIdLongMaster institution client ID.
currencyStringAccount currency.
balanceNumberRecorded MSA book balance.
baseCurrencyFlagBooleanIndicates the base-currency MSA. In balance-check mode, the base account can be used when the dedicated currency account is missing or has insufficient funds.
latestSettlementBatchIdLongMost recent settlement batch ID, when assigned.
useTypeIntegerAccount usage. 1 identifies card usage.
statusIntegerAccount status. 0 is inactive and 1 is active.
alertBaseLineBalanceNumberBaseline used to calculate alert thresholds.
thresholdTier1BalanceNumberTier 1 threshold.
thresholdTier2BalanceNumberTier 2 threshold.
thresholdTier3BalanceNumberTier 3 threshold, equal to alertBaseLineBalance.
thresholdTier1Status, thresholdTier2Status, thresholdTier3StatusIntegerStatus of each tier. 0 is clear and 1 is alerting.
alertEmailsStringComma-separated alert recipients, when configured.
createdAtStringAccount creation time, when present.
updatedAtStringAccount update time, when present.

Response example

{
  "header": {
    "success": true
  },
  "resultList": [
    {
      "id": 88888888020,
      "clientId": 85888888903,
      "currency": "SGD",
      "balance": 12000.0,
      "baseCurrencyFlag": true,
      "useType": 1,
      "status": 1,
      "alertBaseLineBalance": 6000.0,
      "thresholdTier1Balance": 10000.0,
      "thresholdTier2Balance": 7500.0,
      "thresholdTier3Balance": 6000.0,
      "thresholdTier1Status": 0,
      "thresholdTier2Status": 0,
      "thresholdTier3Status": 0
    }
  ]
}

5.2 Query MSA ledger history

POST /card/v1/master-settlement-account-ledgers

Authenticate as the partner institution with Card permission. Ledger rows are ordered by ID in descending order.

Request fields

FieldJSON typeRequiredMeaning
query.clientIdLongOCard client ID linked to the authenticated institution through an enabled mapping. Omit to query the institution's permitted ledger rows.
query.msaIdLongOID of an MSA owned by the authenticated institution.
query.currencyStringOFilter on the card transaction currency recorded on the ledger.
query.startDateStringOLedger creation date in yyyy-MM-dd format. The lower bound is midnight on that date, inclusive.
query.endDateStringOLedger creation date in yyyy-MM-dd format. The upper bound is midnight on the next day, exclusive.
page.currentIntegerOPage number. Defaults to 1.
page.sizeIntegerOPage size. Defaults to 10.

Request example

{
  "query": {
    "clientId": 85888888901,
    "msaId": 88888888020,
    "currency": "SGD",
    "startDate": "2026-05-14",
    "endDate": "2026-05-14"
  },
  "page": {
    "current": 1,
    "size": 20
  }
}

Response fields

Read ledger rows from resultList. The pagination object contains current, size, total and, when available, pages. Its records field is an empty array.

Field in each ledger rowJSON typeMeaning
idLongLedger entry ID.
msaIdLongSettlement account ID.
clientIdLongClient associated with the ledger entry, typically the card client.
currencyStringCard transaction currency recorded on the ledger.
amountNumberCard transaction amount recorded on the ledger.
settleCurrencyStringCurrency used for the MSA movement.
settleAmountNumberAmount applied to the MSA. Use this amount and settleCurrency for reconciliation.
availableBalanceAfterSnapshotNumberBalance snapshot recorded at booking. The source depends on the funding path.
exchangeRateStringRecorded exchange rate, when present.
quoteIdLongQuote ID, when recorded.
indicatorStringdebit for funds out and credit for funds in.
cardTransactionIdLongRelated card transaction ID, when available.
cardIdLongRelated card ID, when available.
typeIntegerMSA ledger type.
statusIntegerMSA ledger status.
settlementBatchIdLongSettlement batch ID, when assigned.
remarkStringOptional ledger remark.
frozenAtStringTimestamp when the entry reached FROZEN, when available.
createdAtStringLedger creation time, when present.
updatedAtStringLedger update time, when present.

Response example

{
  "header": { "success": true },
  "resultList": [
    {
      "id": 88888888031,
      "msaId": 88888888020,
      "clientId": 85888888901,
      "currency": "SGD",
      "amount": 100.00,
      "settleCurrency": "SGD",
      "settleAmount": 100.00,
      "exchangeRate": "1",
      "indicator": "debit",
      "type": 1,
      "status": 2
    }
  ],
  "pagination": {
    "current": 1,
    "size": 20,
    "pages": 8,
    "total": 156,
    "records": []
  }
}

5.3 Card event queries

Query the events exchanged between dtcpay and your authorization system. Both endpoints require the Card Transaction permission. Use the Partner-to-DTC signing rules. To reconcile MSA account movements, use settleAmount and settleCurrency from MSA ledger history.

In the request tables below, O means optional, M means mandatory and C means conditional.

List card events

POST /card/v1/card-event/list

List events for the authenticated client or one of its linked card clients. Send a top-level page object. Rows are ordered by event ID in descending order. All filters in query are optional. Omit query to list events for the authenticated client without filters.

Request fields

FieldJSON typeRequiredDescription
query.clientIdLongOID of a card client linked to the authenticated institution. Omit this field to query the authenticated client's own events.
query.eventIdLongOEvent ID from the callback's data.eventId.
query.cardIdLongOdtcpay card ID.
query.eventTimeFromStringOInclusive start of the event time range in yyyy-MM-dd HH:mm:ss format.
query.eventTimeToStringOExclusive end of the event time range in yyyy-MM-dd HH:mm:ss format.
query.tranIdLongOdtcpay transaction ID.
query.oriTranIdLongOdtcpay ID of the original transaction.
query.eventTypeStringOExact callback event name, such as CARD_TXN_CAPTURE_CANCEL_NOTIFICATION.
page.currentIntegerMPage number, starting at 1.
page.sizeIntegerMRecords per page.

Request example

{
  "query": {
    "clientId": 85888888901,
    "cardId": 88888888041,
    "eventType": "CARD_TXN_CAPTURE_CANCEL_NOTIFICATION"
  },
  "page": { "current": 1, "size": 20 }
}

Response fields

Read event records from resultList when header.success is true. The pagination object contains current (page number), size (page size), pages (total pages), total (total matching records) and records (an empty array).

Field in each eventJSON typeDescription
idLongEvent ID. Use it in the detail endpoint or match it to the callback's data.eventId.
eventTypeStringCallback event name.
tranIdLongdtcpay transaction ID.
oriTranIdLongdtcpay ID of the original transaction, when available.
eventTimeStringTime the event was recorded, in yyyy-MM-dd HH:mm:ss format.
clientIdLongCard client ID.
cardIdLongdtcpay card ID.
tranTypeStringTransaction type enum name, such as CAPTURE or TIMEOUT_REVERSAL.
settlementAmountNumberEvent amount in the card currency. Capture cancellations reduce the cumulative amount, so this value can be negative.
settlementCurrencyStringCard currency of settlementAmount.
requestAmountNumberAmount in the original processor request, when available.
requestCurrencyStringCurrency of requestAmount.
deltaIndicatorStringDirection of the recorded settlement account movement, DEBIT or CREDIT, when present.
deltaAmountNumberAmount of that movement, when present.
deltaCurrencyStringCurrency of deltaAmount.
exchangeRateNumberTransaction exchange rate, when recorded.
merchantNameStringMerchant name or transaction descriptor, when available.
merchantCityStringMerchant city, when available.
merchantCodeStringMerchant category code (MCC), when available.
acquirerReferenceNoStringAcquirer reference number, when available.
processorTransactionIdStringProcessor transaction identifier, when available.
deniedReasonStringDenial reason, when recorded.
createdAtStringRecord creation time in yyyy-MM-dd HH:mm:ss format.

Response example

{
  "header": { "success": true },
  "resultList": [
    {
      "id": 88888888033,
      "eventType": "CARD_TXN_CAPTURE_CANCEL_NOTIFICATION",
      "clientId": 85888888901,
      "cardId": 88888888041,
      "tranId": 88888888035,
      "oriTranId": 88888888034,
      "eventTime": "2026-05-20 12:40:00",
      "tranType": "CAPTURE",
      "settlementAmount": -10.00,
      "settlementCurrency": "SGD"
    }
  ],
  "pagination": { "current": 1, "size": 20, "pages": 1, "total": 1, "records": [] }
}

A missing page object or null pagination values return 31006. A client ID outside the authenticated institution's scope returns 00006.

Get card event details

GET /card/v1/card-event/{eventId}

Use the id returned by the list endpoint or data.eventId from a callback. The event must belong to the authenticated client or one of its linked card clients.

Request fields

Path parameterTypeRequiredDescription
eventIdLongMdtcpay event ID.

Request example

GET /card/v1/card-event/88888888033

Response fields

FieldJSON typeDescription
result.eventStringCallback event name.
result.dataObjectRecorded event details. Uses the list row fields above, with eventType represented as result.event and createdAt omitted. The detail can include additional event-specific fields.
result.data.tranStateStringRecorded state enum name for this event, such as "SUCCESS".
result.data.finalSettlementAmountNumberCumulative capture amount in the card currency after this event, when available.

For CARD_TXN_CAPTURE_CANCEL_NOTIFICATION, the webhook’s numeric data.tranState is 900 when the original capture has been canceled. Looking up that same event ID returns result.data.tranState as "SUCCESS" because dtcpay processed the cancellation successfully.

Response example

{
  "header": { "success": true },
  "result": {
    "event": "CARD_TXN_CAPTURE_CANCEL_NOTIFICATION",
    "data": {
      "id": 88888888033,
      "clientId": 85888888901,
      "cardId": 88888888041,
      "tranId": 88888888035,
      "oriTranId": 88888888034,
      "eventTime": "2026-05-20 12:40:00",
      "tranType": "CAPTURE",
      "tranState": "SUCCESS",
      "settlementAmount": -10.00,
      "settlementCurrency": "SGD",
      "finalSettlementAmount": 0.00
    }
  }
}

An unknown event ID or an event outside your permitted scope returns 00010.

5.4 MSA funding and withdrawal

Contact dtcpay to arrange funding or withdrawals for your MSA offline. These operations currently have no public API.

6. Enum reference

Webhook transaction state

tranStateMeaning
0Pending
101Authorized
200Successful. For CARD_BALANCE_INQUIRY_REQ, this means dtcpay recorded the ATM inquiry. The partner’s data.responseCode determines whether the inquiry succeeds.
900Denied, expired or canceled. Use event to interpret the outcome.

Webhook transaction type

tranTypeMeaning
2Purchase
8Cash withdrawal
15ATM balance inquiry
18Refund
19Reversal
20Account verification
21Capture
23Incremental authorization
24TIMEOUT_REVERSAL (automatic release of the remaining authorization hold)

Response Code

The processor recognizes these two-character strings. Use the code that describes the outcome of the decision request.

CodeMeaning
00No error
01Invalid participant
02Invalid card number
03Invalid card status
04Invalid card token
05Do not honor
10Restricted access
12Invalid transaction
13Invalid amount
24Invalid PIN block format
25Original transaction not found
30Invalid message format
40Unsupported function
51Insufficient funds
55PIN verification failed
57Transaction not permitted to cardholder
61Amount limit exceeded
62Restricted card
64Original amount does not match
65Count limit exceeded
91System error
94Duplicate transaction
99Unexpected data retrieval error

Card status

IDNameMeaning
0INACTIVENot activated
1ACTIVATEDActivated
2FROZENFrozen
3TERMINATEDTerminated
4CANCELLEDApplication canceled
5REJECTEDRejected
6SUSPENDEDSuspended
7DISPATCHDispatch
8PRE_TERMINATEDPre-terminated
99PENDINGPending approval

MSA ledger type

IDNameMeaning
1AUTHAuthorization
2INCREMENTAL_AUTHIncremental authorization
3CAPTURECapture, capture without prior authorization and capture cancellation movements
4REFUNDRefund
5REVERSALReversal
7TRANSFER_INTransfer in
8TRANSFER_OUTTransfer out

MSA ledger status

IDNameMeaning
0PENDINGAwaiting the applicable decision or confirmation
1DENIEDFailed or rejected
2FROZENConfirmed and awaiting settlement
3SETTLINGSettlement in progress
4SETTLEDMarked settled and assigned to a batch