POST api/Subscription/CreateSubscription
Request Information
URI Parameters
None.
Body Parameters
Subscription| Name | Description | Type | Additional information |
|---|---|---|---|
| SubscriptionID | integer |
None. |
|
| CompanyName | string |
Required String length: inclusive between 0 and 100 |
|
| WebsiteURL | string |
Required String length: inclusive between 0 and 1000 |
|
| RoleName | string |
Required String length: inclusive between 0 and 50 |
|
| Address | string |
Required String length: inclusive between 0 and 1000 |
|
| Country | string |
Required String length: inclusive between 0 and 50 |
|
| State | string |
Required String length: inclusive between 0 and 50 |
|
| EmailID | string |
Required String length: inclusive between 0 and 50 |
|
| Password | string |
String length: inclusive between 0 and 100 |
|
| MobileNo | string |
Required String length: inclusive between 0 and 50 |
|
| SubscriptionFromDate | date |
Required |
|
| SubscriptionToDate | date |
Required |
|
| SubscriptionPlan | string |
Required |
|
| ImageFileName | string |
Required String length: inclusive between 0 and 100 |
|
| TempImageFileName | string |
Required String length: inclusive between 0 and 100 |
|
| PageNames | Collection of PageName |
None. |
|
| UserID | string |
Required String length: inclusive between 0 and 50 |
Request Formats
application/json, text/json
Sample:
{
"SubscriptionID": 1,
"CompanyName": "sample string 2",
"WebsiteURL": "sample string 3",
"RoleName": "sample string 4",
"Address": "sample string 5",
"Country": "sample string 6",
"State": "sample string 7",
"EmailID": "sample string 8",
"Password": "sample string 9",
"MobileNo": "sample string 10",
"SubscriptionFromDate": "2025-12-06T10:15:23.9698729+05:30",
"SubscriptionToDate": "2025-12-06T10:15:23.9698729+05:30",
"SubscriptionPlan": "sample string 13",
"ImageFileName": "sample string 14",
"TempImageFileName": "sample string 15",
"PageNames": [
{
"ProductPageName": "sample string 1"
},
{
"ProductPageName": "sample string 1"
}
],
"UserID": "sample string 16"
}
application/xml, text/xml
Sample:
<Subscription xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HealthCoder.Models">
<Address>sample string 5</Address>
<CompanyName>sample string 2</CompanyName>
<Country>sample string 6</Country>
<EmailID>sample string 8</EmailID>
<ImageFileName>sample string 14</ImageFileName>
<MobileNo>sample string 10</MobileNo>
<PageNames>
<PageName>
<ProductPageName>sample string 1</ProductPageName>
</PageName>
<PageName>
<ProductPageName>sample string 1</ProductPageName>
</PageName>
</PageNames>
<Password>sample string 9</Password>
<RoleName>sample string 4</RoleName>
<State>sample string 7</State>
<SubscriptionFromDate>2025-12-06T10:15:23.9698729+05:30</SubscriptionFromDate>
<SubscriptionID>1</SubscriptionID>
<SubscriptionPlan>sample string 13</SubscriptionPlan>
<SubscriptionToDate>2025-12-06T10:15:23.9698729+05:30</SubscriptionToDate>
<TempImageFileName>sample string 15</TempImageFileName>
<UserID>sample string 16</UserID>
<WebsiteURL>sample string 3</WebsiteURL>
</Subscription>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |