# Regenerate a Direct Debit Authorization OTP (https://docs.tryacme.com/reference/post-direct-debit-authorizations-id-otp-regeneration)

> For AI agents: the documentation index is at [llms.txt](https://docs.tryacme.com/llms.txt), with every page in one file at [llms-full.txt](https://docs.tryacme.com/llms-full.txt). Each page is also available as Markdown by appending `.md` to its URL.

`POST /v1/direct-debit-authorizations/{id}/otp-regeneration`

Fields are written as `name*type` when required and `name?type` when optional.

HSBC Hong Kong only. Sends your payer a new one-time password and returns it as a new `otp.id`; the previous OTP stops working. The bank sends at most 2 OTPs a day for an authorization, the first one included.

## Authorization

`authorization`

`AuthorizationBearer <token>`

Set Your Secret API Key

In: `header`

## Path Parameters

`id*string`

## Header Parameters

`Idempotency-Key?string`

A unique value, eg. a UUID.

## Response Body

### 200 `*/*`

### 422 `*/*`

### 429 `application/json`

#### Request example (cURL)

```bash
curl -X POST "https://example.com/v1/direct-debit-authorizations/string/otp-regeneration"
```

#### Response example (200)

1-hk-edda-hsbc

```json
{
  "id": "dda_0KAQCK2Y8FNTB",
  "billReferenceNumber": "A0012334455",
  "payerSwiftBic": "HSBCHKHHHKH",
  "payerBankCode": "004",
  "payerSegment": null,
  "payerName": "Wong Ka Ming",
  "payerBankAccountNumber": "511123456888",
  "payerIdHash": null,
  "payerIdType": null,
  "status": "REQUIRES_AUTHORIZATION",
  "failureReason": null,
  "underlyingErrorMessage": null,
  "startDate": "2026-10-05",
  "precheckMinAmount": 0,
  "precheckMaxAmount": 1000000,
  "precheckCurrency": "HKD",
  "maxAmount": null,
  "maxAmountCurrency": null,
  "payerAuthorizedMaxAmount": 0,
  "endDate": null,
  "authorizeUrl": null,
  "cancelUrl": null,
  "returnUrl": null,
  "cancelReturnUrl": null,
  "transactionReference": "D261005J2344",
  "createdAt": "2026-10-05T04:00:00.000000Z",
  "updatedAt": "2026-10-05T04:03:40.000000Z",
  "otp": {
    "id": "K7Q",
    "mobileNumber": "85291******"
  }
}
```
