---
title: "Disable stored details"
url: "https://docs.adyen.com/online-payments/classic-integrations/classic-api-integration/tokenization/disable-stored-details"
source_url: "https://docs.adyen.com/online-payments/classic-integrations/classic-api-integration/tokenization/disable-stored-details.md"
canonical: "https://docs.adyen.com/online-payments/classic-integrations/classic-api-integration/tokenization/disable-stored-details"
last_modified: "2020-07-14T12:41:00+02:00"
language: "en"
---

# Disable stored details

[View source](/online-payments/classic-integrations/classic-api-integration/tokenization/disable-stored-details.md)

**Adyen is no longer developing the Classic API integration**

This page is for the Classic API (`/authorise`) integration, which we no longer accept new integrations with.

We strongly recommend migrating to the newer [Manage tokens](/online-payments/tokenization/managing-tokens#delete-stored-details) integration. To use this newer integration, you must also [migrate to the Checkout API](/online-payments/upgrade-your-integration/migrate-to-checkout-api).

When you terminate your shopper's subscription, you need to disable the recurring contract to prevent charging this shopper with the previously [stored payment details](/online-payments/classic-integrations/classic-api-integration/tokenization/store-payment-details).

## Request

To disable stored details, send a request to the `/disable` endpoint. In this request specify the merchant account, shopper reference, and the contract type (either ONECLICK or RECURRING). You can also specify the reference of a particular recurring detail to disable, or skip this parameter to disable all recurring details for the specified shopper.

For information on all available fields, refer to the [/disable](https://docs.adyen.com/api-explorer/#/Recurring/disable) page.

The example below illustrates how to disable a one-click recurring detail. Submit this request to the <https://pal-test.adyen.com/pal/servlet/Recurring/v25/disable> endpoint.

#### JSON

```json
{
   "merchantAccount":"TestMerchant",
   "shopperReference":"YOUR_UNIQUE_SHOPPER_ID_IOfW3k9G2PvXFu2j",
   "recurringDetailReference":"8313147988756818",
   "contract":"ONECLICK"
}
```

#### Soap

```xml
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soap:Body>
    <ns1:disable xmlns:ns1="http://recurring.services.adyen.com">
      <ns1:request>
        <ns1:merchantAccount>TestMerchant</ns1:merchantAccount>
        <ns1:shopperReference>YOUR_UNIQUE_SHOPPER_ID_IOfW3k9G2PvXFu2j</ns1:shopperReference>
        <ns1:recurringDetailReference>8313147988756818</ns1:recurringDetailReference>
        <ns1:contract>ONECLICK</ns1:contract>
      </ns1:request>
    </ns1:disable>
  </soap:Body> 
</soap:Envelope>
```

#### curl

```bash
curl https://pal-test.adyen.com/pal/servlet/Recurring/v25/disable \
-H 'x-api-key: ADYEN_API_KEY' \
-H 'content-type: application/json' \
-d '{
 "merchantAccount": "TestMerchant",
 "shopperReference": "YOUR_UNIQUE_SHOPPER_ID",
 "recurringDetailReference": "8314897374042210",
 "contract": "ONECLICK"
}'
```

The following example shows how to disable all the details of a recurring contract. Submit this request to the <https://pal-test.adyen.com/pal/servlet/Recurring/v25/disable> endpoint.

#### JSON

```json
{
   "merchantAccount":"TestMerchant",
   "shopperReference":"YOUR_UNIQUE_SHOPPER_ID_IOfW3k9G2PvXFu2j",
   "recurringDetailReference":"8313147988756818"
}
```

#### Soap

```xml
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soap:Body>
    <ns1:disable xmlns:ns1="http://recurring.services.adyen.com">
      <ns1:request>
        <ns1:merchantAccount>TestMerchant</ns1:merchantAccount>
        <ns1:shopperReference>YOUR_UNIQUE_SHOPPER_ID_IOfW3k9G2PvXFu2j</ns1:shopperReference>
        <ns1:recurringDetailReference>8313147988756818</ns1:recurringDetailReference>
      </ns1:request>
    </ns1:disable>
  </soap:Body> 
</soap:Envelope>
```

#### curl

```bash
curl https://pal-test.adyen.com/pal/servlet/Recurring/v25/disable \
-H 'x-api-key: ADYEN_API_KEY' \
-H 'content-type: application/json' \
-d '{
 "merchantAccount": "TestMerchant",
 "shopperReference": "YOUR_UNIQUE_SHOPPER_ID",
 "recurringDetailReference": "8314897374042210"
}'
```

## Response

The response to the `/disable` endpoint contains only a `response` field of a string type.

Possible values:

* `[detail-successfully-disabled]` - when a single detail is disabled.
* `[all-details-successfully-disabled]` - when all the details are disabled.

For information on all available fields, refer to the [/disable](https://docs.adyen.com/api-explorer/#/Recurring/disable) page.

The following examples shows the response in case all recurring details are successfully disabled:

#### JSON

```json
{
   "response":"[all-details-successfully-disabled]"
}
```

#### Soap

```xml
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soap:Body>
    <ns1:disableResponse xmlns:ns1="http://recurring.services.adyen.com">
      <ns1:result>
        <ns1:response>[all-details-successfully-disabled]</ns1:response>
      </ns1:result>
    </ns1:disableResponse>
  </soap:Body> 
</soap:Envelope>
```
