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-05-24T14:42:52.6852418+03:00", "purchaseOTV": 12.1, "purchaseDiscount": 13.1, "purchasePrice": 14.1, "isPurchaseKDVInclude": true, "purchaseKDV": 0, "purchaseCurrencyID": "447d0f05-e5f7-4a0c-a844-d1e0575f3a4c", "salePriceGroupOneDto": { "currencyID": "28ed0ae6-2399-4b56-9ca4-4a6e63ce8e95", "productID": "eea842d8-7d8c-49c3-b1f7-4f3ea58cc075", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "7315af99-226a-496d-9139-0396792337f1", "companyID": "105792b0-4b31-4807-9631-22d6e75dd9f6" }, "salePriceGroupTwoDto": { "currencyID": "28ed0ae6-2399-4b56-9ca4-4a6e63ce8e95", "productID": "eea842d8-7d8c-49c3-b1f7-4f3ea58cc075", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "7315af99-226a-496d-9139-0396792337f1", "companyID": "105792b0-4b31-4807-9631-22d6e75dd9f6" }, "salePriceGroupThreeDto": { "currencyID": "28ed0ae6-2399-4b56-9ca4-4a6e63ce8e95", "productID": "eea842d8-7d8c-49c3-b1f7-4f3ea58cc075", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "7315af99-226a-496d-9139-0396792337f1", "companyID": "105792b0-4b31-4807-9631-22d6e75dd9f6" }, "salePriceGroupFourDto": { "currencyID": "28ed0ae6-2399-4b56-9ca4-4a6e63ce8e95", "productID": "eea842d8-7d8c-49c3-b1f7-4f3ea58cc075", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "7315af99-226a-496d-9139-0396792337f1", "companyID": "105792b0-4b31-4807-9631-22d6e75dd9f6" }, "salePriceGroupFiveDto": { "currencyID": "28ed0ae6-2399-4b56-9ca4-4a6e63ce8e95", "productID": "eea842d8-7d8c-49c3-b1f7-4f3ea58cc075", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "7315af99-226a-496d-9139-0396792337f1", "companyID": "105792b0-4b31-4807-9631-22d6e75dd9f6" }, "categoryID": "ea2f56d5-feae-4f20-a93b-786a64296d0a", "brandID": "b2221459-11dc-488a-86b4-c994b9ca53e4", "unitID": "c40b70c2-ea88-4216-88da-bd6b4dc0a128", "warehouseID": "61397553-edfe-4c5b-9d27-752f3744af20", "gtip": "sample string 16", "producerCountry": "sample string 17", "isDeleted": true, "buyersItemIdentification": "sample string 19", "id": "5faeb882-e7ab-43bd-a809-6be068435cc9", "companyID": "7f78d4b8-22e0-4d55-af77-37fa2e7c81cd" }
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>7f78d4b8-22e0-4d55-af77-37fa2e7c81cd</CompanyID> <ID>5faeb882-e7ab-43bd-a809-6be068435cc9</ID> <Barcode>sample string 3</Barcode> <BrandID>b2221459-11dc-488a-86b4-c994b9ca53e4</BrandID> <BuyersItemIdentification>sample string 19</BuyersItemIdentification> <CategoryID>ea2f56d5-feae-4f20-a93b-786a64296d0a</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>447d0f05-e5f7-4a0c-a844-d1e0575f3a4c</PurchaseCurrencyID> <PurchaseDiscount>13.1</PurchaseDiscount> <PurchaseKDV>KDV0</PurchaseKDV> <PurchaseOTV>12.1</PurchaseOTV> <PurchasePrice>14.1</PurchasePrice> <SalePriceGroupFiveDto> <CompanyID>105792b0-4b31-4807-9631-22d6e75dd9f6</CompanyID> <ID>7315af99-226a-496d-9139-0396792337f1</ID> <CurrencyID>28ed0ae6-2399-4b56-9ca4-4a6e63ce8e95</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>eea842d8-7d8c-49c3-b1f7-4f3ea58cc075</ProductID> </SalePriceGroupFiveDto> <SalePriceGroupFourDto> <CompanyID>105792b0-4b31-4807-9631-22d6e75dd9f6</CompanyID> <ID>7315af99-226a-496d-9139-0396792337f1</ID> <CurrencyID>28ed0ae6-2399-4b56-9ca4-4a6e63ce8e95</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>eea842d8-7d8c-49c3-b1f7-4f3ea58cc075</ProductID> </SalePriceGroupFourDto> <SalePriceGroupOneDto> <CompanyID>105792b0-4b31-4807-9631-22d6e75dd9f6</CompanyID> <ID>7315af99-226a-496d-9139-0396792337f1</ID> <CurrencyID>28ed0ae6-2399-4b56-9ca4-4a6e63ce8e95</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>eea842d8-7d8c-49c3-b1f7-4f3ea58cc075</ProductID> </SalePriceGroupOneDto> <SalePriceGroupThreeDto> <CompanyID>105792b0-4b31-4807-9631-22d6e75dd9f6</CompanyID> <ID>7315af99-226a-496d-9139-0396792337f1</ID> <CurrencyID>28ed0ae6-2399-4b56-9ca4-4a6e63ce8e95</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>eea842d8-7d8c-49c3-b1f7-4f3ea58cc075</ProductID> </SalePriceGroupThreeDto> <SalePriceGroupTwoDto> <CompanyID>105792b0-4b31-4807-9631-22d6e75dd9f6</CompanyID> <ID>7315af99-226a-496d-9139-0396792337f1</ID> <CurrencyID>28ed0ae6-2399-4b56-9ca4-4a6e63ce8e95</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>eea842d8-7d8c-49c3-b1f7-4f3ea58cc075</ProductID> </SalePriceGroupTwoDto> <SerialNumber>sample string 9</SerialNumber> <Stock>7.1</Stock> <UnitID>c40b70c2-ea88-4216-88da-bd6b4dc0a128</UnitID> <WarehouseID>61397553-edfe-4c5b-9d27-752f3744af20</WarehouseID> <WarrantyEndDate>2025-05-24T14:42:52.6852418+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-05-24T14:42:52.6852418+03:00","purchaseOTV":12.1,"purchaseDiscount":13.1,"purchasePrice":14.1,"isPurchaseKDVInclude":true,"purchaseKDV":0,"purchaseCurrencyID":"447d0f05-e5f7-4a0c-a844-d1e0575f3a4c","salePriceGroupOneDto":{"currencyID":"28ed0ae6-2399-4b56-9ca4-4a6e63ce8e95","productID":"eea842d8-7d8c-49c3-b1f7-4f3ea58cc075","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"7315af99-226a-496d-9139-0396792337f1","companyID":"105792b0-4b31-4807-9631-22d6e75dd9f6"},"salePriceGroupTwoDto":{"currencyID":"28ed0ae6-2399-4b56-9ca4-4a6e63ce8e95","productID":"eea842d8-7d8c-49c3-b1f7-4f3ea58cc075","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"7315af99-226a-496d-9139-0396792337f1","companyID":"105792b0-4b31-4807-9631-22d6e75dd9f6"},"salePriceGroupThreeDto":{"currencyID":"28ed0ae6-2399-4b56-9ca4-4a6e63ce8e95","productID":"eea842d8-7d8c-49c3-b1f7-4f3ea58cc075","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"7315af99-226a-496d-9139-0396792337f1","companyID":"105792b0-4b31-4807-9631-22d6e75dd9f6"},"salePriceGroupFourDto":{"currencyID":"28ed0ae6-2399-4b56-9ca4-4a6e63ce8e95","productID":"eea842d8-7d8c-49c3-b1f7-4f3ea58cc075","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"7315af99-226a-496d-9139-0396792337f1","companyID":"105792b0-4b31-4807-9631-22d6e75dd9f6"},"salePriceGroupFiveDto":{"currencyID":"28ed0ae6-2399-4b56-9ca4-4a6e63ce8e95","productID":"eea842d8-7d8c-49c3-b1f7-4f3ea58cc075","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"7315af99-226a-496d-9139-0396792337f1","companyID":"105792b0-4b31-4807-9631-22d6e75dd9f6"},"categoryID":"ea2f56d5-feae-4f20-a93b-786a64296d0a","brandID":"b2221459-11dc-488a-86b4-c994b9ca53e4","unitID":"c40b70c2-ea88-4216-88da-bd6b4dc0a128","warehouseID":"61397553-edfe-4c5b-9d27-752f3744af20","gtip":"sample string 16","producerCountry":"sample string 17","isDeleted":true,"buyersItemIdentification":"sample string 19","id":"5faeb882-e7ab-43bd-a809-6be068435cc9","companyID":"7f78d4b8-22e0-4d55-af77-37fa2e7c81cd"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.