> ## Documentation Index
> Fetch the complete documentation index at: https://adyen-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Disable Stored Details

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

**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](https://adyen-preview.mintlify.site/online-payments/tokenization/managing-tokens.md#delete-stored-details) integration. To use this newer integration, you must also [migrate to the Checkout API](https://adyen-preview.mintlify.site/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](https://adyen-preview.mintlify.site/online-payments/classic-integrations/classic-api-integration/tokenization/store-payment-details.md).

## 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](https://pal-test.adyen.com/pal/servlet/Recurring/v25/disable) endpoint.

#### JSON

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

#### Soap

```xml theme={null}
<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 theme={null}
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](https://pal-test.adyen.com/pal/servlet/Recurring/v25/disable) endpoint.

#### JSON

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

#### Soap

```xml theme={null}
<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 theme={null}
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 theme={null}
{
   "response":"[all-details-successfully-disabled]"
}
```

#### Soap

```xml theme={null}
<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>
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.