Create a Direct Debit Authorization
Acme will fail the Direct Debit Authorization if we do not receive an authorization response within 20 minutes after creation for RETAIL payer segment, and 48 hours for CORPORATE payer segment. The status field will be set to FAILED, with failureReason set to PAYER_AUTHORIZATION_TIMEOUT. This can happen if the payer did not complete the authorization flow on their bank's website.
For a payer at DBS, the time limit ends once the payer has approved: Acme then waits for DBS's answer, which can take several hours. If the bank confirms a Singapore authorization after its time limit, Acme changes it from FAILED to SUCCEEDED and sends a direct-debit-authorizations.succeeded webhook.
Test mode
With a test API key, some values make this endpoint succeed, fail or wait. See the test mode values for this endpoint.
authorizationAuthorizationBearer <SECRET_API_KEY>Set Your Secret API Key
A unique value, eg. a UUID.
application/jsonBill reference number for your payer. Must be at most 35 characters. Only alphanumeric characters and dashes are accepted. This must be unique for each new Direct Debit Authorization that you create.
^[a-zA-Z0-9\-]+$1 <= length <= 35Business unit identifier, where your organization uses one.
1 <= length <= 5Value in
- "SG"
- "MY"
- "HK"
- "KR"
- "AU"
- "US"
- "ID"
- "TW"
- "BR"
- "DK"
- "PH"
- "VN"
- "AE"
- "GB"
- "IN"
- "MX"
- "CN"
If the payer sets an expiry date earlier than this end date with their bank during authorization, Acme will fail this authorization.
dateA positive integer value in the specified currency's smallest unit. E.g. SGD $10 will be represented as 1000 (in cents). Some banks allow payers to set deduction limits when they are approving the Direct Debit Authorizations. If the payer sets a deduction limit that is lower than maxAmount, Acme will fail the Direct Debit Authorization. Deprecated: use precheckMinAmount and precheckMaxAmount instead.
1 <= value <= 20000000Three-letter ISO 4217 currency code in full uppercase. Currently supports SGD. Deprecated: use precheckCurrency instead.
Payer's name.
1 <= length <= 140Your payer's segment: RETAIL or CORPORATE.
Value in
- "CORPORATE"
- "RETAIL"
Your payer's bank SWIFT/BIC code. Use List Direct Debit Banks for the banks that support eGIRO and their current status.
^[A-Z0-9]{4}SG[A-Z0-9]{5}$1 <= lengthThree-letter ISO 4217 currency code in full uppercase. Currently supports SGD. This is required if either precheckMinAmount or precheckMaxAmount is set.
A positive integer value in the specified currency's smallest unit. E.g. SGD $10 will be represented as 1000 (in cents).
If you attempt to create a Direct Debit Payment (for this Direct Debit Authorization) with an amount greater than precheckMaxAmount, Acme will reject the Direct Debit Payment request. Use this as a guardrail to prevent yourself from overcharging your payers.
If the payer sets a deduction limit that is lower than precheckMaxAmount, precheckMaxAmount will be updated to the lower deduction limit.
If precheckMaxAmount is not set, it will be updated to the deduction limit set by the payer. If the payer does not set a deduction limit, and the payer's bank does not set a default deduction limit, Acme will set precheckMaxAmount to SGD $200,000.00.
1 <= value <= 20000000A positive integer value in the specified currency's smallest unit. E.g. SGD $10 will be represented as 1000 (in cents). Some banks allow payers to set deduction limits when they are approving Direct Debit Authorizations. If the payer sets a deduction limit that is lower than precheckMinAmount, Acme will fail the Direct Debit Authorization. If you attempt to create a Direct Debit Payment with an amount lower than precheckMinAmount, Acme will reject the Direct Debit Payment request.
1 <= value <= 20000000Payer will be redirected to this URL after they have authorized the Direct Debit Authorisation at their bank's website.
^[A-Za-z][A-Za-z0-9+\-\.]+:\/\/[^:\?\/]+(:[0-9]+)?((\/[^\/\?]*)*\/?(\?[^\?\/]*)?)?$0 <= length <= 2048Bill reference number for your payer. Numeric, up to 10 digits, unique for each new Direct Debit Authorization that you create.
^[0-9]+$1 <= length <= 10Value in
- "SG"
- "MY"
- "HK"
- "KR"
- "AU"
- "US"
- "ID"
- "TW"
- "BR"
- "DK"
- "PH"
- "VN"
- "AE"
- "GB"
- "IN"
- "MX"
- "CN"
Your payer's identity number, based on the identity type.
1 <= length <= 35Your payer's identity type.
Value in
- "NEW_IC"
- "OLD_IC"
- "PASSPORT"
- "BUSINESS_REGISTRATION"
- "OTHERS"
Payer's name.
^[A-Za-z0-9 '\-/.]+$1 <= length <= 140Your payer's segment: RETAIL or CORPORATE.
Value in
- "CORPORATE"
- "RETAIL"
Your payer's bank SWIFT/BIC code. Use List Direct Debit Banks for the banks that support direct debit for each payer segment and their current status.
^[A-Z0-9]{4}MY[A-Z0-9]{5}$1 <= lengthCurrency of the precheck maximum amount. Must be MYR. This field is required when precheckMaxAmount is provided.
A positive integer value in the specified currency's smallest unit. E.g. RM10 will be represented as 1000 (in cents). If you attempt to create a Direct Debit Payment (for this Direct Debit Authorization) with an amount greater than precheckMaxAmount, Acme will reject the Direct Debit Payment request.
1 <= value <= 100000000Payer will be redirected to this URL after they have authorized the Direct Debit Authorisation at their bank's website.
^[A-Za-z][A-Za-z0-9+\-\.]+:\/\/[^:\?\/]+(:[0-9]+)?((\/[^\/\?]*)*\/?(\?[^\?\/]*)?)?$0 <= length <= 2048Bill reference number for your payer's reference. For HSBC: 1 to 18 upper-case letters or digits, and unique among your pending and succeeded authorizations for the same payer account.
^[a-zA-Z0-9&()/\-@,.'*" ]+$1 <= length <= 35Value in
- "SG"
- "MY"
- "HK"
- "KR"
- "AU"
- "US"
- "ID"
- "TW"
- "BR"
- "DK"
- "PH"
- "VN"
- "AE"
- "GB"
- "IN"
- "MX"
- "CN"
The DDA expiry date. If not specified, the value will be defaulted as "2099-12-31".
dateYour payer's unique account number without bank and branch code. Value must be in numeric. For HSBC, at most 12 digits.
^[0-9]+$1 <= length <= 503 digits local clearing code. Please refer to the Clearing Code and Branch Code List published by Hong Kong Interbank Clearing Limited (HKICL) for the most updated codes.
^[0-9]{3}$3 <= length <= 3Your payer's email address provided as the contact details (Optional). Not sent to HSBC, which has no field for it.
^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9.-]+$0 <= length <= 150Your payer's identity number, based on the identity type. For HSBC: an HKID has no brackets, and its check digit, if given, must be valid (A1234563 or A123456), a passport number is at most 12 characters, other types at most 18.
^[A-Z0-9]+$0 <= length <= 35Your payer's identity type.
Value in
- "HKID"
- "PASSPORT"
- "BUSINESS_REGISTRATION_NUMBER"
- "CERTIFICATE_OF_INCORPORATION_NUMBER"
- "OTHER"
Your payer's mobile number provided as the contact details (Optional). Must follow the format +852XXXXXXXX, where X is a digit and the number must be 8 digits long (excluding country code). E.g: +85212345678. For HSBC, required when payerBankCode is 004: HSBC sends the OTP only if it matches the number the bank holds for your payer.
^\+[1-9]\d+$0 <= length <= 35Payer's name.
^[a-zA-Z0-9.@()/\-& ]+1 <= length <= 140Currency of the precheck maximum amount. Must be HKD. This field is required when precheckMaxAmount is provided.
A positive integer value in the specified currency's smallest unit. This can be used to set a maximum transaction amount for this DDA. If you attempt to create a Direct Debit Payment (for this Direct Debit Authorization) with an amount greater than this value, Acme will reject the Direct Debit Payment request. For HSBC, a whole HKD amount; amounts of HKD 99,999,999 or more mean no limit.
1 <= value <= 9999999999900Language of the SMS the bank sends your payer, as a BCP 47 tag: en (English), zh-Hant (Traditional Chinese) or zh-Hans (Simplified Chinese). Defaults to en. HSBC Hong Kong only.
Value in
- "en"
- "zh-Hant"
- "zh-Hans"
Name of the person the direct debit is ultimately collected for, when it is not the account holder. HSBC Hong Kong only.
0 <= length <= 140OK
*/*Redirect payer to this URL for logging into their bank to perform authorization. This is only present when the DDA status is REQUIRES_AUTHORIZATION. Not applicable for HK DDA.
Bill reference number for your payer.
Payer will be redirected to this URL after they have cancelled the Direct Debit Authorisation at their bank's website. This is only present when you request for cancellation. Not applicable for HK DDA.
Redirect payer to this URL for logging into their bank to perform cancellation. This is only present when you request for cancellation. Not applicable for HK DDA.
Time at which the object was created. In ISO 8601 format.
The DDA expiry date. For HK DDA, if not specified, the value will be defaulted as "2099-12-31".
If status is FAILED, this provides additional information about the failure.
PAYER_AUTHORIZATION_FAILED: Payer has failed to authorize the Direct Debit Authorization.PAYER_AUTHORIZATION_TIMEOUT: Acme did not receive an authorization response in time. Acme will wait up to 20 minutes forRETAILpayer segment Direct Debit Authorizations, and up to 48 hours forCORPORATEpayer segment Direct Debit Authorizations. For a payer at DBS, the time limit ends once the payer has approved. If the bank confirms a Singapore authorization after its time limit, it becomesSUCCEEDED.PAYER_SPECIFIED_LOWER_MAX_AMOUNT: Payer has authorized the Direct Debit Authorization with a lower maximum amount than what is required.PAYER_SPECIFIED_EARLIER_END_DATE: Payer has authorized the Direct Debit Authorization with an earlier end date than what is required.
For HK DDA, Acme's internal failure code according to the bank's returned error:
PAYER_ID_TYPE_INVALID: Invalid payer's proxy type provided.PAYER_ID_NUMBER_INVALID: Invalid payer's proxy value provided.PAYER_ACCOUNT_CLOSED: Payer's account is closed.PAYER_ACCOUNT_TYPE_NOT_SUPPORTED: Payer's account is not supported for direct debit authorization.PAYER_ACCOUNT_TYPE_INVALID: Invalid payer's account number.PAYER_ACCOUNT_NAME_NOT_MATCHED: Payer's account name not matched.PAYER_ACCOUNT_NOT_FOUND: Payer's account does not exist.PAYER_ACCOUNT_NAME_AND_ID_NOT_MATCHED: Payer's proxy value and account name not matched.PAYER_MOBILE_NUMBER_INVALID: Invalid payer's mobile number.DUPLICATE_BILL_REFERENCE_NUMBER: Duplicated bill reference number.OTHERS: Unrecognized error message will be defaulted as OTHERS.
Unique identifier for the object. For HK DDA, Acme sends the id to the bank as referenceId (e.g. dda_0KAQCK2Y8FNTB, formatted as dda-0KAQCK2Y8FNTB), which is used for tracking the DDA request and may appear in bank notifications/portals. Note: this is different from the billReferenceNumber you provide and is what typically appears on your payer's bank statement.
Deprecated: use precheckMaxAmount instead.
int64Deprecated: use precheckCurrency instead. Not applicable for HK DDA.
Metadata of the direct debit authorization, when present.
The SMS one-time password the bank sent your payer. Present while an HSBC Hong Kong direct debit authorization for an HSBC account is REQUIRES_AUTHORIZATION, unless the bank's answer to the create was lost: call /otp-regeneration to get one.
Maximum payment amount authorized by the payer with their bank, in SGD minor units. Only populated for SG eGIRO Direct Debit Authorizations, and only after the payer has approved. For other DDA types (e.g. HK, Malaysia FPX), this always returns 0 regardless of any cap set via precheckMaxAmount — check that field instead.
int64Payer's bank account number. This field is only set after the payer has approved the Direct Debit Authorization.
3-digit local clearing code of the payer's bank. Hong Kong direct debit authorizations only.
Hash value of the payer's identification number stored in the payer's bank system. Not applicable for HK DDA.
Payer's identification type stored in the payer's bank system (e.g. NRIC, FIN, PASSPORT, UEN). Not returned for HK DDA.
Payer's name.
Your payer's segment: RETAIL or CORPORATE. Not applicable for HK DDA.
Payer's bank SWIFT/BIC code. Not applicable for HK DDA.
Three-letter ISO 4217 currency code in full uppercase.
Direct Debit Payments above this amount (in the currency's smallest unit) are rejected by Acme without being sent to the bank. For HK DDA, this can be used to set a maximum transaction amount for this DDA.
int64Direct Debit Payments below this amount (in the currency's smallest unit) are rejected by Acme without being sent to the bank.
int64Payer will be redirected to this URL after they have authorized the Direct Debit Authorisation at their bank's website. Not applicable for HK DDA.
Effective date of the direct debit authorization.
Status of the Direct Debit Authorization:
REQUIRES_AUTHORIZATION: Requires the payer to perform authorization with their bank.PROCESSING: A creation callback was received from the payer's bank. Normally, a DDA will transition very quickly fromPROCESSINGtoSUBMITTED.SUBMITTED: The DDA was sent on and awaits the final answer: from the Industry Aggregator for Singapore, or from the payer's bank for Hong Kong.SUCCEEDED: The DDA has been created successfully with the bank and is ready to be used for creating Direct Debit Payments.FAILED: The DDA creation failed. You should create a new DDA if you wish to try again. A Singapore DDA failed withPAYER_AUTHORIZATION_TIMEOUTbecomesSUCCEEDEDif the bank confirms it later.CANCELED: The DDA has been canceled by the payer. For HSBC Hong Kong, also when HSBC's daily report shows the mandate cancelled, expired or deleted after it was active.
Transaction reference from the bank, when available.
A descriptive error message constructed from the bank's response, normally by concatenating the bank-provided error code and error message. This field is intended to aid troubleshooting and may vary depending on the bank.
Time at which the object was last updated. In ISO 8601 format.
curl -X POST 'https://api.tryacme.com/v1/direct-debit-authorizations' \
-H 'Content-Type: application/json' \
-d '{
"billReferenceNumber": "A0012334455",
"payerSwiftBic": "DBSSSGSGXXX",
"payerSegment": "RETAIL",
"payerName": "Richard Hendricks",
"precheckMaxAmount": 100000,
"precheckCurrency": "SGD",
"endDate": "2042-04-24",
"returnUrl": "https://example.com/return"
}'Redirect the payer to authorizeUrl to approve the authorization at their bank. payerBankAccountNumber is filled in once they approve.
{
"id": "dda_0J7Q6A3M8V5X1",
"billReferenceNumber": "A0012334455",
"payerSwiftBic": "DBSSSGSGXXX",
"payerBankCode": null,
"payerSegment": "RETAIL",
"payerName": "Richard Hendricks",
"payerBankAccountNumber": null,
"payerIdHash": null,
"payerIdType": null,
"status": "REQUIRES_AUTHORIZATION",
"failureReason": null,
"underlyingErrorMessage": null,
"startDate": "2026-09-09",
"precheckMinAmount": null,
"precheckMaxAmount": 100000,
"precheckCurrency": "SGD",
"maxAmount": 100000,
"maxAmountCurrency": "SGD",
"payerAuthorizedMaxAmount": 0,
"endDate": "2042-04-24",
"authorizeUrl": "https://api.tryacme.com/redirection/direct-debit-authorizations/dda_0J7Q6A3M8V5X1/authorize?key=0J7Q6A4NRX2W8K",
"cancelUrl": null,
"returnUrl": "https://example.com/return",
"cancelReturnUrl": null,
"transactionReference": null,
"createdAt": "2026-09-09T02:10:11.204118Z",
"updatedAt": "2026-09-09T02:10:11.204118Z"
}