POST api/Product/Update
Request Information
URI Parameters
None.
Body Parameters
ProductUpdateDtoName | Description | Type | Additional information |
---|---|---|---|
Code | string |
None. |
|
Name | string |
None. |
|
ProductType | ProductType |
None. |
|
Barcode | string |
None. |
|
Description | string |
None. |
|
Photo | string |
None. |
|
IsStockTracking | boolean |
None. |
|
Stock | decimal number |
None. |
|
MinStockValue | decimal number |
None. |
|
SerialNumber | string |
None. |
|
Model | string |
None. |
|
IsWarranty | boolean |
None. |
|
WarrantyEndDate | date |
None. |
|
PurchaseOTV | decimal number |
None. |
|
PurchaseDiscount | decimal number |
None. |
|
PurchasePrice | decimal number |
None. |
|
IsPurchaseKDVInclude | boolean |
None. |
|
PurchaseKDV | KDV |
None. |
|
PurchaseCurrencyID | globally unique identifier |
None. |
|
SalePriceGroupOneDto | SalePriceGroupUpdateDto |
None. |
|
SalePriceGroupTwoDto | SalePriceGroupUpdateDto |
None. |
|
SalePriceGroupThreeDto | SalePriceGroupUpdateDto |
None. |
|
SalePriceGroupFourDto | SalePriceGroupUpdateDto |
None. |
|
SalePriceGroupFiveDto | SalePriceGroupUpdateDto |
None. |
|
CategoryID | globally unique identifier |
None. |
|
BrandID | globally unique identifier |
None. |
|
UnitID | globally unique identifier |
None. |
|
WarehouseID | globally unique identifier |
None. |
|
Gtip | string |
None. |
|
ProducerCountry | string |
None. |
|
IsDeleted | boolean |
None. |
|
BuyersItemIdentification | string |
None. |
|
ID | globally unique identifier |
Required |
|
CompanyID | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "code": "sample string 1", "name": "sample string 2", "productType": 1, "barcode": "sample string 3", "description": "sample string 4", "photo": "sample string 5", "isStockTracking": true, "stock": 7.1, "minStockValue": 8.1, "serialNumber": "sample string 9", "model": "sample string 10", "isWarranty": true, "warrantyEndDate": "2025-08-29T12:25:13.4311574+03:00", "purchaseOTV": 12.1, "purchaseDiscount": 13.1, "purchasePrice": 14.1, "isPurchaseKDVInclude": true, "purchaseKDV": 0, "purchaseCurrencyID": "74280eaa-bc6f-4a48-a559-ac947744dda8", "salePriceGroupOneDto": { "currencyID": "024796ec-3a30-4713-87b1-5af215cdafa4", "productID": "b11abce0-e3e4-4f38-b407-2715467eb929", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "d164c5b4-16f3-46f4-9ccc-491c87e7bf91", "companyID": "9be09e6b-0702-4a62-ad70-b85f1d6b8801" }, "salePriceGroupTwoDto": { "currencyID": "024796ec-3a30-4713-87b1-5af215cdafa4", "productID": "b11abce0-e3e4-4f38-b407-2715467eb929", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "d164c5b4-16f3-46f4-9ccc-491c87e7bf91", "companyID": "9be09e6b-0702-4a62-ad70-b85f1d6b8801" }, "salePriceGroupThreeDto": { "currencyID": "024796ec-3a30-4713-87b1-5af215cdafa4", "productID": "b11abce0-e3e4-4f38-b407-2715467eb929", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "d164c5b4-16f3-46f4-9ccc-491c87e7bf91", "companyID": "9be09e6b-0702-4a62-ad70-b85f1d6b8801" }, "salePriceGroupFourDto": { "currencyID": "024796ec-3a30-4713-87b1-5af215cdafa4", "productID": "b11abce0-e3e4-4f38-b407-2715467eb929", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "d164c5b4-16f3-46f4-9ccc-491c87e7bf91", "companyID": "9be09e6b-0702-4a62-ad70-b85f1d6b8801" }, "salePriceGroupFiveDto": { "currencyID": "024796ec-3a30-4713-87b1-5af215cdafa4", "productID": "b11abce0-e3e4-4f38-b407-2715467eb929", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "d164c5b4-16f3-46f4-9ccc-491c87e7bf91", "companyID": "9be09e6b-0702-4a62-ad70-b85f1d6b8801" }, "categoryID": "7d8da8d8-d849-4ee8-8f2b-0c46887b2722", "brandID": "995b7e6a-fff6-4253-ba61-8b8cac96e1c8", "unitID": "68ee563a-f6ba-4fff-9039-f4bb2f85ce9d", "warehouseID": "90c47ac3-851f-486b-9cb8-850fcd4adfb6", "gtip": "sample string 16", "producerCountry": "sample string 17", "isDeleted": true, "buyersItemIdentification": "sample string 19", "id": "ca1cf3ca-e8ed-40de-bcaa-b9bf653acb98", "companyID": "9cd84443-7347-4109-991a-4ff2a5a16a6b" }
application/xml, text/xml
Sample:
<ProductUpdateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TP.TulTrack.Core.Service.DTOs"> <CompanyID>9cd84443-7347-4109-991a-4ff2a5a16a6b</CompanyID> <ID>ca1cf3ca-e8ed-40de-bcaa-b9bf653acb98</ID> <Barcode>sample string 3</Barcode> <BrandID>995b7e6a-fff6-4253-ba61-8b8cac96e1c8</BrandID> <BuyersItemIdentification>sample string 19</BuyersItemIdentification> <CategoryID>7d8da8d8-d849-4ee8-8f2b-0c46887b2722</CategoryID> <Code>sample string 1</Code> <Description>sample string 4</Description> <Gtip>sample string 16</Gtip> <IsDeleted>true</IsDeleted> <IsPurchaseKDVInclude>true</IsPurchaseKDVInclude> <IsStockTracking>true</IsStockTracking> <IsWarranty>true</IsWarranty> <MinStockValue>8.1</MinStockValue> <Model>sample string 10</Model> <Name>sample string 2</Name> <Photo>sample string 5</Photo> <ProducerCountry>sample string 17</ProducerCountry> <ProductType>Product</ProductType> <PurchaseCurrencyID>74280eaa-bc6f-4a48-a559-ac947744dda8</PurchaseCurrencyID> <PurchaseDiscount>13.1</PurchaseDiscount> <PurchaseKDV>KDV0</PurchaseKDV> <PurchaseOTV>12.1</PurchaseOTV> <PurchasePrice>14.1</PurchasePrice> <SalePriceGroupFiveDto> <CompanyID>9be09e6b-0702-4a62-ad70-b85f1d6b8801</CompanyID> <ID>d164c5b4-16f3-46f4-9ccc-491c87e7bf91</ID> <CurrencyID>024796ec-3a30-4713-87b1-5af215cdafa4</CurrencyID> <IsKDVInclude>true</IsKDVInclude> <KDV>KDV0</KDV> <OIV>3.1</OIV> <OIVCode>sample string 5</OIVCode> <OTV>4.1</OTV> <OTVCode>sample string 6</OTVCode> <Price>2.1</Price> <ProductID>b11abce0-e3e4-4f38-b407-2715467eb929</ProductID> </SalePriceGroupFiveDto> <SalePriceGroupFourDto> <CompanyID>9be09e6b-0702-4a62-ad70-b85f1d6b8801</CompanyID> <ID>d164c5b4-16f3-46f4-9ccc-491c87e7bf91</ID> <CurrencyID>024796ec-3a30-4713-87b1-5af215cdafa4</CurrencyID> <IsKDVInclude>true</IsKDVInclude> <KDV>KDV0</KDV> <OIV>3.1</OIV> <OIVCode>sample string 5</OIVCode> <OTV>4.1</OTV> <OTVCode>sample string 6</OTVCode> <Price>2.1</Price> <ProductID>b11abce0-e3e4-4f38-b407-2715467eb929</ProductID> </SalePriceGroupFourDto> <SalePriceGroupOneDto> <CompanyID>9be09e6b-0702-4a62-ad70-b85f1d6b8801</CompanyID> <ID>d164c5b4-16f3-46f4-9ccc-491c87e7bf91</ID> <CurrencyID>024796ec-3a30-4713-87b1-5af215cdafa4</CurrencyID> <IsKDVInclude>true</IsKDVInclude> <KDV>KDV0</KDV> <OIV>3.1</OIV> <OIVCode>sample string 5</OIVCode> <OTV>4.1</OTV> <OTVCode>sample string 6</OTVCode> <Price>2.1</Price> <ProductID>b11abce0-e3e4-4f38-b407-2715467eb929</ProductID> </SalePriceGroupOneDto> <SalePriceGroupThreeDto> <CompanyID>9be09e6b-0702-4a62-ad70-b85f1d6b8801</CompanyID> <ID>d164c5b4-16f3-46f4-9ccc-491c87e7bf91</ID> <CurrencyID>024796ec-3a30-4713-87b1-5af215cdafa4</CurrencyID> <IsKDVInclude>true</IsKDVInclude> <KDV>KDV0</KDV> <OIV>3.1</OIV> <OIVCode>sample string 5</OIVCode> <OTV>4.1</OTV> <OTVCode>sample string 6</OTVCode> <Price>2.1</Price> <ProductID>b11abce0-e3e4-4f38-b407-2715467eb929</ProductID> </SalePriceGroupThreeDto> <SalePriceGroupTwoDto> <CompanyID>9be09e6b-0702-4a62-ad70-b85f1d6b8801</CompanyID> <ID>d164c5b4-16f3-46f4-9ccc-491c87e7bf91</ID> <CurrencyID>024796ec-3a30-4713-87b1-5af215cdafa4</CurrencyID> <IsKDVInclude>true</IsKDVInclude> <KDV>KDV0</KDV> <OIV>3.1</OIV> <OIVCode>sample string 5</OIVCode> <OTV>4.1</OTV> <OTVCode>sample string 6</OTVCode> <Price>2.1</Price> <ProductID>b11abce0-e3e4-4f38-b407-2715467eb929</ProductID> </SalePriceGroupTwoDto> <SerialNumber>sample string 9</SerialNumber> <Stock>7.1</Stock> <UnitID>68ee563a-f6ba-4fff-9039-f4bb2f85ce9d</UnitID> <WarehouseID>90c47ac3-851f-486b-9cb8-850fcd4adfb6</WarehouseID> <WarrantyEndDate>2025-08-29T12:25:13.4311574+03:00</WarrantyEndDate> </ProductUpdateDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"code":"sample string 1","name":"sample string 2","productType":1,"barcode":"sample string 3","description":"sample string 4","photo":"sample string 5","isStockTracking":true,"stock":7.1,"minStockValue":8.1,"serialNumber":"sample string 9","model":"sample string 10","isWarranty":true,"warrantyEndDate":"2025-08-29T12:25:13.4311574+03:00","purchaseOTV":12.1,"purchaseDiscount":13.1,"purchasePrice":14.1,"isPurchaseKDVInclude":true,"purchaseKDV":0,"purchaseCurrencyID":"74280eaa-bc6f-4a48-a559-ac947744dda8","salePriceGroupOneDto":{"currencyID":"024796ec-3a30-4713-87b1-5af215cdafa4","productID":"b11abce0-e3e4-4f38-b407-2715467eb929","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"d164c5b4-16f3-46f4-9ccc-491c87e7bf91","companyID":"9be09e6b-0702-4a62-ad70-b85f1d6b8801"},"salePriceGroupTwoDto":{"currencyID":"024796ec-3a30-4713-87b1-5af215cdafa4","productID":"b11abce0-e3e4-4f38-b407-2715467eb929","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"d164c5b4-16f3-46f4-9ccc-491c87e7bf91","companyID":"9be09e6b-0702-4a62-ad70-b85f1d6b8801"},"salePriceGroupThreeDto":{"currencyID":"024796ec-3a30-4713-87b1-5af215cdafa4","productID":"b11abce0-e3e4-4f38-b407-2715467eb929","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"d164c5b4-16f3-46f4-9ccc-491c87e7bf91","companyID":"9be09e6b-0702-4a62-ad70-b85f1d6b8801"},"salePriceGroupFourDto":{"currencyID":"024796ec-3a30-4713-87b1-5af215cdafa4","productID":"b11abce0-e3e4-4f38-b407-2715467eb929","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"d164c5b4-16f3-46f4-9ccc-491c87e7bf91","companyID":"9be09e6b-0702-4a62-ad70-b85f1d6b8801"},"salePriceGroupFiveDto":{"currencyID":"024796ec-3a30-4713-87b1-5af215cdafa4","productID":"b11abce0-e3e4-4f38-b407-2715467eb929","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"d164c5b4-16f3-46f4-9ccc-491c87e7bf91","companyID":"9be09e6b-0702-4a62-ad70-b85f1d6b8801"},"categoryID":"7d8da8d8-d849-4ee8-8f2b-0c46887b2722","brandID":"995b7e6a-fff6-4253-ba61-8b8cac96e1c8","unitID":"68ee563a-f6ba-4fff-9039-f4bb2f85ce9d","warehouseID":"90c47ac3-851f-486b-9cb8-850fcd4adfb6","gtip":"sample string 16","producerCountry":"sample string 17","isDeleted":true,"buyersItemIdentification":"sample string 19","id":"ca1cf3ca-e8ed-40de-bcaa-b9bf653acb98","companyID":"9cd84443-7347-4109-991a-4ff2a5a16a6b"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.