POST api/Product/Add
Request Information
URI Parameters
None.
Body Parameters
ProductAddDtoName | Description | Type | Additional information |
---|---|---|---|
ID | globally unique identifier |
None. |
|
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. |
|
SalePriceGroupOneID | globally unique identifier |
None. |
|
SalePriceGroupOneDto | SalePriceGroupAddDto |
None. |
|
SalePriceGroupTwoID | globally unique identifier |
None. |
|
SalePriceGroupTwoDto | SalePriceGroupAddDto |
None. |
|
SalePriceGroupThreeID | globally unique identifier |
None. |
|
SalePriceGroupThreeDto | SalePriceGroupAddDto |
None. |
|
SalePriceGroupFourID | globally unique identifier |
None. |
|
SalePriceGroupFourDto | SalePriceGroupAddDto |
None. |
|
SalePriceGroupFiveID | globally unique identifier |
None. |
|
SalePriceGroupFiveDto | SalePriceGroupAddDto |
None. |
|
Documents | Collection of DocumentAddDto |
None. |
|
CompanyID | globally unique identifier |
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. |
|
IsStockSave | boolean |
None. |
|
IsImported | boolean |
None. |
|
ShowOnInvoice | boolean |
None. |
|
IsActive | boolean |
None. |
|
BuyersItemIdentification | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "id": "3ceba681-aa1b-46b2-b3f2-a406819c7766", "code": "sample string 2", "name": "sample string 3", "productType": 1, "barcode": "sample string 4", "description": "sample string 5", "photo": "sample string 6", "isStockTracking": true, "stock": 8.1, "minStockValue": 9.1, "serialNumber": "sample string 10", "model": "sample string 11", "isWarranty": true, "warrantyEndDate": "2025-07-08T21:11:30.4809125+03:00", "purchaseOTV": 13.1, "purchaseDiscount": 14.1, "purchasePrice": 15.1, "isPurchaseKDVInclude": true, "purchaseKDV": 0, "purchaseCurrencyID": "f88982dd-21c6-4a35-9a5b-b615a90ebb36", "salePriceGroupOneID": "6e3f85c4-acc1-4a78-ba12-31e32fea7de6", "salePriceGroupOneDto": { "currencyID": "3a6cf837-ed7e-415d-903e-fb313f95876c", "productID": "9e777f65-4600-4d06-8913-500f0c830e50", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6" }, "salePriceGroupTwoID": "ad3a04bb-e200-47f7-b9a6-583296ba770b", "salePriceGroupTwoDto": { "currencyID": "3a6cf837-ed7e-415d-903e-fb313f95876c", "productID": "9e777f65-4600-4d06-8913-500f0c830e50", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6" }, "salePriceGroupThreeID": "388da362-325c-4820-b44a-da08d3380a3d", "salePriceGroupThreeDto": { "currencyID": "3a6cf837-ed7e-415d-903e-fb313f95876c", "productID": "9e777f65-4600-4d06-8913-500f0c830e50", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6" }, "salePriceGroupFourID": "62f60ad3-d457-4317-bde2-8b1a387180df", "salePriceGroupFourDto": { "currencyID": "3a6cf837-ed7e-415d-903e-fb313f95876c", "productID": "9e777f65-4600-4d06-8913-500f0c830e50", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6" }, "salePriceGroupFiveID": "27e3dbf5-a2da-4da8-96c2-9c464a9b53f9", "salePriceGroupFiveDto": { "currencyID": "3a6cf837-ed7e-415d-903e-fb313f95876c", "productID": "9e777f65-4600-4d06-8913-500f0c830e50", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6" }, "documents": [ { "name": "sample string 1", "documentURL": "sample string 2", "companyID": "a16bae66-9cee-4e74-afa7-ad2e1f67c8af" }, { "name": "sample string 1", "documentURL": "sample string 2", "companyID": "a16bae66-9cee-4e74-afa7-ad2e1f67c8af" } ], "companyID": "f2f46a6f-d3b9-4918-8464-4f87f94b084e", "categoryID": "fdd3a4f0-fae0-4e72-8788-3c9f49ea6452", "brandID": "6d8b6703-cbfc-42f5-8315-c2a0adb278ef", "unitID": "c296ec01-b459-4b35-8898-18f268ace9cb", "warehouseID": "a8273ee8-e40b-485e-9729-278fd935180a", "gtip": "sample string 18", "producerCountry": "sample string 19", "isStockSave": true, "isImported": true, "showOnInvoice": true, "isActive": true, "buyersItemIdentification": "sample string 24" }
application/xml, text/xml
Sample:
<ProductAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TP.TulTrack.Core.Service.DTOs"> <Barcode>sample string 4</Barcode> <BrandID>6d8b6703-cbfc-42f5-8315-c2a0adb278ef</BrandID> <BuyersItemIdentification>sample string 24</BuyersItemIdentification> <CategoryID>fdd3a4f0-fae0-4e72-8788-3c9f49ea6452</CategoryID> <Code>sample string 2</Code> <CompanyID>f2f46a6f-d3b9-4918-8464-4f87f94b084e</CompanyID> <Description>sample string 5</Description> <Documents> <DocumentAddDto> <CompanyID>a16bae66-9cee-4e74-afa7-ad2e1f67c8af</CompanyID> <DocumentURL>sample string 2</DocumentURL> <Name>sample string 1</Name> </DocumentAddDto> <DocumentAddDto> <CompanyID>a16bae66-9cee-4e74-afa7-ad2e1f67c8af</CompanyID> <DocumentURL>sample string 2</DocumentURL> <Name>sample string 1</Name> </DocumentAddDto> </Documents> <Gtip>sample string 18</Gtip> <ID>3ceba681-aa1b-46b2-b3f2-a406819c7766</ID> <IsActive>true</IsActive> <IsImported>true</IsImported> <IsPurchaseKDVInclude>true</IsPurchaseKDVInclude> <IsStockSave>true</IsStockSave> <IsStockTracking>true</IsStockTracking> <IsWarranty>true</IsWarranty> <MinStockValue>9.1</MinStockValue> <Model>sample string 11</Model> <Name>sample string 3</Name> <Photo>sample string 6</Photo> <ProducerCountry>sample string 19</ProducerCountry> <ProductType>Product</ProductType> <PurchaseCurrencyID>f88982dd-21c6-4a35-9a5b-b615a90ebb36</PurchaseCurrencyID> <PurchaseDiscount>14.1</PurchaseDiscount> <PurchaseKDV>KDV0</PurchaseKDV> <PurchaseOTV>13.1</PurchaseOTV> <PurchasePrice>15.1</PurchasePrice> <SalePriceGroupFiveDto> <CurrencyID>3a6cf837-ed7e-415d-903e-fb313f95876c</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>9e777f65-4600-4d06-8913-500f0c830e50</ProductID> </SalePriceGroupFiveDto> <SalePriceGroupFiveID>27e3dbf5-a2da-4da8-96c2-9c464a9b53f9</SalePriceGroupFiveID> <SalePriceGroupFourDto> <CurrencyID>3a6cf837-ed7e-415d-903e-fb313f95876c</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>9e777f65-4600-4d06-8913-500f0c830e50</ProductID> </SalePriceGroupFourDto> <SalePriceGroupFourID>62f60ad3-d457-4317-bde2-8b1a387180df</SalePriceGroupFourID> <SalePriceGroupOneDto> <CurrencyID>3a6cf837-ed7e-415d-903e-fb313f95876c</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>9e777f65-4600-4d06-8913-500f0c830e50</ProductID> </SalePriceGroupOneDto> <SalePriceGroupOneID>6e3f85c4-acc1-4a78-ba12-31e32fea7de6</SalePriceGroupOneID> <SalePriceGroupThreeDto> <CurrencyID>3a6cf837-ed7e-415d-903e-fb313f95876c</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>9e777f65-4600-4d06-8913-500f0c830e50</ProductID> </SalePriceGroupThreeDto> <SalePriceGroupThreeID>388da362-325c-4820-b44a-da08d3380a3d</SalePriceGroupThreeID> <SalePriceGroupTwoDto> <CurrencyID>3a6cf837-ed7e-415d-903e-fb313f95876c</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>9e777f65-4600-4d06-8913-500f0c830e50</ProductID> </SalePriceGroupTwoDto> <SalePriceGroupTwoID>ad3a04bb-e200-47f7-b9a6-583296ba770b</SalePriceGroupTwoID> <SerialNumber>sample string 10</SerialNumber> <ShowOnInvoice>true</ShowOnInvoice> <Stock>8.1</Stock> <UnitID>c296ec01-b459-4b35-8898-18f268ace9cb</UnitID> <WarehouseID>a8273ee8-e40b-485e-9729-278fd935180a</WarehouseID> <WarrantyEndDate>2025-07-08T21:11:30.4809125+03:00</WarrantyEndDate> </ProductAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"id":"3ceba681-aa1b-46b2-b3f2-a406819c7766","code":"sample string 2","name":"sample string 3","productType":1,"barcode":"sample string 4","description":"sample string 5","photo":"sample string 6","isStockTracking":true,"stock":8.1,"minStockValue":9.1,"serialNumber":"sample string 10","model":"sample string 11","isWarranty":true,"warrantyEndDate":"2025-07-08T21:11:30.4809125+03:00","purchaseOTV":13.1,"purchaseDiscount":14.1,"purchasePrice":15.1,"isPurchaseKDVInclude":true,"purchaseKDV":0,"purchaseCurrencyID":"f88982dd-21c6-4a35-9a5b-b615a90ebb36","salePriceGroupOneID":"6e3f85c4-acc1-4a78-ba12-31e32fea7de6","salePriceGroupOneDto":{"currencyID":"3a6cf837-ed7e-415d-903e-fb313f95876c","productID":"9e777f65-4600-4d06-8913-500f0c830e50","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6"},"salePriceGroupTwoID":"ad3a04bb-e200-47f7-b9a6-583296ba770b","salePriceGroupTwoDto":{"currencyID":"3a6cf837-ed7e-415d-903e-fb313f95876c","productID":"9e777f65-4600-4d06-8913-500f0c830e50","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6"},"salePriceGroupThreeID":"388da362-325c-4820-b44a-da08d3380a3d","salePriceGroupThreeDto":{"currencyID":"3a6cf837-ed7e-415d-903e-fb313f95876c","productID":"9e777f65-4600-4d06-8913-500f0c830e50","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6"},"salePriceGroupFourID":"62f60ad3-d457-4317-bde2-8b1a387180df","salePriceGroupFourDto":{"currencyID":"3a6cf837-ed7e-415d-903e-fb313f95876c","productID":"9e777f65-4600-4d06-8913-500f0c830e50","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6"},"salePriceGroupFiveID":"27e3dbf5-a2da-4da8-96c2-9c464a9b53f9","salePriceGroupFiveDto":{"currencyID":"3a6cf837-ed7e-415d-903e-fb313f95876c","productID":"9e777f65-4600-4d06-8913-500f0c830e50","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6"},"documents":[{"name":"sample string 1","documentURL":"sample string 2","companyID":"a16bae66-9cee-4e74-afa7-ad2e1f67c8af"},{"name":"sample string 1","documentURL":"sample string 2","companyID":"a16bae66-9cee-4e74-afa7-ad2e1f67c8af"}],"companyID":"f2f46a6f-d3b9-4918-8464-4f87f94b084e","categoryID":"fdd3a4f0-fae0-4e72-8788-3c9f49ea6452","brandID":"6d8b6703-cbfc-42f5-8315-c2a0adb278ef","unitID":"c296ec01-b459-4b35-8898-18f268ace9cb","warehouseID":"a8273ee8-e40b-485e-9729-278fd935180a","gtip":"sample string 18","producerCountry":"sample string 19","isStockSave":true,"isImported":true,"showOnInvoice":true,"isActive":true,"buyersItemIdentification":"sample string 24"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.