Create profile¶
POST
https://api.mollie.com/v2/profiles
In order to process payments, you need to create a website profile. A website profile can easily be created via the Dashboard manually. However, the Mollie API also allows automatic profile creation via the Profiles API.
Parameters¶
name
stringrequiredwebsite
stringrequiredhttp://
or
https://
schemes and domains that contain a TLD. URLs containing an @
are not allowed.email
stringrequiredphone
phone numberrequired+31208202070
.businessCategory
stringoptionalThe industry associated with the profile’s trade name or brand.
Refer to the documentation of the business category for more information on which values are accepted.
categoryCode
integeroptionalWarning
This parameter is deprecated and will be removed in 2022. Use the businessCategory
parameter
instead.
The industry associated with the profile’s trade name or brand.
Possible values:
5192
Books, magazines and newspapers5262
Marketplaces, crowdfunding, donation platforms5399
General merchandise5499
Food and drinks5533
Automotive Products5641
Children Products5651
Clothing & Shoes5712
Home furnishing5732
Electronics, computers and software5734
Hosting/VPN services5735
Entertainment5815
Credits/vouchers/giftcards5921
Alcohol5944
Jewelry & Accessories5945
Hobby, Toy, and Game Shops5977
Health & Beauty products6012
Financial services6051
Crypto currency7299
Consultancy7922
Events, conferences, concerts, tickets7997
Gyms, membership fee based sports7999
Travel, rental and transportation8111
Lawyers and legal advice8299
Advising/coaching/training8398
Charity and donations8699
Political parties9399
Government services0
Other
mode
stringoptionalCreating a test profile by setting this parameter to test
, enables you to start using the API without having to
provide all your business info just yet. Defaults to live
.
Possible values: live
test
Example¶
1 2 3 4 5 6 7 8 | curl -X POST https://api.mollie.com/v2/profiles \ -H "Authorization: Bearer access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ" \ -d "name=My website name" \ -d "website=https://www.mywebsite.com" \ -d "email=info@mywebsite.com" \ -d "phone=+31208202070" \ -d "businessCategory=OTHER_MERCHANDISE" \ -d "mode=live" |
1 2 3 4 5 6 7 8 9 10 11 | <?php $mollie = new \Mollie\Api\MollieApiClient(); $mollie->setAccessToken("access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ"); $profile = $mollie->profiles->create([ "name" => "My website name", "website" => "https://www.mywebsite.com", "email" => "info@mywebsite.com", "phone" => "+31208202070", "businessCategory" => "OTHER_MERCHANDISE", "mode" => "live", ]); |
1 2 3 4 5 6 7 8 9 10 11 12 13 | from mollie.api.client import Client mollie_client = Client() mollie_client.set_access_token("access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ") profile = mollie_client.profiles.create({ "name": "My website name", "website": "https://www.mywebsite.com", "email": "info@mywebsite.com", "phone": "+31208202070", "businessCategory": "OTHER_MERCHANDISE", "mode": "live", }) |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | require 'mollie-api-ruby' Mollie::Client.configure do |config| config.api_key = 'access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ' end profile = Mollie::Profile.create( name: 'My website name', website: 'https://www.mywebsite.com', email: 'info@mywebsite.com', phone: '+31208202070', businessCategory: 'OTHER_MERCHANDISE', mode: 'live' ) |
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 | HTTP/1.1 201 Created 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": "unverified", "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?profileId=pfl_v9hTwCvYqw", "type": "application/hal+json" }, "methods": { "href": "https://api.mollie.com/v2/methods?profileId=pfl_v9hTwCvYqw", "type": "application/hal+json" }, "payments": { "href": "https://api.mollie.com/v2/payments?profileId=pfl_v9hTwCvYqw", "type": "application/hal+json" }, "refunds": { "href": "https://api.mollie.com/v2/refunds?profileId=pfl_v9hTwCvYqw", "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/create-profile", "type": "text/html" } } } |