Authorize

Connect API
GEThttps://www.mollie.com/oauth2/authorize

The Authorize endpoint is the endpoint on Mollie web site where the merchant logs in, and grants authorization to your client application. E.g. when the merchant clicks on the Connect with Mollie button, you should redirect the merchant to the Authorize endpoint.

You should construct the Authorize URL from the endpoint and the parameters below. Then, you should redirect the resource owner to the Authorize endpoint.

The resource owner can then grant the authorization to your client application for the scopes you have requested.

Mollie will then redirect the resource owner to the redirect_uri you have specified. The redirect_uri will be appended with a code parameter, which will contain the auth token. You should then exchange the auth token for an access token using the Tokens API.

Parameters

client_id

string
required
The client ID you receive when registering your app.

redirect_uri

string
optional
The URL the merchant is sent back to once the request has been authorized. If given, it must match the URL you set when registering your app.

state

string
required
A random string generated by your app to prevent CSRF attacks.

scope

string
required
A space separated list of permissions your app requires. Refer to Permissions for more information about the available scopes.

response_type

string
required

Mollie only replies with code responses.

Possible values: code

approval_prompt

string
required

This parameter can be set to force to force showing the consent screen to the merchant, even when it is not necessary.

Possible values: auto force

Response

301 Redirect

code

string
The auth code, with which you can request an access token.

state

string
The random string you’ve sent with your request to prevent CSRF attacks. Please always check if this matches the expected value.

error

string
If the request is canceled by the merchant, or fails for any other reason, the merchant will be redirected back with an error field. The field will contain a code indicating the type of error.

error_description

string
If the error field is present, this field will be present as well with an explanation of the error code.

Example

Please refer to the documentation of the Mollie API client you are using.