Get client¶
Clients API v2
GET
https://api.mollie.com/v2/clients/*id*
Authentication:Organization access tokensApp access tokens
Retrieve a single client, linked to your partner account, by its ID.
Parameters¶
Replace id
in the endpoint URL by the client’s ID, for example org_1337
.
Response¶
200
application/hal+json
resource
string
Indicates the response contains a client object. Will always contain
client
for this endpoint.id
string
The unique identifier of the client, which corresponds to the ID of the organization, for example
org_1337
.organizationCreatedAt
dateoptional
The date and time the organization was created, in ISO 8601 format. Only
returned when one of the embeds is available.
_links
objectAn object with several URL objects relevant to the client resource. Every URL object will contain an href
and a
type
field.
self
URL object
The API resource URL of the client itself.
organization
URL objectoptional
The API resource URL of the client’s organization. Only available when the include could have been used.
onboarding
URL objectoptional
The API resource URL of the client’s onboarding status. Only available when the include could have been used.
documentation
URL object
The URL to the documentation of this endpoint.
Example¶
cURLPHPPythonRubyNode.js
1 2 | curl -X GET https://api.mollie.com/v2/clients/org_1337 \ -H "Authorization: Bearer access_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM" |
1 2 3 4 5 6 | from mollie.api.client import Client mollie_client = Client() mollie_client.set_access_token("access_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM") client = mollie_client.clients.get("org_1337") |
1 2 3 4 | We don't have a PHP 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 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 | HTTP/1.1 200 OK Content-Type: application/hal+json { "resource": "client", "id": "org_1337", "organizationCreatedAt": "2018-03-21T13:13:37+00:00", "_links": { "self": { "href": "https://api.mollie.com/v2/clients/org_1337", "type": "application/hal+json" }, "organization": { "href": "https://api.mollie.com/v2/organizations/org_1337", "type": "application/hal+json" }, "onboarding": { "href": "https://api.mollie.com/v2/onboarding/org_1337", "type": "application/hal+json" }, "documentation": { "href": "https://docs.mollie.com/reference/v2/clients-api/get-client", "type": "text/html" } } } |