POST api/Product/CreateBundle
Request Information
URI Parameters
None.
Body Parameters
ProductBundleName | Description | Type | Additional information |
---|---|---|---|
ProvideID | globally unique identifier |
None. |
|
ProviderName | string |
None. |
|
CountryId | integer |
None. |
|
ProducList | Collection of ProductBundleItemModel |
None. |
|
Id | globally unique identifier |
None. |
|
Detail | string |
None. |
|
IsActive | boolean |
None. |
|
CreatedBy | globally unique identifier |
None. |
|
CreatedDate | date |
None. |
|
ModifiedBy | globally unique identifier |
None. |
|
ModifiedDate | date |
None. |
|
DeletedBy | globally unique identifier |
None. |
|
DeletedDate | date |
None. |
Request Formats
application/json, text/json
Sample:
{ "ProvideID": "3b828e8a-9bfd-4a19-adbc-174d33dddce1", "ProviderName": "sample string 2", "CountryId": 3, "ProducList": [ { "Name": "sample string 1", "Price": "sample string 2", "PriceWithDiscount": "sample string 3", "Discount": 4.0, "SKU": "sample string 5", "ProductURL": "sample string 6", "ImageURL": "sample string 7", "ProviderID": "ef39e33c-3ba0-4499-9cf5-58e7cebd875f", "Id": "663a4873-0a65-4fdc-bc7d-a14a530642c3", "Detail": "sample string 10", "IsActive": true, "CreatedBy": "9405a5ee-80bc-4c21-a67b-03a5911e64b0", "CreatedDate": "2024-12-29T10:32:24.4284785-08:00", "ModifiedBy": "7e57d817-dc54-432d-ae7a-9ef3869c4ca4", "ModifiedDate": "2024-12-29T10:32:24.4284785-08:00", "DeletedBy": "0554d133-5370-4223-a88b-fdc897fa7128", "DeletedDate": "2024-12-29T10:32:24.4284785-08:00" }, { "Name": "sample string 1", "Price": "sample string 2", "PriceWithDiscount": "sample string 3", "Discount": 4.0, "SKU": "sample string 5", "ProductURL": "sample string 6", "ImageURL": "sample string 7", "ProviderID": "ef39e33c-3ba0-4499-9cf5-58e7cebd875f", "Id": "663a4873-0a65-4fdc-bc7d-a14a530642c3", "Detail": "sample string 10", "IsActive": true, "CreatedBy": "9405a5ee-80bc-4c21-a67b-03a5911e64b0", "CreatedDate": "2024-12-29T10:32:24.4284785-08:00", "ModifiedBy": "7e57d817-dc54-432d-ae7a-9ef3869c4ca4", "ModifiedDate": "2024-12-29T10:32:24.4284785-08:00", "DeletedBy": "0554d133-5370-4223-a88b-fdc897fa7128", "DeletedDate": "2024-12-29T10:32:24.4284785-08:00" } ], "Id": "fdbc9ed6-2883-45c5-b7ff-b5cb7b212b8c", "Detail": "sample string 5", "IsActive": true, "CreatedBy": "59fd8b6a-3e04-4161-b588-a2f4148ede1c", "CreatedDate": "2024-12-29T10:32:24.4284785-08:00", "ModifiedBy": "ac9ecd06-9b65-4232-8ddd-3e759f8fca58", "ModifiedDate": "2024-12-29T10:32:24.4284785-08:00", "DeletedBy": "ac0b4b91-709d-4a2e-996f-83842ef3e31b", "DeletedDate": "2024-12-29T10:32:24.4284785-08:00" }
application/xml, text/xml
Sample:
<ProductBundle xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Inventory"> <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">59fd8b6a-3e04-4161-b588-a2f4148ede1c</CreatedBy> <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">2024-12-29T10:32:24.4284785-08:00</CreatedDate> <DeletedBy xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">ac0b4b91-709d-4a2e-996f-83842ef3e31b</DeletedBy> <DeletedDate xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">2024-12-29T10:32:24.4284785-08:00</DeletedDate> <Detail xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">sample string 5</Detail> <Id xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">fdbc9ed6-2883-45c5-b7ff-b5cb7b212b8c</Id> <IsActive xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">true</IsActive> <ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">ac9ecd06-9b65-4232-8ddd-3e759f8fca58</ModifiedBy> <ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">2024-12-29T10:32:24.4284785-08:00</ModifiedDate> <CountryId>3</CountryId> <ProducList> <ProductBundleItemModel> <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">9405a5ee-80bc-4c21-a67b-03a5911e64b0</CreatedBy> <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">2024-12-29T10:32:24.4284785-08:00</CreatedDate> <DeletedBy xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">0554d133-5370-4223-a88b-fdc897fa7128</DeletedBy> <DeletedDate xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">2024-12-29T10:32:24.4284785-08:00</DeletedDate> <Detail xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">sample string 10</Detail> <Id xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">663a4873-0a65-4fdc-bc7d-a14a530642c3</Id> <IsActive xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">true</IsActive> <ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">7e57d817-dc54-432d-ae7a-9ef3869c4ca4</ModifiedBy> <ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">2024-12-29T10:32:24.4284785-08:00</ModifiedDate> <Discount>4</Discount> <ImageURL>sample string 7</ImageURL> <Name>sample string 1</Name> <Price>sample string 2</Price> <PriceWithDiscount>sample string 3</PriceWithDiscount> <ProductURL>sample string 6</ProductURL> <ProviderID>ef39e33c-3ba0-4499-9cf5-58e7cebd875f</ProviderID> <SKU>sample string 5</SKU> </ProductBundleItemModel> <ProductBundleItemModel> <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">9405a5ee-80bc-4c21-a67b-03a5911e64b0</CreatedBy> <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">2024-12-29T10:32:24.4284785-08:00</CreatedDate> <DeletedBy xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">0554d133-5370-4223-a88b-fdc897fa7128</DeletedBy> <DeletedDate xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">2024-12-29T10:32:24.4284785-08:00</DeletedDate> <Detail xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">sample string 10</Detail> <Id xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">663a4873-0a65-4fdc-bc7d-a14a530642c3</Id> <IsActive xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">true</IsActive> <ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">7e57d817-dc54-432d-ae7a-9ef3869c4ca4</ModifiedBy> <ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">2024-12-29T10:32:24.4284785-08:00</ModifiedDate> <Discount>4</Discount> <ImageURL>sample string 7</ImageURL> <Name>sample string 1</Name> <Price>sample string 2</Price> <PriceWithDiscount>sample string 3</PriceWithDiscount> <ProductURL>sample string 6</ProductURL> <ProviderID>ef39e33c-3ba0-4499-9cf5-58e7cebd875f</ProviderID> <SKU>sample string 5</SKU> </ProductBundleItemModel> </ProducList> <ProvideID>3b828e8a-9bfd-4a19-adbc-174d33dddce1</ProvideID> <ProviderName>sample string 2</ProviderName> </ProductBundle>
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. |