Disable payment method

Profiles API v2
DELETEhttps://api.mollie.com/v2/profiles/*id*/methods/*method*
DELETEhttps://api.mollie.com/v2/profiles/me/methods/*method*
Authentication:API keys

Disable a payment method on a specific or authenticated profile.

Warning

Disabling a payment method may affect more integrations of the organization than just your own. In general, explicitly disabling a payment method is not necessary.

Parameters

Replace id in the endpoint URL by the profile’s ID, for example pfl_v9hTwCvYqw and method with the name of the method’s ID you want to disable, for example bancontact.

Response

204 No Content

Example

Request

cURLPHPPythonRubyNode.js
1
2
curl -X DELETE https://api.mollie.com/v2/profiles/pfl_v9hTwCvYqw/methods/ideal \
    -H "Authorization: Bearer access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ"
1
2
3
4
5
6
<?php
$mollie = new \Mollie\Api\MollieApiClient();
$mollie->setAccessToken("access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ");
$profile = $mollie->profiles->get('pfl_v9hTwCvYqw'));

$profile->disableMethod('ideal');
1
2
3
4
5
6
7
from mollie.api.client import Client

mollie_client = Client()
mollie_client.set_access_token("access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ")

profile = mollie_client.profiles.get("pfl_v9hTwCvYqw")
profile.methods.delete("ideal")
1
2
3
4
We don't have a Ruby code example for this API call yet.

If you have some time to spare, feel free to share suggestions on our Discord:
https://discord.gg/VaTVkXB4aQ
1
2
3
4
We don't have a Node.js code example for this API call yet.

If you have some time to spare, feel free to share suggestions on our Discord:
https://discord.gg/VaTVkXB4aQ

Response

1
HTTP/1.1 204 No Content