Get current profile¶
Profiles API v2
GET
https://api.mollie.com/v2/profiles/me
Authentication:API keys
Use this API if you are creating a plugin or SaaS application that allows users to enter a Mollie API key, and you want to give a confirmation of the website profile that will be used in your plugin or application.
This is similar to the Get current organization endpoint for OAuth.
Parameters¶
No parameters applicable for this endpoint.
Response¶
The profile object is returned, as described in Get profile.
Example¶
Request¶
cURLPHPPythonRubyNode.js
1 2 | curl -X GET https://api.mollie.com/v2/profiles/me \ -H "Authorization: Bearer access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ" |
1 2 3 4 | <?php $mollie = new \Mollie\Api\MollieApiClient(); $mollie->setAccessToken("access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ"); $profile = $mollie->profiles->getCurrent(); |
1 2 3 4 5 6 | from mollie.api.client import Client mollie_client = Client() mollie_client.set_access_token("access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ") profile = mollie_client.profiles.get("me") |
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 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 | HTTP/1.1 200 OK Content-Type: application/hal+json { "resource": "profile", "id": "pfl_v9hTwCvYqw", "mode": "live", "name": "My website name", "website": "https://www.mywebsite.com", "email": "info@mywebsite.com", "phone": "+31208202070", "businessCategory": "OTHER_MERCHANDISE", "categoryCode": 5399, "status": "verified", "review": { "status": "pending" }, "createdAt": "2018-03-20T09:28:37+00:00", "_links": { "self": { "href": "https://api.mollie.com/v2/profiles/pfl_v9hTwCvYqw", "type": "application/hal+json" }, "dashboard": { "href": "https://www.mollie.com/dashboard/org_123456789/settings/profiles/pfl_v9hTwCvYqw", "type": "text/html" }, "chargebacks": { "href": "https://api.mollie.com/v2/chargebacks", "type": "application/hal+json" }, "methods": { "href": "https://api.mollie.com/v2/methods", "type": "application/hal+json" }, "payments": { "href": "https://api.mollie.com/v2/payments", "type": "application/hal+json" }, "refunds": { "href": "https://api.mollie.com/v2/refunds", "type": "application/hal+json" }, "checkoutPreviewUrl": { "href": "https://www.mollie.com/payscreen/preview/pfl_v9hTwCvYqw", "type": "text/html" }, "documentation": { "href": "https://docs.mollie.com/reference/v2/profiles-api/get-profile-me", "type": "text/html" } } } |