Profiles API
Create profile
Changed onCreate a profile to process payments on.
Profiles are required for payment processing. Normally they are created via the Mollie dashboard. Alternatively, you can use this endpoint to automate profile creation.
post/v2/profiles
Request
- Base URLhttps://api.mollie.com
- URLhttps://api.mollie.com/v2/profiles
- Auth
- HTTP bearer
- or OAuth 2Authorization code: https://my.mollie.com/oauth2/authorizeToken URL: https://api.mollie.com/oauth2/tokens scopes: profiles.write
Headers
idempotency-keystring
Example:123e4567-e89b-12d3-a456-426
A unique key to ensure idempotent requests. This key should be a UUID v4 string.
Request body
Example request
{
"resource": "profile",
"id": "pfl_QkEhN94Ba",
"mode": "live",
"name": "My website name",
"website": "https://example.com",
"email": "test@mollie.com",
"phone": "+31208202070",
"description": "My website description",
"countriesOfActivity": [
"NL",
"GB"
],
"businessCategory": "OTHER_MERCHANDISE",
"status": "unverified",
"review": {
"status": "pending"
},
"createdAt": "2024-03-20T09:13:37+00:00",
"_links": {
"self": {
"href": "...",
"type": "application/hal+json"
},
"dashboard": {
"href": "https://www.mollie.com/dashboard/org_7049691/settings/profiles/pfl_2q3RyuMGry",
"type": "text/html"
},
"chargebacks": {
"href": "https://api.mollie.com/v2/chargebacks?profileId=pfl_2q3RyuMGry",
"type": "application/hal+json"
},
"methods": {
"href": "https://api.mollie.com/v2/methods?profileId=pfl_2q3RyuMGry",
"type": "application/hal+json"
},
"payments": {
"href": "https://api.mollie.com/v2/payments?profileId=pfl_2q3RyuMGry",
"type": "application/hal+json"
},
"refunds": {
"href": "https://api.mollie.com/v2/refunds?profileId=pfl_2q3RyuMGry",
"type": "application/hal+json"
},
"checkoutPreviewUrl": {
"href": "https://www.mollie.com/checkout/preview/pfl_2q3RyuMGry",
"type": "text/html"
},
"documentation": {
"href": "...",
"type": "text/html"
}
}
}Response
The newly created profile object.
Example response
{
"resource": "profile",
"id": "pfl_QkEhN94Ba",
"mode": "live",
"name": "My website name",
"website": "https://example.com",
"email": "test@mollie.com",
"phone": "+31208202070",
"description": "My website description",
"countriesOfActivity": [
"NL",
"GB"
],
"businessCategory": "OTHER_MERCHANDISE",
"status": "unverified",
"review": {
"status": "pending"
},
"createdAt": "2024-03-20T09:13:37+00:00",
"_links": {
"self": {
"href": "...",
"type": "application/hal+json"
},
"dashboard": {
"href": "https://www.mollie.com/dashboard/org_7049691/settings/profiles/pfl_2q3RyuMGry",
"type": "text/html"
},
"chargebacks": {
"href": "https://api.mollie.com/v2/chargebacks?profileId=pfl_2q3RyuMGry",
"type": "application/hal+json"
},
"methods": {
"href": "https://api.mollie.com/v2/methods?profileId=pfl_2q3RyuMGry",
"type": "application/hal+json"
},
"payments": {
"href": "https://api.mollie.com/v2/payments?profileId=pfl_2q3RyuMGry",
"type": "application/hal+json"
},
"refunds": {
"href": "https://api.mollie.com/v2/refunds?profileId=pfl_2q3RyuMGry",
"type": "application/hal+json"
},
"checkoutPreviewUrl": {
"href": "https://www.mollie.com/checkout/preview/pfl_2q3RyuMGry",
"type": "text/html"
},
"documentation": {
"href": "...",
"type": "text/html"
}
}
}Changes
- breaking
the response property
////became nullable for the status - info
the request property
////became nullable
- breaking
- info
added the non-success response with the status
- info