GET api/profile/main
V2 - Gets the main (parent) profile for the currently logged in user.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
MainProfileName | Description | Type | Additional information |
---|---|---|---|
UserID |
The UserID references to the Main (often parent) account. |
globally unique identifier |
None. |
Children |
A list of IDs for confirmed child accounts linked to this Main account. |
Collection of globally unique identifier |
None. |
ChildCount |
The number of confirmed child accounts linked to this Main account. |
integer |
None. |
Firstname |
The users firstname. |
string |
Required |
Insertion |
The insertion for the users lastname. This value is optional. |
string |
None. |
Lastname |
The users lastname. |
string |
None. |
The users email address. |
string |
Required Data type: EmailAddress |
|
Street |
The streetname for the users address. |
string |
None. |
Housenumber |
The housenumber for the users address. |
string |
None. |
HousenumberAddition |
The housenumber addition for the users address. |
string |
None. |
Postcode |
The postcode for the users address. |
string |
Data type: PostalCode |
City |
The city for the users address. |
string |
None. |
Country |
The country for the users address. |
string |
None. |
Company |
The users companyname. This is not relevant for parents, but might be used for educational institutions. |
string |
None. |
Telephone |
The users phone number. |
string |
Data type: PhoneNumber |
Newsletter |
The type of newsletter the user will receive.
|
integer |
Required |
SubscriptionActive |
A boolean value indicating if this user currently has an active subscription. |
boolean |
Required |
SubscriptionType |
The type of subscription (if any) this user has. |
string |
Required Data type: Text |
SubscriptionStartDate |
The starting date for the currently active subscription |
date |
Required Data type: Date |
SubscriptionDuration |
The duration in months for the currently active subscription |
integer |
Required Data type: Duration |
SubscriptionRenewalDate |
The next renewal date for the currently active subscription |
date |
Required Data type: Date |
SubscriptionPrice |
The price in eurocents for the currently active subscription |
integer |
Required Data type: Currency |
TermsAgreed |
A boolean value indicating if this user has agreed to the terms and conditions |
boolean |
Required |
ActiveSessions |
A calculated value indicating the number of currently active sessions. This value is read-only and will not be used for updates. |
integer |
None. |
MaxSessions |
The maximum number of allowed concurrent sessions |
integer |
Required |
AllowChildEmail |
A boolean field indicating if email addresses for any child account may be used. This value overrules the boolean in speciic child accounts. |
boolean |
Required |
Response Formats
application/json, text/json
{ "UserID": "0f81de61-ded6-4ff4-9b02-1e51c8da7059", "Children": [ "57f678f6-932b-4f3f-bc55-b77d9d1ae878", "1537f512-0600-4301-87c6-a0a2dc1a546a" ], "ChildCount": 2, "Firstname": "sample string 3", "Insertion": "sample string 4", "Lastname": "sample string 5", "Email": "sample string 6", "Street": "sample string 7", "Housenumber": "sample string 8", "HousenumberAddition": "sample string 9", "Postcode": "sample string 10", "City": "sample string 11", "Country": "sample string 12", "Company": "sample string 13", "Telephone": "sample string 14", "Newsletter": 15, "SubscriptionActive": true, "SubscriptionType": "sample string 17", "SubscriptionStartDate": "2024-12-03T17:44:42.8514257+01:00", "SubscriptionDuration": 18, "SubscriptionRenewalDate": "2024-12-03T17:44:42.8514257+01:00", "SubscriptionPrice": 19, "TermsAgreed": true, "ActiveSessions": 21, "MaxSessions": 22, "AllowChildEmail": true }
text/javascript
{"UserID":"0f81de61-ded6-4ff4-9b02-1e51c8da7059","Children":["57f678f6-932b-4f3f-bc55-b77d9d1ae878","1537f512-0600-4301-87c6-a0a2dc1a546a"],"ChildCount":2,"Firstname":"sample string 3","Insertion":"sample string 4","Lastname":"sample string 5","Email":"sample string 6","Street":"sample string 7","Housenumber":"sample string 8","HousenumberAddition":"sample string 9","Postcode":"sample string 10","City":"sample string 11","Country":"sample string 12","Company":"sample string 13","Telephone":"sample string 14","Newsletter":15,"SubscriptionActive":true,"SubscriptionType":"sample string 17","SubscriptionStartDate":"2024-12-03T17:44:42.8514257+01:00","SubscriptionDuration":18,"SubscriptionRenewalDate":"2024-12-03T17:44:42.8514257+01:00","SubscriptionPrice":19,"TermsAgreed":true,"ActiveSessions":21,"MaxSessions":22,"AllowChildEmail":true}
application/xml, text/xml
<MainProfile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Yindo.DAL.Types"> <ActiveSessions>21</ActiveSessions> <AllowChildEmail>true</AllowChildEmail> <ChildCount>2</ChildCount> <Children xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>57f678f6-932b-4f3f-bc55-b77d9d1ae878</d2p1:guid> <d2p1:guid>1537f512-0600-4301-87c6-a0a2dc1a546a</d2p1:guid> </Children> <City>sample string 11</City> <Company>sample string 13</Company> <Country>sample string 12</Country> <Email>sample string 6</Email> <Firstname>sample string 3</Firstname> <Housenumber>sample string 8</Housenumber> <HousenumberAddition>sample string 9</HousenumberAddition> <Insertion>sample string 4</Insertion> <Lastname>sample string 5</Lastname> <MaxSessions>22</MaxSessions> <Newsletter>15</Newsletter> <Postcode>sample string 10</Postcode> <Street>sample string 7</Street> <SubscriptionActive>true</SubscriptionActive> <SubscriptionDuration>18</SubscriptionDuration> <SubscriptionPrice>19</SubscriptionPrice> <SubscriptionRenewalDate>2024-12-03T17:44:42.8514257+01:00</SubscriptionRenewalDate> <SubscriptionStartDate>2024-12-03T17:44:42.8514257+01:00</SubscriptionStartDate> <SubscriptionType>sample string 17</SubscriptionType> <Telephone>sample string 14</Telephone> <TermsAgreed>true</TermsAgreed> <UserID>0f81de61-ded6-4ff4-9b02-1e51c8da7059</UserID> </MainProfile>