Get current organization¶
Organizations API v2
GET
https://api.mollie.com/v2/organizations/me
Authentication:Organization access tokensApp access tokens
Retrieve the currently authenticated organization.
Parameters¶
No parameters applicable for this endpoint.
Response¶
200
application/hal+json
For the full list of fields, see Get organization. Only
_links
is listed here.
_links
objectAn object with several URL objects relevant to the organization. Every URL object will contain an href
and
a type
field.
self
URL object
The API resource URL of the organization itself.
chargebacks
URL object
The API resource URL where the organization’s chargebacks
can be retrieved.
customers
URL object
The API resource URL where the organization’s customers can be
retrieved.
invoices
URL object
The API resource URL where the organization’s invoices can be
retrieved.
payments
URL object
The API resource URL where the organization’s payments can be
retrieved.
profiles
URL object
The API resource URL where the organization’s profiles can be
retrieved.
refunds
URL object
The API resource URL where the organization’s refunds can be
retrieved.
settlements
URL object
The API resource URL where the organization’s settlements
can be retrieved.
dashboard
URL object
The URL to the organization dashboard
documentation
URL object
The URL to the payment method retrieval endpoint documentation.
Example¶
cURLPHPPythonRubyNode.js
1 2 | curl -X GET https://api.mollie.com/v2/organizations/me \ -H "Authorization: Bearer access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ" |
1 2 3 4 | <?php $mollie = new \Mollie\Api\MollieApiClient(); $mollie->setAccessToken("access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ"); $currentOrganization = $mollie->organizations->current(); |
1 2 3 4 5 6 | from mollie.api.client import Client mollie_client = Client() mollie_client.set_access_token("access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ") organization = mollie_client.organizations.get("me") |
1 2 3 4 5 6 7 | require 'mollie-api-ruby' Mollie::Client.configure do |config| config.api_key = 'access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ' end organization = Mollie::Organization.current |
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 54 55 56 57 58 59 | HTTP/1.1 200 OK Content-Type: application/hal+json { "resource": "organization", "id": "org_12345678", "name": "Mollie B.V.", "email": "info@mollie.com", "address": { "streetAndNumber" : "Keizersgracht 126", "postalCode": "1015 CW", "city": "Amsterdam", "country": "NL" }, "registrationNumber": "30204462", "vatNumber": "NL815839091B01", "_links": { "self": { "href": "https://api.mollie.com/v2/organizations/me", "type": "application/hal+json" }, "chargebacks": { "href": "https://api.mollie.com/v2/chargebacks", "type": "application/hal+json" }, "customers": { "href": "https://api.mollie.com/v2/customers", "type": "application/hal+json" }, "invoices": { "href": "https://api.mollie.com/v2/invoices", "type": "application/hal+json" }, "payments": { "href": "https://api.mollie.com/v2/payments", "type": "application/hal+json" }, "profiles": { "href": "https://api.mollie.com/v2/profiles", "type": "application/hal+json" }, "refunds": { "href": "https://api.mollie.com/v2/refunds", "type": "application/hal+json" }, "settlements": { "href": "https://api.mollie.com/v2/settlements", "type": "application/hal+json" }, "dashboard": { "href": "https://mollie.com/dashboard/org_12345678", "type": "text/html" }, "documentation": { "href": "https://docs.mollie.com/reference/v2/organizations-api/current-organization", "type": "text/html" } } } |