POST api/RegisterWebshops/PostRegisterWebshop/{companyId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| companyId | integer |
Required |
Body Parameters
RegisterWebshopViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| string |
Required |
||
| EmailInvoice | string |
Required |
|
| Password | string |
Required Data type: Password String length: inclusive between 8 and 100 |
|
| ConfirmPassword | string |
Data type: Password |
|
| FirstName | string |
Required String length: inclusive between 0 and 100 |
|
| LastName | string |
Required String length: inclusive between 0 and 100 |
|
| CompanyRole | string |
Required String length: inclusive between 0 and 100 |
|
| CompanyName | string |
Required String length: inclusive between 0 and 100 |
|
| CompanyNumber | string |
Required String length: inclusive between 0 and 50 |
|
| Street | string |
Required String length: inclusive between 0 and 100 |
|
| PCode | string |
Required String length: inclusive between 0 and 20 |
|
| City | string |
Required String length: inclusive between 0 and 100 |
|
| CountryId | integer |
Required |
|
| Telephone | string |
Required String length: inclusive between 0 and 100 |
|
| ContactName | string |
String length: inclusive between 0 and 100 |
Request Formats
application/json, text/json
Sample:
{
"email": "sample string 1",
"emailInvoice": "sample string 2",
"password": "sample string 3",
"confirmPassword": "sample string 4",
"firstName": "sample string 5",
"lastName": "sample string 6",
"companyRole": "sample string 7",
"companyName": "sample string 8",
"companyNumber": "sample string 9",
"street": "sample string 10",
"pCode": "sample string 11",
"city": "sample string 12",
"countryId": 13,
"telephone": "sample string 14",
"contactName": "sample string 15"
}
application/xml, text/xml
Sample:
<RegisterWebshopViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.ViewModels"> <City>sample string 12</City> <CompanyName>sample string 8</CompanyName> <CompanyNumber>sample string 9</CompanyNumber> <CompanyRole>sample string 7</CompanyRole> <ConfirmPassword>sample string 4</ConfirmPassword> <ContactName>sample string 15</ContactName> <CountryId>13</CountryId> <Email>sample string 1</Email> <EmailInvoice>sample string 2</EmailInvoice> <FirstName>sample string 5</FirstName> <LastName>sample string 6</LastName> <PCode>sample string 11</PCode> <Password>sample string 3</Password> <Street>sample string 10</Street> <Telephone>sample string 14</Telephone> </RegisterWebshopViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>