Get payment method¶
GET
https://api.mollie.com/v2/methods/*id*
Retrieve a single method by its ID. Note that if a method is not available on the website profile a status
404 Not found
is returned. When the method is not enabled, a status 403 Forbidden
is returned. You can enable
payments methods via the Enable payment method endpoint in the
Profiles API, or via your Mollie Dashboard.
If you do not know the method’s ID, you can use the methods list endpoint to retrieve all payment methods that are available.
Additionally, it is possible to check if Wallets such as Apple Pay are enabled by passing the
wallet ID (applepay
) as the method ID.
Parameters¶
Replace id
in the endpoint URL by the methods’s ID. For example: https://api.mollie.com/v2/methods/ideal
.
locale
stringoptionalPassing a locale will translate the payment method name in the corresponding language.
Possible values: en_US
en_GB
nl_NL
nl_BE
fr_FR
fr_BE
de_DE
de_AT
de_CH
es_ES
ca_ES
pt_PT
it_IT
nb_NO
sv_SE
fi_FI
da_DK
is_IS
hu_HU
pl_PL
lv_LV
lt_LT
currency
stringoptionalminimumAmount
and maximumAmount
in. We will return an error when the currency
is not supported by the payment method.Access token parameters¶
If you are using organization access tokens or are creating an
OAuth app, you have to specify which profile you are retrieving the payment method details
for using the profileId
parameter. Organizations can have multiple profiles for each of their websites. See
Profiles API for more information.
For these authentication methods the optional testmode
parameter is available as well to enable test mode.
pfl_3RkSN1zuPE
.true
to list all methods available in testmode.Includes¶
This endpoint allows you to include additional information by appending the following values via the include
querystring parameter.
issuers
Include issuers available for the payment method (for iDEAL, KBC/CBC payment button, gift cards, or meal vouchers).pricing
Include pricing for each payment method.
Response¶
200
application/hal+json
resource
stringmethod
for this endpoint.id
stringdescription
stringminimumAmount
amount objectThe minimum payment amount required to use this payment method.
currency
stringvalue
stringmaximumAmount
amount objectThe maximum payment amount allowed when using this payment method.
Note
When there is no maximum amount for the payment method, this parameter will return null
.
currency
stringvalue
stringimage
image objectThe URLs of images representing the payment method.
size1x
stringsize2x
stringsvg
stringstatus
stringThe status that the method is in.
Possible values:
activated
: The payment method is activated and ready for use.pending-boarding
: Mollie is waiting for you to finish onboarding in the Merchant Dashboard before the payment method can be activated.pending-review
: Mollie needs to review your request for this payment method before it can be activated.pending-external
: Activation of this payment method relies on you taking action with an external party, for example signing up with PayPal or a giftcard issuer.rejected
: Your request for this payment method was rejected. Whenever Mollie rejects such a request, you will always be informed via email.null
: This payment method was not requested.
pricing
arrayPricing set of the payment method what will be include if you add the parameter.
description
stringfixed
amount objectThe fixed price per transaction.
currency
stringvalue
stringvariable
stringfeeRegion
stringoptional_links
objectAn object with several URL objects relevant to the payment method. Every URL object will contain an href
and a
type
field.
self
URL objectdocumentation
URL objectExample¶
1 2 | curl -X GET https://api.mollie.com/v2/methods/ideal?include=issuers \ -H "Authorization: Bearer live_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM" |
1 2 3 4 | <?php $mollie = new \Mollie\Api\MollieApiClient(); $mollie->setApiKey("test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM"); $mollie->methods->get("ideal", ["include" => "issuers,pricing"]); |
1 2 3 4 5 6 | from mollie.api.client import Client mollie_client = Client() mollie_client.set_api_key("test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM") method = mollie_client.methods.get("ideal", include="issuers,pricing") |
1 2 3 4 5 6 7 | require 'mollie-api-ruby' Mollie::Client.configure do |config| config.api_key = 'test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM' end Mollie::Method.get('ideal', include: 'issuers,pricing') |
1 2 3 4 | const { createMollieClient } = require('@mollie/api-client'); const mollieClient = createMollieClient({ apiKey: 'test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM' }); const method = await mollieClient.methods.get('ideal', { include: ['issuers', 'pricing'] }); |
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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | HTTP/1.1 200 OK Content-Type: application/hal+json { "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" }, "issuers": [ { "resource": "issuer", "id": "ideal_ABNANL2A", "name": "ABN AMRO", "image": { "size1x": "https://www.mollie.com/external/icons/ideal-issuers/ABNANL2A.png", "size2x": "https://www.mollie.com/external/icons/ideal-issuers/ABNANL2A%402x.png", "svg": "https://www.mollie.com/external/icons/ideal-issuers/ABNANL2A.svg" } }, { "resource": "issuer", "id": "ideal_ASNBNL21", "name": "ASN Bank", "image": { "size1x": "https://www.mollie.com/external/icons/ideal-issuers/ASNBNL21.png", "size2x": "https://www.mollie.com/external/icons/ideal-issuers/ASNBNL21%402x.png", "svg": "https://www.mollie.com/external/icons/ideal-issuers/ASNBNL21.svg" } }, { }, { } ], "status": "activated", "pricing": [ { "description": "The Netherlands", "fixed": { "value": "0.29", "currency": "EUR" }, "variable": "0" } ], "_links": { "self": { "href": "https://api.mollie.com/v2/methods/ideal", "type": "application/hal+json" }, "documentation": { "href": "https://docs.mollie.com/reference/v2/methods-api/get-method", "type": "text/html" } } } |