--- 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  endpoint. #### JSON ```json { "merchantAccount":"TestMerchant", "shopperReference":"YOUR_UNIQUE_SHOPPER_ID_IOfW3k9G2PvXFu2j", "recurringDetailReference":"8313147988756818", "contract":"ONECLICK" } ``` #### Soap ```xml TestMerchant YOUR_UNIQUE_SHOPPER_ID_IOfW3k9G2PvXFu2j 8313147988756818 ONECLICK ``` #### 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  endpoint. #### JSON ```json { "merchantAccount":"TestMerchant", "shopperReference":"YOUR_UNIQUE_SHOPPER_ID_IOfW3k9G2PvXFu2j", "recurringDetailReference":"8313147988756818" } ``` #### Soap ```xml TestMerchant YOUR_UNIQUE_SHOPPER_ID_IOfW3k9G2PvXFu2j 8313147988756818 ``` #### 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 [all-details-successfully-disabled] ```