---
page_title: Cancel an ACH debit
product: lotuspay
platform: web
page_source: https://docs.juspay.io/lotuspay/web/core-resources/cancel-an-ach-debit
openapi: https://docs.juspay.io/api/swagger?document=https%3A%2F%2Fdocs.juspay.io%2Flotuspay%2Fweb%2Fcore-resources%2Fcancel-an-ach-debit
llms_txt: https://docs.juspay.io/llms.txt
product_llms_txt: https://docs.juspay.io/lotuspay/llms.txt
---

## API Version: default


# **Cancel an ACH debit** 



Cancels an existing ACH debit object. Supply the unique ACH debit identifier. The ACH debit must be in the cancellable status, i.e. `pending`. ACH debits cannot be cancelled after the cutoff time on the charge date because that is the time they are submitted to the banking system.

**ARGUMENTS** 


| Argument | Description |
|---|---|
| ach_debit REQUIRED	 | The identifier of the ACH debit to be cancelled. |


**Returns**  Returns a cancelled ACH debit object if a valid identifier was provided.## Endpoints:
- Sandbox: https://api-test.lotuspay.com/v1/ach_debits/{ID}/cancel

- Production: https://api.lotuspay.com/v1/ach_debits/{ID}/cancel

## Request Type: 
POST

## Content-Type: 
application/json

## Authorization:

#### Basic Auth:
Auth example
- Value:  sk_test_XjIHowXWSI23uvjepz2X82
## Sample Code Snippets:
### Sample Request and Response:

#### Request:
```Shell
$ curl https://api-test.lotuspay.com/v1/ach_debits/ND004433221AA/cancel \
   -u sk_test_XjIHowXWSI23uvjepz2X82: \
   -X POST

```

#### Response:
```json
{
  "id": "ND0044332211AA",
  "object": "ach_debit",
  "created": 1530224170,
  "livemode": false,
  "metadata": {
  },
  "amount": 10000,
  "creditor_agent_code": "ICIC",
  "creditor_agent_mmbid": "ICIC0TREA00",
  "creditor_name": "LOTUSPAY SOLUTIONS PVT LTD",
  "creditor_utility_code": "NACH00000000005549",
  "date_charge": "2020-01-01",
  "date_response": null,
  "debtor_account_name": "Amit Jain",
  "debtor_account_number": "****5678",
  "debtor_agent_code": "HDFC",
  "debtor_agent_mmbid": "HDFC0000727",
  "mandate_reference1": "LOAN123",
  "product_type": "10",
  "reference": "LOTUSPAY44332211AA",
  "reference2": null,
  "reference3": null,
  "reference4": null,
  "reference5": null,
  "reference_creditor": null,
  "umrn": "HDFC000012345678",
  "response_code": null,
  "response_description": null,
  "response_flag": null,
  "response_sequence_number": null,
  "status": "cancelled",
  "ach_debit_collection": null,
  "customer": "CU001234DDAABB",
  "mandate": "MD0011DD22RR33",
  "nach_profile": "NP00AABBCC11DD",
  "settlement": null
}

```

## API Responses:
