GET api/Customer/MyContext
Used to get the list of all subscriptions that the user has access to.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Results are hardcoded for the Prototype
GetMyContextResponseName | Description | Type | Additional information |
---|---|---|---|
Username | string |
None. |
|
Firstname | string |
None. |
|
Lastname | string |
None. |
|
IsActive | boolean |
None. |
|
IsMasterUser | boolean |
None. |
|
IsDemoUser | boolean |
None. |
|
Subscriptions | Collection of SubscriptionInfo |
None. |
Response Formats
application/json, text/json
Sample:
{ "Username": "sample string 1", "Firstname": "sample string 2", "Lastname": "sample string 3", "IsActive": true, "IsMasterUser": true, "IsDemoUser": true, "Subscriptions": [ { "Subscription": { "ID": "sample string 1", "Name": "sample string 2", "Channel": { "Language": "sample string 1", "Name": "sample string 2", "SupportedPermissions": [ "AccessCareSheets", "AccessCareSheets" ], "SupportsCaresheets": true }, "ValidUntil": "2024-11-21T08:49:49.8383254+00:00", "SubscriptionType": "Premium", "CareSheetSettings": { "LogoUrl": "sample string 1", "InfoLine1": "sample string 2", "InfoLine2": "sample string 3", "InfoLine3": "sample string 4", "InfoLine4": "sample string 5", "UseLogo": true, "PetTypeAds": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "PetTypePreviews": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "PreviewCareSheetUrl": "sample string 7" }, "LabelSettings": { "Styles": { "sample string 1": [ { "DisplayName": "sample string 1", "Name": "sample string 2", "Group": "sample string 3", "ColorCode": "sample string 4", "DefaultColorCode": "sample string 5" }, { "DisplayName": "sample string 1", "Name": "sample string 2", "Group": "sample string 3", "ColorCode": "sample string 4", "DefaultColorCode": "sample string 5" } ], "sample string 2": [ { "DisplayName": "sample string 1", "Name": "sample string 2", "Group": "sample string 3", "ColorCode": "sample string 4", "DefaultColorCode": "sample string 5" }, { "DisplayName": "sample string 1", "Name": "sample string 2", "Group": "sample string 3", "ColorCode": "sample string 4", "DefaultColorCode": "sample string 5" } ] }, "Logos": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "PageRenderingPositionOffset": { "PosX": 1, "PosY": 2 }, "IsPaperSizeLetter": true, "UsePLUCode": true, "UseUSMetrics": true, "LabelTitleOrder": 0 }, "ArticleMappingExcelKey": 4, "ManualBilling": true }, "Permissions": [ "AccessCareSheets", "AccessCareSheets" ] }, { "Subscription": { "ID": "sample string 1", "Name": "sample string 2", "Channel": { "Language": "sample string 1", "Name": "sample string 2", "SupportedPermissions": [ "AccessCareSheets", "AccessCareSheets" ], "SupportsCaresheets": true }, "ValidUntil": "2024-11-21T08:49:49.8383254+00:00", "SubscriptionType": "Premium", "CareSheetSettings": { "LogoUrl": "sample string 1", "InfoLine1": "sample string 2", "InfoLine2": "sample string 3", "InfoLine3": "sample string 4", "InfoLine4": "sample string 5", "UseLogo": true, "PetTypeAds": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "PetTypePreviews": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "PreviewCareSheetUrl": "sample string 7" }, "LabelSettings": { "Styles": { "sample string 1": [ { "DisplayName": "sample string 1", "Name": "sample string 2", "Group": "sample string 3", "ColorCode": "sample string 4", "DefaultColorCode": "sample string 5" }, { "DisplayName": "sample string 1", "Name": "sample string 2", "Group": "sample string 3", "ColorCode": "sample string 4", "DefaultColorCode": "sample string 5" } ], "sample string 2": [ { "DisplayName": "sample string 1", "Name": "sample string 2", "Group": "sample string 3", "ColorCode": "sample string 4", "DefaultColorCode": "sample string 5" }, { "DisplayName": "sample string 1", "Name": "sample string 2", "Group": "sample string 3", "ColorCode": "sample string 4", "DefaultColorCode": "sample string 5" } ] }, "Logos": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "PageRenderingPositionOffset": { "PosX": 1, "PosY": 2 }, "IsPaperSizeLetter": true, "UsePLUCode": true, "UseUSMetrics": true, "LabelTitleOrder": 0 }, "ArticleMappingExcelKey": 4, "ManualBilling": true }, "Permissions": [ "AccessCareSheets", "AccessCareSheets" ] } ] }
application/xml, text/xml
Sample:
<GetMyContextResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PetdataNG.Controllers"> <Firstname>sample string 2</Firstname> <IsActive>true</IsActive> <IsDemoUser>true</IsDemoUser> <IsMasterUser>true</IsMasterUser> <Lastname>sample string 3</Lastname> <Subscriptions xmlns:d2p1="http://schemas.datacontract.org/2004/07/Entities"> <d2p1:SubscriptionInfo> <d2p1:Permissions> <d2p1:PermissionType>AccessCareSheets</d2p1:PermissionType> <d2p1:PermissionType>AccessCareSheets</d2p1:PermissionType> </d2p1:Permissions> <d2p1:Subscription> <d2p1:ArticleMappingExcelKey>4</d2p1:ArticleMappingExcelKey> <d2p1:CareSheetSettings> <d2p1:InfoLine1>sample string 2</d2p1:InfoLine1> <d2p1:InfoLine2>sample string 3</d2p1:InfoLine2> <d2p1:InfoLine3>sample string 4</d2p1:InfoLine3> <d2p1:InfoLine4>sample string 5</d2p1:InfoLine4> <d2p1:LogoUrl>sample string 1</d2p1:LogoUrl> <d2p1:PetTypeAds xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:KeyValueOfstringstring> <d6p1:Key>sample string 1</d6p1:Key> <d6p1:Value>sample string 2</d6p1:Value> </d6p1:KeyValueOfstringstring> <d6p1:KeyValueOfstringstring> <d6p1:Key>sample string 3</d6p1:Key> <d6p1:Value>sample string 4</d6p1:Value> </d6p1:KeyValueOfstringstring> </d2p1:PetTypeAds> <d2p1:PetTypePreviews xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:KeyValueOfstringstring> <d6p1:Key>sample string 1</d6p1:Key> <d6p1:Value>sample string 2</d6p1:Value> </d6p1:KeyValueOfstringstring> <d6p1:KeyValueOfstringstring> <d6p1:Key>sample string 3</d6p1:Key> <d6p1:Value>sample string 4</d6p1:Value> </d6p1:KeyValueOfstringstring> </d2p1:PetTypePreviews> <d2p1:PreviewCareSheetUrl>sample string 7</d2p1:PreviewCareSheetUrl> <d2p1:UseLogo>true</d2p1:UseLogo> </d2p1:CareSheetSettings> <d2p1:Channel> <d2p1:Language>sample string 1</d2p1:Language> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:SupportedPermissions> <d2p1:PermissionType>AccessCareSheets</d2p1:PermissionType> <d2p1:PermissionType>AccessCareSheets</d2p1:PermissionType> </d2p1:SupportedPermissions> <d2p1:SupportsCaresheets>true</d2p1:SupportsCaresheets> </d2p1:Channel> <d2p1:ID>sample string 1</d2p1:ID> <d2p1:LabelSettings> <d2p1:IsPaperSizeLetter>true</d2p1:IsPaperSizeLetter> <d2p1:LabelTitleOrder>LAT_N</d2p1:LabelTitleOrder> <d2p1:Logos xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:KeyValueOfstringstring> <d6p1:Key>sample string 1</d6p1:Key> <d6p1:Value>sample string 2</d6p1:Value> </d6p1:KeyValueOfstringstring> <d6p1:KeyValueOfstringstring> <d6p1:Key>sample string 3</d6p1:Key> <d6p1:Value>sample string 4</d6p1:Value> </d6p1:KeyValueOfstringstring> </d2p1:Logos> <d2p1:PageRenderingPositionOffset> <d2p1:PosX>1</d2p1:PosX> <d2p1:PosY>2</d2p1:PosY> </d2p1:PageRenderingPositionOffset> <d2p1:Styles xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:KeyValueOfstringArrayOfStyleElementMIK_P8A7e> <d6p1:Key>sample string 1</d6p1:Key> <d6p1:Value> <d2p1:StyleElement> <d2p1:ColorCode>sample string 4</d2p1:ColorCode> <d2p1:DefaultColorCode>sample string 5</d2p1:DefaultColorCode> <d2p1:DisplayName>sample string 1</d2p1:DisplayName> <d2p1:Group>sample string 3</d2p1:Group> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:TranslatedName> <d2p1:Translation> <d2p1:Channel>sample string 1</d2p1:Channel> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:Translation> <d2p1:Translation> <d2p1:Channel>sample string 1</d2p1:Channel> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:Translation> </d2p1:TranslatedName> </d2p1:StyleElement> <d2p1:StyleElement> <d2p1:ColorCode>sample string 4</d2p1:ColorCode> <d2p1:DefaultColorCode>sample string 5</d2p1:DefaultColorCode> <d2p1:DisplayName>sample string 1</d2p1:DisplayName> <d2p1:Group>sample string 3</d2p1:Group> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:TranslatedName> <d2p1:Translation> <d2p1:Channel>sample string 1</d2p1:Channel> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:Translation> <d2p1:Translation> <d2p1:Channel>sample string 1</d2p1:Channel> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:Translation> </d2p1:TranslatedName> </d2p1:StyleElement> </d6p1:Value> </d6p1:KeyValueOfstringArrayOfStyleElementMIK_P8A7e> <d6p1:KeyValueOfstringArrayOfStyleElementMIK_P8A7e> <d6p1:Key>sample string 2</d6p1:Key> <d6p1:Value> <d2p1:StyleElement> <d2p1:ColorCode>sample string 4</d2p1:ColorCode> <d2p1:DefaultColorCode>sample string 5</d2p1:DefaultColorCode> <d2p1:DisplayName>sample string 1</d2p1:DisplayName> <d2p1:Group>sample string 3</d2p1:Group> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:TranslatedName> <d2p1:Translation> <d2p1:Channel>sample string 1</d2p1:Channel> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:Translation> <d2p1:Translation> <d2p1:Channel>sample string 1</d2p1:Channel> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:Translation> </d2p1:TranslatedName> </d2p1:StyleElement> <d2p1:StyleElement> <d2p1:ColorCode>sample string 4</d2p1:ColorCode> <d2p1:DefaultColorCode>sample string 5</d2p1:DefaultColorCode> <d2p1:DisplayName>sample string 1</d2p1:DisplayName> <d2p1:Group>sample string 3</d2p1:Group> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:TranslatedName> <d2p1:Translation> <d2p1:Channel>sample string 1</d2p1:Channel> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:Translation> <d2p1:Translation> <d2p1:Channel>sample string 1</d2p1:Channel> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:Translation> </d2p1:TranslatedName> </d2p1:StyleElement> </d6p1:Value> </d6p1:KeyValueOfstringArrayOfStyleElementMIK_P8A7e> </d2p1:Styles> <d2p1:UsePLUCode>true</d2p1:UsePLUCode> <d2p1:UseUSMetrics>true</d2p1:UseUSMetrics> </d2p1:LabelSettings> <d2p1:ManualBilling>true</d2p1:ManualBilling> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:SubscriptionType>Premium</d2p1:SubscriptionType> <d2p1:ValidUntil>2024-11-21T08:49:49.8383254+00:00</d2p1:ValidUntil> </d2p1:Subscription> </d2p1:SubscriptionInfo> <d2p1:SubscriptionInfo> <d2p1:Permissions> <d2p1:PermissionType>AccessCareSheets</d2p1:PermissionType> <d2p1:PermissionType>AccessCareSheets</d2p1:PermissionType> </d2p1:Permissions> <d2p1:Subscription> <d2p1:ArticleMappingExcelKey>4</d2p1:ArticleMappingExcelKey> <d2p1:CareSheetSettings> <d2p1:InfoLine1>sample string 2</d2p1:InfoLine1> <d2p1:InfoLine2>sample string 3</d2p1:InfoLine2> <d2p1:InfoLine3>sample string 4</d2p1:InfoLine3> <d2p1:InfoLine4>sample string 5</d2p1:InfoLine4> <d2p1:LogoUrl>sample string 1</d2p1:LogoUrl> <d2p1:PetTypeAds xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:KeyValueOfstringstring> <d6p1:Key>sample string 1</d6p1:Key> <d6p1:Value>sample string 2</d6p1:Value> </d6p1:KeyValueOfstringstring> <d6p1:KeyValueOfstringstring> <d6p1:Key>sample string 3</d6p1:Key> <d6p1:Value>sample string 4</d6p1:Value> </d6p1:KeyValueOfstringstring> </d2p1:PetTypeAds> <d2p1:PetTypePreviews xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:KeyValueOfstringstring> <d6p1:Key>sample string 1</d6p1:Key> <d6p1:Value>sample string 2</d6p1:Value> </d6p1:KeyValueOfstringstring> <d6p1:KeyValueOfstringstring> <d6p1:Key>sample string 3</d6p1:Key> <d6p1:Value>sample string 4</d6p1:Value> </d6p1:KeyValueOfstringstring> </d2p1:PetTypePreviews> <d2p1:PreviewCareSheetUrl>sample string 7</d2p1:PreviewCareSheetUrl> <d2p1:UseLogo>true</d2p1:UseLogo> </d2p1:CareSheetSettings> <d2p1:Channel> <d2p1:Language>sample string 1</d2p1:Language> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:SupportedPermissions> <d2p1:PermissionType>AccessCareSheets</d2p1:PermissionType> <d2p1:PermissionType>AccessCareSheets</d2p1:PermissionType> </d2p1:SupportedPermissions> <d2p1:SupportsCaresheets>true</d2p1:SupportsCaresheets> </d2p1:Channel> <d2p1:ID>sample string 1</d2p1:ID> <d2p1:LabelSettings> <d2p1:IsPaperSizeLetter>true</d2p1:IsPaperSizeLetter> <d2p1:LabelTitleOrder>LAT_N</d2p1:LabelTitleOrder> <d2p1:Logos xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:KeyValueOfstringstring> <d6p1:Key>sample string 1</d6p1:Key> <d6p1:Value>sample string 2</d6p1:Value> </d6p1:KeyValueOfstringstring> <d6p1:KeyValueOfstringstring> <d6p1:Key>sample string 3</d6p1:Key> <d6p1:Value>sample string 4</d6p1:Value> </d6p1:KeyValueOfstringstring> </d2p1:Logos> <d2p1:PageRenderingPositionOffset> <d2p1:PosX>1</d2p1:PosX> <d2p1:PosY>2</d2p1:PosY> </d2p1:PageRenderingPositionOffset> <d2p1:Styles xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:KeyValueOfstringArrayOfStyleElementMIK_P8A7e> <d6p1:Key>sample string 1</d6p1:Key> <d6p1:Value> <d2p1:StyleElement> <d2p1:ColorCode>sample string 4</d2p1:ColorCode> <d2p1:DefaultColorCode>sample string 5</d2p1:DefaultColorCode> <d2p1:DisplayName>sample string 1</d2p1:DisplayName> <d2p1:Group>sample string 3</d2p1:Group> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:TranslatedName> <d2p1:Translation> <d2p1:Channel>sample string 1</d2p1:Channel> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:Translation> <d2p1:Translation> <d2p1:Channel>sample string 1</d2p1:Channel> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:Translation> </d2p1:TranslatedName> </d2p1:StyleElement> <d2p1:StyleElement> <d2p1:ColorCode>sample string 4</d2p1:ColorCode> <d2p1:DefaultColorCode>sample string 5</d2p1:DefaultColorCode> <d2p1:DisplayName>sample string 1</d2p1:DisplayName> <d2p1:Group>sample string 3</d2p1:Group> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:TranslatedName> <d2p1:Translation> <d2p1:Channel>sample string 1</d2p1:Channel> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:Translation> <d2p1:Translation> <d2p1:Channel>sample string 1</d2p1:Channel> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:Translation> </d2p1:TranslatedName> </d2p1:StyleElement> </d6p1:Value> </d6p1:KeyValueOfstringArrayOfStyleElementMIK_P8A7e> <d6p1:KeyValueOfstringArrayOfStyleElementMIK_P8A7e> <d6p1:Key>sample string 2</d6p1:Key> <d6p1:Value> <d2p1:StyleElement> <d2p1:ColorCode>sample string 4</d2p1:ColorCode> <d2p1:DefaultColorCode>sample string 5</d2p1:DefaultColorCode> <d2p1:DisplayName>sample string 1</d2p1:DisplayName> <d2p1:Group>sample string 3</d2p1:Group> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:TranslatedName> <d2p1:Translation> <d2p1:Channel>sample string 1</d2p1:Channel> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:Translation> <d2p1:Translation> <d2p1:Channel>sample string 1</d2p1:Channel> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:Translation> </d2p1:TranslatedName> </d2p1:StyleElement> <d2p1:StyleElement> <d2p1:ColorCode>sample string 4</d2p1:ColorCode> <d2p1:DefaultColorCode>sample string 5</d2p1:DefaultColorCode> <d2p1:DisplayName>sample string 1</d2p1:DisplayName> <d2p1:Group>sample string 3</d2p1:Group> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:TranslatedName> <d2p1:Translation> <d2p1:Channel>sample string 1</d2p1:Channel> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:Translation> <d2p1:Translation> <d2p1:Channel>sample string 1</d2p1:Channel> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:Translation> </d2p1:TranslatedName> </d2p1:StyleElement> </d6p1:Value> </d6p1:KeyValueOfstringArrayOfStyleElementMIK_P8A7e> </d2p1:Styles> <d2p1:UsePLUCode>true</d2p1:UsePLUCode> <d2p1:UseUSMetrics>true</d2p1:UseUSMetrics> </d2p1:LabelSettings> <d2p1:ManualBilling>true</d2p1:ManualBilling> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:SubscriptionType>Premium</d2p1:SubscriptionType> <d2p1:ValidUntil>2024-11-21T08:49:49.8383254+00:00</d2p1:ValidUntil> </d2p1:Subscription> </d2p1:SubscriptionInfo> </Subscriptions> <Username>sample string 1</Username> </GetMyContextResponse>