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-07-08T21:20:25.4340495+03:00", "purchaseOTV": 12.1, "purchaseDiscount": 13.1, "purchasePrice": 14.1, "isPurchaseKDVInclude": true, "purchaseKDV": 0, "purchaseCurrencyID": "55bbd1b4-7fb9-4150-8b59-139a6c49359b", "salePriceGroupOneDto": { "currencyID": "51629605-bf7f-433a-adfc-9339ee04a19b", "productID": "014304eb-93fb-415b-990c-ba2151feea09", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "1ea89ae4-cffe-4b3a-8052-2f65c125e3bf", "companyID": "5c27eb60-8166-43a5-893b-0adaaeb2213b" }, "salePriceGroupTwoDto": { "currencyID": "51629605-bf7f-433a-adfc-9339ee04a19b", "productID": "014304eb-93fb-415b-990c-ba2151feea09", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "1ea89ae4-cffe-4b3a-8052-2f65c125e3bf", "companyID": "5c27eb60-8166-43a5-893b-0adaaeb2213b" }, "salePriceGroupThreeDto": { "currencyID": "51629605-bf7f-433a-adfc-9339ee04a19b", "productID": "014304eb-93fb-415b-990c-ba2151feea09", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "1ea89ae4-cffe-4b3a-8052-2f65c125e3bf", "companyID": "5c27eb60-8166-43a5-893b-0adaaeb2213b" }, "salePriceGroupFourDto": { "currencyID": "51629605-bf7f-433a-adfc-9339ee04a19b", "productID": "014304eb-93fb-415b-990c-ba2151feea09", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "1ea89ae4-cffe-4b3a-8052-2f65c125e3bf", "companyID": "5c27eb60-8166-43a5-893b-0adaaeb2213b" }, "salePriceGroupFiveDto": { "currencyID": "51629605-bf7f-433a-adfc-9339ee04a19b", "productID": "014304eb-93fb-415b-990c-ba2151feea09", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "1ea89ae4-cffe-4b3a-8052-2f65c125e3bf", "companyID": "5c27eb60-8166-43a5-893b-0adaaeb2213b" }, "categoryID": "c7a3134b-f7e6-4985-a346-bcc93b92609f", "brandID": "ca93513c-9028-4d64-bd04-b8bae66d55a9", "unitID": "54b6a152-033f-4742-adb5-d164e3504321", "warehouseID": "ac61d421-be93-4c08-aafd-623736b7ba4e", "gtip": "sample string 16", "producerCountry": "sample string 17", "isDeleted": true, "buyersItemIdentification": "sample string 19", "id": "9f095d82-f052-4530-86f6-a00a5adb66ae", "companyID": "9df6eb7d-3536-4a1e-ba48-2cec3ca2ae65" }
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>9df6eb7d-3536-4a1e-ba48-2cec3ca2ae65</CompanyID> <ID>9f095d82-f052-4530-86f6-a00a5adb66ae</ID> <Barcode>sample string 3</Barcode> <BrandID>ca93513c-9028-4d64-bd04-b8bae66d55a9</BrandID> <BuyersItemIdentification>sample string 19</BuyersItemIdentification> <CategoryID>c7a3134b-f7e6-4985-a346-bcc93b92609f</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>55bbd1b4-7fb9-4150-8b59-139a6c49359b</PurchaseCurrencyID> <PurchaseDiscount>13.1</PurchaseDiscount> <PurchaseKDV>KDV0</PurchaseKDV> <PurchaseOTV>12.1</PurchaseOTV> <PurchasePrice>14.1</PurchasePrice> <SalePriceGroupFiveDto> <CompanyID>5c27eb60-8166-43a5-893b-0adaaeb2213b</CompanyID> <ID>1ea89ae4-cffe-4b3a-8052-2f65c125e3bf</ID> <CurrencyID>51629605-bf7f-433a-adfc-9339ee04a19b</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>014304eb-93fb-415b-990c-ba2151feea09</ProductID> </SalePriceGroupFiveDto> <SalePriceGroupFourDto> <CompanyID>5c27eb60-8166-43a5-893b-0adaaeb2213b</CompanyID> <ID>1ea89ae4-cffe-4b3a-8052-2f65c125e3bf</ID> <CurrencyID>51629605-bf7f-433a-adfc-9339ee04a19b</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>014304eb-93fb-415b-990c-ba2151feea09</ProductID> </SalePriceGroupFourDto> <SalePriceGroupOneDto> <CompanyID>5c27eb60-8166-43a5-893b-0adaaeb2213b</CompanyID> <ID>1ea89ae4-cffe-4b3a-8052-2f65c125e3bf</ID> <CurrencyID>51629605-bf7f-433a-adfc-9339ee04a19b</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>014304eb-93fb-415b-990c-ba2151feea09</ProductID> </SalePriceGroupOneDto> <SalePriceGroupThreeDto> <CompanyID>5c27eb60-8166-43a5-893b-0adaaeb2213b</CompanyID> <ID>1ea89ae4-cffe-4b3a-8052-2f65c125e3bf</ID> <CurrencyID>51629605-bf7f-433a-adfc-9339ee04a19b</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>014304eb-93fb-415b-990c-ba2151feea09</ProductID> </SalePriceGroupThreeDto> <SalePriceGroupTwoDto> <CompanyID>5c27eb60-8166-43a5-893b-0adaaeb2213b</CompanyID> <ID>1ea89ae4-cffe-4b3a-8052-2f65c125e3bf</ID> <CurrencyID>51629605-bf7f-433a-adfc-9339ee04a19b</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>014304eb-93fb-415b-990c-ba2151feea09</ProductID> </SalePriceGroupTwoDto> <SerialNumber>sample string 9</SerialNumber> <Stock>7.1</Stock> <UnitID>54b6a152-033f-4742-adb5-d164e3504321</UnitID> <WarehouseID>ac61d421-be93-4c08-aafd-623736b7ba4e</WarehouseID> <WarrantyEndDate>2025-07-08T21:20:25.4340495+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-07-08T21:20:25.4340495+03:00","purchaseOTV":12.1,"purchaseDiscount":13.1,"purchasePrice":14.1,"isPurchaseKDVInclude":true,"purchaseKDV":0,"purchaseCurrencyID":"55bbd1b4-7fb9-4150-8b59-139a6c49359b","salePriceGroupOneDto":{"currencyID":"51629605-bf7f-433a-adfc-9339ee04a19b","productID":"014304eb-93fb-415b-990c-ba2151feea09","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"1ea89ae4-cffe-4b3a-8052-2f65c125e3bf","companyID":"5c27eb60-8166-43a5-893b-0adaaeb2213b"},"salePriceGroupTwoDto":{"currencyID":"51629605-bf7f-433a-adfc-9339ee04a19b","productID":"014304eb-93fb-415b-990c-ba2151feea09","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"1ea89ae4-cffe-4b3a-8052-2f65c125e3bf","companyID":"5c27eb60-8166-43a5-893b-0adaaeb2213b"},"salePriceGroupThreeDto":{"currencyID":"51629605-bf7f-433a-adfc-9339ee04a19b","productID":"014304eb-93fb-415b-990c-ba2151feea09","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"1ea89ae4-cffe-4b3a-8052-2f65c125e3bf","companyID":"5c27eb60-8166-43a5-893b-0adaaeb2213b"},"salePriceGroupFourDto":{"currencyID":"51629605-bf7f-433a-adfc-9339ee04a19b","productID":"014304eb-93fb-415b-990c-ba2151feea09","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"1ea89ae4-cffe-4b3a-8052-2f65c125e3bf","companyID":"5c27eb60-8166-43a5-893b-0adaaeb2213b"},"salePriceGroupFiveDto":{"currencyID":"51629605-bf7f-433a-adfc-9339ee04a19b","productID":"014304eb-93fb-415b-990c-ba2151feea09","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"1ea89ae4-cffe-4b3a-8052-2f65c125e3bf","companyID":"5c27eb60-8166-43a5-893b-0adaaeb2213b"},"categoryID":"c7a3134b-f7e6-4985-a346-bcc93b92609f","brandID":"ca93513c-9028-4d64-bd04-b8bae66d55a9","unitID":"54b6a152-033f-4742-adb5-d164e3504321","warehouseID":"ac61d421-be93-4c08-aafd-623736b7ba4e","gtip":"sample string 16","producerCountry":"sample string 17","isDeleted":true,"buyersItemIdentification":"sample string 19","id":"9f095d82-f052-4530-86f6-a00a5adb66ae","companyID":"9df6eb7d-3536-4a1e-ba48-2cec3ca2ae65"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.