Delete profile

Profiles API v2
DELETEhttps://api.mollie.com/v2/profiles/*id*

This endpoint enables profile deletions, rendering the profile unavailable for further API calls and transactions.

Parameters

Replace id in the endpoint URL by the profile’s ID, for example pfl_v9hTwCvYqw.

Response

204 No Content

Example

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

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

mollie_client.profiles.delete("pfl_v9hTwCvYqw")
1
2
3
4
5
6
7
require 'mollie-api-ruby'

Mollie::Client.configure do |config|
  config.api_key = 'access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ'
end

Mollie::Profile.delete('pfl_v9hTwCvYqw')
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