POST api/Companies/AddSupplierCompany
Request Information
URI Parameters
None.
Body Parameters
SimpleSupplierRegisterBindingModelName | Description | Type | Additional information |
---|---|---|---|
Name | string |
Required String length: inclusive between 0 and 125 |
|
Address | string |
Required Data type: Text |
|
Telephone | string |
Required |
|
FaxNbr | string |
Required |
|
string |
None. |
||
CountryId | string |
Required String length: inclusive between 0 and 5 |
|
CurrencyId | string |
Required String length: inclusive between 0 and 5 |
|
ImageName | string |
None. |
|
AccommodationProfileId | integer |
None. |
|
CompanyLogo | SimpleCompanyLogoUpload |
None. |
Request Formats
application/json, text/json
Sample:
{ "Name": "sample string 1", "Address": "sample string 2", "Telephone": "sample string 3", "FaxNbr": "sample string 4", "Email": "sample string 5", "CountryId": "sample string 6", "CurrencyId": "sample string 11", "ImageName": "sample string 12", "AccommodationProfileId": 1, "CompanyLogo": { "ImageContent": "sample string 1", "ImageName": "sample string 2" } }
application/xml, text/xml
Sample:
<SimpleSupplierRegisterBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO"> <AccommodationProfileId>1</AccommodationProfileId> <AccountManagerId>sample string 13</AccountManagerId> <Address>sample string 2</Address> <AssociationNumber>sample string 10</AssociationNumber> <BranchRangeId>1</BranchRangeId> <CompanyBusiness>Supplier</CompanyBusiness> <CompanyLogo> <ImageContent>sample string 1</ImageContent> <ImageName>sample string 2</ImageName> </CompanyLogo> <CountryId>sample string 6</CountryId> <CurrencyId>sample string 11</CurrencyId> <Email>sample string 5</Email> <EmployeeRangeId>1</EmployeeRangeId> <FaxNbr>sample string 4</FaxNbr> <IATANbr>sample string 9</IATANbr> <ImageContent>sample string 8</ImageContent> <ImageName>sample string 12</ImageName> <Level>1</Level> <Name>sample string 1</Name> <PaymentSchemeId>1</PaymentSchemeId> <RevenueRangeId>1</RevenueRangeId> <Telephone>sample string 3</Telephone> <TradelicenseNbr>sample string 7</TradelicenseNbr> </SimpleSupplierRegisterBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CompanyProfileViewModelName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Address | string |
Data type: Text |
|
Telephone | string |
None. |
|
string |
None. |
||
FaxNbr | string |
None. |
|
Balance | decimal number |
None. |
|
Country | PlaceAddress |
None. |
|
CompanyBusiness | string |
None. |
|
TradelicenseNbr | string |
String length: inclusive between 0 and 50 |
|
IATANbr | string |
String length: inclusive between 0 and 100 |
|
AssociationNumber | string |
String length: inclusive between 0 and 100 |
|
EmployeeRange | CompanyDataEnum |
None. |
|
BranchRange | CompanyDataEnum |
None. |
|
RevenueRange | CompanyDataEnum |
None. |
|
CountryId | string |
None. |
|
Currency | string |
None. |
|
IsAllowedOwnCountryTour | boolean |
None. |
|
ImageName | string |
None. |
|
ImageUrl | string |
None. |
|
TinyImageUrl | string |
None. |
|
IsApproved | boolean |
None. |
|
CreatedDate | date |
None. |
|
ApprovedDate | date |
None. |
|
CompanyLogo | SimpleImage |
None. |
|
PaymentSchemeType | IdLongTextModel |
None. |
|
AccountManagerName | string |
None. |
|
Code | string |
Required String length: inclusive between 0 and 5 |
|
Name | string |
String length: inclusive between 0 and 125 |
Response Formats
application/json, text/json
Sample:
{ "Id": 1, "Address": "sample string 2", "Telephone": "sample string 3", "Email": "sample string 4", "FaxNbr": "sample string 5", "Balance": 6.0, "Country": { "Id": "sample string 1", "Name": "sample string 2", "ImageUrl": "sample string 3" }, "CompanyBusiness": "sample string 7", "TradelicenseNbr": "sample string 8", "IATANbr": "sample string 9", "AssociationNumber": "sample string 10", "EmployeeRange": { "Id": 1, "Value": "sample string 2" }, "BranchRange": { "Id": 1, "Value": "sample string 2" }, "RevenueRange": { "Id": 1, "Value": "sample string 2" }, "CountryId": "sample string 11", "Currency": "sample string 12", "IsAllowedOwnCountryTour": true, "ImageName": "sample string 14", "ImageUrl": "sample string 15", "TinyImageUrl": "sample string 16", "IsApproved": true, "CreatedDate": "2025-06-26T14:11:31.3137875+00:00", "ApprovedDate": "2025-06-26T14:11:31.3137875+00:00", "CompanyLogo": { "ImageId": 1, "ImageUrl": "sample string 2", "TinyImageUrl": "sample string 3", "ImageName": "sample string 4", "IsPrimaryImage": true }, "PaymentSchemeType": { "LongText": "sample string 1", "Id": 2, "Text": "sample string 3" }, "AccountManagerName": "sample string 18", "Code": "sample string 19", "Name": "sample string 20" }
application/xml, text/xml
Sample:
<CompanyProfileViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO"> <Code>sample string 19</Code> <Name>sample string 20</Name> <AccountManagerName>sample string 18</AccountManagerName> <Address>sample string 2</Address> <ApprovedDate>2025-06-26T14:11:31.3137875+00:00</ApprovedDate> <AssociationNumber>sample string 10</AssociationNumber> <Balance>6</Balance> <BranchRange> <Id>1</Id> <Value>sample string 2</Value> </BranchRange> <CompanyBusiness>sample string 7</CompanyBusiness> <CompanyLogo> <ImageId>1</ImageId> <ImageName>sample string 4</ImageName> <ImageUrl>sample string 2</ImageUrl> <IsPrimaryImage>true</IsPrimaryImage> <TinyImageUrl>sample string 3</TinyImageUrl> </CompanyLogo> <Country> <Id>sample string 1</Id> <ImageUrl>sample string 3</ImageUrl> <Name>sample string 2</Name> </Country> <CountryId>sample string 11</CountryId> <CreatedDate>2025-06-26T14:11:31.3137875+00:00</CreatedDate> <Currency>sample string 12</Currency> <Email>sample string 4</Email> <EmployeeRange> <Id>1</Id> <Value>sample string 2</Value> </EmployeeRange> <FaxNbr>sample string 5</FaxNbr> <IATANbr>sample string 9</IATANbr> <Id>1</Id> <ImageName>sample string 14</ImageName> <ImageUrl>sample string 15</ImageUrl> <IsAllowedOwnCountryTour>true</IsAllowedOwnCountryTour> <IsApproved>true</IsApproved> <PaymentSchemeType> <Id>2</Id> <Text>sample string 3</Text> <LongText>sample string 1</LongText> </PaymentSchemeType> <RevenueRange> <Id>1</Id> <Value>sample string 2</Value> </RevenueRange> <Telephone>sample string 3</Telephone> <TinyImageUrl>sample string 16</TinyImageUrl> <TradelicenseNbr>sample string 8</TradelicenseNbr> </CompanyProfileViewModel>