Skip to main content

We've Launched a New Documentation Website (Beta Launch)

The documentation for DuitNow is now available on our newly launched documentation platform. This is an initial beta rollout of our new documentation site, designed to become the long-term home for all documentation moving forward.

You'll find the familiar content you're used to—now hosted on a new platform that will progressively receive updates and enhancements.

We encourage you to start accessing DuitNow materials there to explore the new experience and ensure you're viewing the latest documentation updates. If you have any feedback, please reach out to us.

Visit the New Documentation Website

Initiate AutoDebit Batch Files Processing

info

This documentation provides a conceptual overview of the upcoming AutoDebit Batch Files Processing feature. The technical API specifications and testing environment are currently being finalized. While the full API documentation and testing environment are not yet available, you can view the high-level framework below to begin your internal planning.

Process Flow

The DuitNow Pay Autodebit Batch feature supports the batch-file submission of multiple autodebit requests. It provides a scalable solution for acquirer handling recurring payments or subscription-based transactions, streamlining high-volume processing.

StepSenderReceiverProcess
1Acquirer / SIAPI GatewayAcquirer requests a temporary AutoDebit Batch Key via API.
2API GatewayAcquirer / SIDuitNow Pay will return an AutoDebit Batch Key dedicated for participants and the key only valid for 24 hours.
3Acquirer / SIAPI Gateway

Acquirer will use the AutoDebit Batch Key and initiate file upload request based on the SDK code sample shared.

To ensure the file is securely uploaded, participants will required to create a digital signature file (.sig).

Note:
  1. Only .txt file will be processed
  2. Each .txt file will require to create a digital signature file .sig
4API GatewayAPI GatewayDuitNow Pay API Gateway will validate the information inclusive of the file format and content inside the file.
5API GatewayAcquirer / SIDuitNow Pay API Gateway will response back to Acquirer/ SI via webhook only if the uploaded file contains error. If the file validated success there will be no notifications.
6API GatewayAcquirer / SI

DuitNow Pay API Gateway will send a Webhook: Update AutoDebit Batch Status to the Acquirer/ SI to inform on the successful processed of the AutoDebit Batch files.

Note:
  1. The webhook will clearly indicate the number of successful processed and failed transactions within the files
7Acquirer / SIAPI GatewayAcquirer to use the AutoDebit Batch Key and initiate file download request based on the SDK code sample shared.
8Acquirer / SIMerchantAcquirer/ SI upon receiving the AutoDebit Batch status update and validated the response file, shall also update the information back to the merchant using their own specifications.


Batch File Definitions

Request File

Acquirers must comply with the required validation rules for request file specified below.

NoDescriptionFile NamingFormatFrequency
1Request File
  • This file can only be used by Acquirer and System Integrator.
  • Supported transaction code are 220.
  • Participant shall only send AutoDebit request that are going to trigger on the next day (T+1)
    Example:
    Mandate effective date on 1 Jan 2026, the file should be uploaded only on 31 Dec 2025 before 12am.
  • Files must include a 3-digit zero-padded sequence number in the filename. Sequence starts from 001.
  • Sequence number must be incremental for the day.
  • Each file must contain transactions for the same merchant and product only.
  • On a daily basis, it is possible to receive and process a maximum of 999 files. Each of these files can hold up to 500 records.
BICFI_MID_PID_yyyyMMdd_hhmmss_nnn.txt

  • BICFI - Participant BIC
  • MID - Merchant Id
  • PID - Product Id
  • yyyyMMdd - Date
  • hhmmss - Hour minute second
  • nnn - File sequence number

Example:
MYBIC8XX_M0012345_P00000234_20250127_063000_001.txt
TxtDaily - Before 12am
Upload the file daily before 12am, only files contain today’s date will be processed, files with future or past dates will be rejected.


Response File

Below are clarifications of the file name the acquirer will see when you perform an enquiry or after the file is validated or processed

{
"checkoutId": "a7e2ed2a-b088-4495-8cf4-88da08f644f2",
"consentId": "M00002010012700006",
"amount": "10.00",
"merchantReferenceId": "REF0001234556"
}


Response

Data Object
messageIdStringMax length: 35Required
Unique message identification from RPP. This can be used to reconcile with RPP BackOffice or Reports.
transactionStatusStringMax length: 35Required
Transaction status:

CLEARED - Successful Request
REJECTED - Rejection from RPP or Debiting Agent
issuerStringMax length: 100Required
Name of payer’s issuing bank / wallet.
End Data Object
messageStringMax length: 1024Required
Please refer to the list of reason codes or issuer rejection codes.


Sample Response:

{
"data": {
"messageId": "20240117M0000201220OBW00000025",
"transactionStatus": "CLEARED",
"issuer": "Affin Bank"
},
"message": "U000"
}