Enable payment method

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

Enable a payment method on a specific or authenticated profile to use it with payments.

Note

Some payment methods might need extra steps to be activated, for example an OAuth connection with the supplier. In those cases, the status will be set to pending-external and the response will contain a link to continue the activation.

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 activate, for example ideal. There is no need to set body parameters in this POST request.

Response

An objects of method will be returned as described in Get method.

Example

Request

cURLPHPPythonRubyNode.js
1
2
curl -X POST 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->enableMethod('ideal');
1
2
3
4
5
6
from mollie.api.client import Client

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

mollie_client.profile_methods.with_parent_id('pfl_v9hTwCvYqw', 'ideal').create()
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 open a pull request at:
https://github.com/mollie/api-documentation
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 open a pull request at:
https://github.com/mollie/api-documentation

Response

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
HTTP/1.1 201 Created
Content-Type: application/hal+json; charset=utf-8

{
     "resource": "method",
     "id": "ideal",
     "description": "iDEAL",
     "minimumAmount": {
         "value": "0.01",
         "currency": "EUR"
     },
     "maximumAmount": {
         "value": "50000.00",
         "currency": "EUR"
     },
     "image": {
         "size1x": "https://www.mollie.com/external/icons/payment-methods/ideal.png",
         "size2x": "https://www.mollie.com/external/icons/payment-methods/ideal%402x.png",
         "svg": "https://www.mollie.com/external/icons/payment-methods/ideal.svg"
     },
     "status": "activated",
     "_links": {
         "self": {
             "href": "https://api.mollie.com/v2/methods/ideal",
             "type": "application/hal+json"
         },
         "documentation": {
             "href": "https://docs.mollie.com/reference/v2/profiles-api/enable-method",
             "type": "text/html"
         }
     }
 }