POST api/ProductLine/UpsertBranches
Request Information
URI Parameters
None.
Body Parameters
EntityBranchesName | Description | Type | Additional information |
---|---|---|---|
ParentEntityKey | string |
None. |
|
ProductLineId | integer |
None. |
|
PriceTypeId | integer |
None. |
|
Branches | Collection of BranchModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "ParentEntityKey": "sample string 1", "ProductLineId": 2, "PriceTypeId": 3, "Branches": [ { "BranchKey": "sample string 2", "NameEnglish": "sample string 3", "TaxIdNumber": "sample string 4", "CRNumber": "sample string 5", "AreaId": 1, "SpecialityGroups": [ { "SpecialityGroupId": 1, "NumberOfRooms": 1, "FeesModel": { "Value": 1.0, "IsPercentage": true, "PaymentAttributeTypeId": 1, "PaymentAttributeType": "sample string 2", "AllowedPaymentPlans": [ "sample string 1", "sample string 2" ] }, "RoomKey": "sample string 2" }, { "SpecialityGroupId": 1, "NumberOfRooms": 1, "FeesModel": { "Value": 1.0, "IsPercentage": true, "PaymentAttributeTypeId": 1, "PaymentAttributeType": "sample string 2", "AllowedPaymentPlans": [ "sample string 1", "sample string 2" ] }, "RoomKey": "sample string 2" } ], "BookingTypeId": 1 }, { "BranchKey": "sample string 2", "NameEnglish": "sample string 3", "TaxIdNumber": "sample string 4", "CRNumber": "sample string 5", "AreaId": 1, "SpecialityGroups": [ { "SpecialityGroupId": 1, "NumberOfRooms": 1, "FeesModel": { "Value": 1.0, "IsPercentage": true, "PaymentAttributeTypeId": 1, "PaymentAttributeType": "sample string 2", "AllowedPaymentPlans": [ "sample string 1", "sample string 2" ] }, "RoomKey": "sample string 2" }, { "SpecialityGroupId": 1, "NumberOfRooms": 1, "FeesModel": { "Value": 1.0, "IsPercentage": true, "PaymentAttributeTypeId": 1, "PaymentAttributeType": "sample string 2", "AllowedPaymentPlans": [ "sample string 1", "sample string 2" ] }, "RoomKey": "sample string 2" } ], "BookingTypeId": 1 } ] }
application/xml, text/xml
Sample:
<EntityBranches xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AccountManagement.Models"> <Branches> <BranchModel> <AddressId>1</AddressId> <AreaId>1</AreaId> <BookingTypeId>1</BookingTypeId> <BranchId>1</BranchId> <BranchKey>sample string 2</BranchKey> <CRNumber>sample string 5</CRNumber> <IsNew>true</IsNew> <NameEnglish>sample string 3</NameEnglish> <SpecialityGroups> <SpecialityGroupModel> <FeesModel> <AllowedPaymentPlans xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:string>sample string 1</d7p1:string> <d7p1:string>sample string 2</d7p1:string> </AllowedPaymentPlans> <IsPercentage>true</IsPercentage> <PaymentAttributeType>sample string 2</PaymentAttributeType> <PaymentAttributeTypeId>1</PaymentAttributeTypeId> <Value>1</Value> </FeesModel> <Name>sample string 3</Name> <NumberOfRooms>1</NumberOfRooms> <RoomKey>sample string 2</RoomKey> <SpecialityGroupId>1</SpecialityGroupId> </SpecialityGroupModel> <SpecialityGroupModel> <FeesModel> <AllowedPaymentPlans xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:string>sample string 1</d7p1:string> <d7p1:string>sample string 2</d7p1:string> </AllowedPaymentPlans> <IsPercentage>true</IsPercentage> <PaymentAttributeType>sample string 2</PaymentAttributeType> <PaymentAttributeTypeId>1</PaymentAttributeTypeId> <Value>1</Value> </FeesModel> <Name>sample string 3</Name> <NumberOfRooms>1</NumberOfRooms> <RoomKey>sample string 2</RoomKey> <SpecialityGroupId>1</SpecialityGroupId> </SpecialityGroupModel> </SpecialityGroups> <TaxIdNumber>sample string 4</TaxIdNumber> </BranchModel> <BranchModel> <AddressId>1</AddressId> <AreaId>1</AreaId> <BookingTypeId>1</BookingTypeId> <BranchId>1</BranchId> <BranchKey>sample string 2</BranchKey> <CRNumber>sample string 5</CRNumber> <IsNew>true</IsNew> <NameEnglish>sample string 3</NameEnglish> <SpecialityGroups> <SpecialityGroupModel> <FeesModel> <AllowedPaymentPlans xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:string>sample string 1</d7p1:string> <d7p1:string>sample string 2</d7p1:string> </AllowedPaymentPlans> <IsPercentage>true</IsPercentage> <PaymentAttributeType>sample string 2</PaymentAttributeType> <PaymentAttributeTypeId>1</PaymentAttributeTypeId> <Value>1</Value> </FeesModel> <Name>sample string 3</Name> <NumberOfRooms>1</NumberOfRooms> <RoomKey>sample string 2</RoomKey> <SpecialityGroupId>1</SpecialityGroupId> </SpecialityGroupModel> <SpecialityGroupModel> <FeesModel> <AllowedPaymentPlans xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:string>sample string 1</d7p1:string> <d7p1:string>sample string 2</d7p1:string> </AllowedPaymentPlans> <IsPercentage>true</IsPercentage> <PaymentAttributeType>sample string 2</PaymentAttributeType> <PaymentAttributeTypeId>1</PaymentAttributeTypeId> <Value>1</Value> </FeesModel> <Name>sample string 3</Name> <NumberOfRooms>1</NumberOfRooms> <RoomKey>sample string 2</RoomKey> <SpecialityGroupId>1</SpecialityGroupId> </SpecialityGroupModel> </SpecialityGroups> <TaxIdNumber>sample string 4</TaxIdNumber> </BranchModel> </Branches> <ParentEntityKey>sample string 1</ParentEntityKey> <PriceTypeId>3</PriceTypeId> <ProductLineId>2</ProductLineId> </EntityBranches>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | 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. |