Skip to Content
CollectionsDirect DebitCollections

Create a Direct Debit Collection

"Direct Debit Payment" in the API path refers to a direct debit collection transaction where funds are collected from the debtor account.

Test mode

With a test API key, some values make this endpoint succeed, fail or wait. See the test mode values for this endpoint.

POST
/v1/direct-debit-payments

Authorization

authorization
headerAuthorizationBearer <SECRET_API_KEY>

Set Your Secret API Key

Header Parameters

Idempotency-Key?string

A unique value, eg. a UUID.

Request Body

application/json
amount?number

A positive integer value in the specified currency's smallest unit. e.g. for SGD, $10 would be represented as 1000 (cents). Must not be greater than the Direct Debit Authorization's maximum amount.

Range 1 <= value <= 100000000
bankChargeBearer?string

Bearer of the bank charges: SENDER, RECEIVER, or SHARED. Applicable only for Hong Kong direct debit payments.

Value in

  • "SENDER"
  • "RECEIVER"
  • "SHARED"
currency?string

Three-letter ISO 4217 currency code in full uppercase. Must be the same as the Direct Debit Authorization's currency.

Match ^SGD|MYR|HKD$
customerReference*string

A meaningful description of the debit/payment. For Singapore: this will show up in your payer's bank statement. For Malaysia and Hong Kong: this is purely for your own reference, and does not affect the statement. In test mode, set this to "fail" to simulate a failed debit/payment.

Match ^[a-zA-Z0-9\-]+$
Length 1 <= length <= 35
directDebitAuthorizationId?string

ID of a successful Direct Debit Authorization (status is SUCCEEDED) to use for this direct debit. This is required for pulling money from an external bank account via direct debit. Provide either this or directDebitAuthorizationInformation.

directDebitAuthorizationInformation?ExternalDirectDebitAuthorizationInfo

Information of a direct debit authorization maintained outside Acme. Provide either this or directDebitAuthorizationId. billReferenceNumber is the unique bill reference number of the authorized direct debit (required by the bank); payerBankAccountNumber is where the direct debit payment will be collected from; internalAccountId is the Internal Account the payment will be made to.

type*string

Type of the payment.

Value in

  • "FAST"
  • "MY_FPX"
  • "HK_DDI"

Response Body

OK

*/*
amount?integer

A positive integer value in the specified currency's smallest unit. e.g. $10 would be represented as 1000 (cents).

Format int64
bankReference?string

The bank's main reference for this collection, the one that appears on the bank's transaction record. null until the bank returns it.

batchId?string

ID of the batch this collection belongs to, for batch collections.

createdAt?string

Time at which the object was created. In ISO 8601 format.

currency?string

Three-letter ISO 4217 currency code in full uppercase.

customerReference?string

A meaningful description of the debit/payment. For Singapore: this will show up in your payer's bank statement. For Malaysia and Hong Kong: this is purely for your own reference, and does not affect the statement.

directDebitAuthorizationId?string

A Direct Debit Authorization ID, eg. dda_1234567. This is required for pulling money from an external bank account via direct debit. Only required for direct debits. In responses, this is the authorization the collection was created against, present when the collection used an Acme-maintained DDA.

directDebitAuthorizationInformation?ExternalDirectDebitAuthorizationInfo

Information of the externally maintained direct debit authorization. Included when directDebitAuthorizationId is null.

id?string

Unique identifier for the object. For UOB, the portion after the prefix (e.g. 0FS1FPAWHG0SG in dpymt_0FS1FPAWHG0SG) will appear as the Customer Reference in UOB Infinity. For HK Direct Debit, Acme sends the id to the bank as reference (e.g. dpymt_0KAQCK2Y8FNTB) for tracking.

metadata?DirectDebitPaymentMetadata

Metadata of the direct debit payment.

paymentDate?string

Requested collection date (YYYY-MM-DD), for batch collections.

previousPaymentStatus?string

For FAILED payments with resultCode DUPLICATE_TRANSACTION, the status of the previous payment, if we know it.

receiver?DirectDebitPaymentReceiver

The receiving account of the collection.

resultCode?string

Additional information when status is FAILED, if available.

  • INVALID_AMOUNT: Requested debit amount is not valid. E.g. the amount is larger than the maximum amount allowed by the FAST network.
  • TRANSACTION_LIMIT_EXCEEDED: Requested debit amount exceeds the transaction limit enforced by the bank (e.g. cumulative daily transaction limit).
  • DIRECT_DEBIT_AUTHORIZATION_TERMINATED: Payer has terminated the Direct Debit Authorization.
  • DIRECT_DEBIT_AUTHORIZATION_EXPIRED: Direct Debit Authorization has expired.
  • PAYER_ACCOUNT_CLOSED: Payer's bank account has been closed.
  • INSUFFICIENT_FUNDS: Payer's bank account does not have sufficient balance.
  • DUPLICATE_TRANSACTION: This payment is not processed because it is a duplicate of a previous payment, ensure you use a unique customerReference.
  • INVALID_CLEARING_CODE: Clearing code is invalid or contains invalid characters.
  • OTHERS: Generic or unknown reason. If you need to find out more, reach out to Acme Support.
status?string

Status of the direct debit:

  • PROCESSING: This direct debit is being processed, and has not yet been submitted to the bank.
  • SUBMITTED: This direct debit has been submitted to the bank for further processing.
  • SUCCEEDED: The bank has accepted this direct debit for execution.
  • FAILED: The bank has rejected this direct debit. Additional information may be available in resultCode.
type?string

Type of the payment.

underlyingErrorMessage?string

A descriptive error message constructed from the bank's response, normally by concatenating the bank-provided error code and error message.

updatedAt?string

Time at which the object was last updated. In ISO 8601 format.

Example Request
curl -X POST 'https://api.tryacme.com/v1/direct-debit-payments' \
  -H 'Content-Type: application/json' \
  -d '{
  "customerReference": "string",
  "type": "FAST"
}'
Example Response

Collects against an Acme-maintained eGIRO authorization. FAST collections settle within seconds, so the response is already SUCCEEDED.

{
  "id": "dpymt_0J7Q7A2M8V5X1",
  "type": "FAST",
  "amount": 1250,
  "currency": "SGD",
  "directDebitAuthorizationId": "dda_0J7Q6A3M8V5X1",
  "customerReference": "SUB-2026-09",
  "receiver": {
    "bankAccountNumber": "0052312891"
  },
  "status": "SUCCEEDED",
  "resultCode": null,
  "underlyingErrorMessage": null,
  "bankReference": null,
  "createdAt": "2026-09-09T03:00:14.557605Z",
  "updatedAt": "2026-09-09T03:00:16.135109Z"
}