---
page_title: Withdraw a source
product: LotusPay
platform: Web
page_source: https://juspay.io/in/docs/lotuspay/web/core-resources/withdraw-a-source
openapi: https://juspay.io/in/docs/api/swagger?document=https%3A%2F%2Fjuspay.io%2Fin%2Fdocs%2Flotuspay%2Fweb%2Fcore-resources%2Fwithdraw-a-source
llms_txt: https://juspay.io/in/docs/llms.txt
product_llms_txt: https://juspay.io/in/docs/lotuspay/llms.txt
---

## API Version: default


# **Withdraw a source** 



Withdraws an existing source object. Supply the unique source ID from a source creation request and LotusPay will return the withdrawn source.

**ARGUMENTS** 


| Argument	 | Description |
|---|---|
| source REQUIRED	 | The identifier of the pending source to be withdrawn. Its status must be pending, and will transition to withdrawn. |


**Returns**  Returns a withdrawn source object if a valid identifier was provided.## Endpoints:
- Sandbox: https://api-test.lotuspay.com/v1/sources/{ID}/withdraw

- Production: https://api.lotuspay.com/v1/sources/{ID}/withdraw

## Request Type: 
POST

## Content-Type: 
application/json

## Authorization:

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

#### Request:
```Shell
$ curl https://api-test.lotuspay.com/v1/sources/SC004433221AA/withdraw \
  -u sk_test_xd22123sxlkadsf8wjbkx:

```

#### Response:
```json
{
    "id": "SC004433221AA",
    "object": "source",
    "created": 1530224170,
    "livemode": true,
    "metadata": {
    },
    "client_secret": null,
    "date_submitted": null,
    "date_withdrawn": "2022-01-01",
    "flow": "redirect",
    "nach_debit": {
      "amount_collection": null,
      "amount_maximum": 10000,
      "category_code": "L001",
      "category_description": "Loan installment amount",
      "creditor_agent_code": "HDFC",
      "creditor_agent_name": "HDFC BANK",
      "creditor_agent_mmbid": "HDFC0999999",
      "creditor_name": "LOTUSPAY SOLUTIONS PVT LTD",
      "creditor_utility_code": "NACH00000000005549",
      "date_first_collection": "2023-09-16",
      "date_final_collection": null,
      "date_of_mandate": "2023-09-15",
      "debtor_agent_code": "ICIC",
      "debtor_agent_name": "ICICI BANK",
      "debtor_agent_mmbid": "ICIC0000001",
      "debtor_account_name": "AMIT JAIN",
      "debtor_account_number": "****5678",
      "debtor_account_type": "savings",
      "debtor_email": "test@lotuspay.com",
      "debtor_mobile": "9123456789",
      "debtor_pan": null,
      "debtor_phone": null,
      "frequency": "MNTH",
      "instrument": "DEBIT",
      "occurrence_sequence_type": "RCUR",
      "reference1": "LOAN_ID_123",
      "reference2": null,
      "reference3": null,
      "reference4": null,
      "reference5": null,
      "variant": "physical"
    },
    "origin": "API",
    "redirect": {
    },
    "type": "nach_debit",
    "status": "withdrawn",
    "agent": null,
    "bank_account": null,
    "customer": null,
    "mandate": null,
    "nach_profile": "NP00AABBCC1122"
  }
```

## API Responses:


---

## See Also

- [Process a source](https://juspay.io/in/docs/lotuspay/web/core-resources/process-a-source)
- [Send a reminder invitation for a source](https://juspay.io/in/docs/lotuspay/web/core-resources/send-a-reminder-invitation-for-a-source)
