Update profile¶
Warning
The v1 API has been deprecated. The v1 API will be supported for the foreseeable future, at least until July 2023. However, new features will only be added to the v2 API.
The documentation for updating profiles in the new v2 API can be found here. For more information on the v2 API, refer to our v2 migration guide.
POST
https://api.mollie.com/v1/profiles/*id*
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.
A profile’s API keys can be set up with this API as well.
Parameters¶
Replace id
in the endpoint URL by the payment profile’s ID, for example pfl_v9hTwCvYqw
.
name
stringrequiredwebsite
stringrequiredhttps://
or http://
.email
stringrequiredphone
stringrequiredbusinessCategory
stringoptionalThe new 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
integeroptionalThe new industry identifier associated with the profile’s trade name or brand.
Warning
This parameter is deprecated and will be removed in 2022. Use the businessCategory
parameter
instead.
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
stringoptionalThe new profile mode. Note switching from test to production mode will trigger a verification process where we review the payment profile.
Possible values: live
test
Example¶
Request¶
1 2 3 4 5 6 7 | curl -X POST https://api.mollie.com/v1/profiles/pfl_v9hTwCvYqw \ -H "Authorization: Bearer access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ" \ -d "name=My website name - Update 1" \ -d "website=https://www.mywebsite2.com" \ -d "email=info@mywebsite2.com" \ -d "phone=31123456789" \ -d "businessCategory=OTHER_MERCHANDISE" |
Response¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | HTTP/1.1 200 OK Content-Type: application/json { "resource": "profile", "id": "pfl_v9hTwCvYqw", "mode": "live", "name": "My website name - Update 1", "website": "https://www.mywebsite2.com", "email": "info@mywebsite2.com", "phone": "31123456789", "businessCategory": "OTHER_MERCHANDISE", "categoryCode": 5399, "status": "verified", "review": { "status": "pending" }, "createdDatetime": "2018-03-16T23:44:03.0Z", "updatedDatetime": "2018-03-17T01:47:46.0Z", "links": { "checkoutPreviewUrl": "https://www.mollie.com/payscreen/preview/pfl_v9hTwCvYqw" } } |