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": "1a888914-4f37-48d3-8ad2-37e9f8d9baf4", "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-08-05T21:14:29.5147153+03:00", "purchaseOTV": 13.1, "purchaseDiscount": 14.1, "purchasePrice": 15.1, "isPurchaseKDVInclude": true, "purchaseKDV": 0, "purchaseCurrencyID": "da1dde6c-0b7d-46cb-ad6f-0723b1a9c42f", "salePriceGroupOneID": "50d4769a-aeca-4a99-8a50-c751c6f6682d", "salePriceGroupOneDto": { "currencyID": "dd7bd585-d0c1-4634-a3ba-39cd6ad52b14", "productID": "31ae6891-fe48-4557-8db3-4ae81ea607f7", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6" }, "salePriceGroupTwoID": "1640166d-2b69-480b-a422-fcfa1627a887", "salePriceGroupTwoDto": { "currencyID": "dd7bd585-d0c1-4634-a3ba-39cd6ad52b14", "productID": "31ae6891-fe48-4557-8db3-4ae81ea607f7", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6" }, "salePriceGroupThreeID": "a3445cad-199a-4825-96a6-bc93770f6655", "salePriceGroupThreeDto": { "currencyID": "dd7bd585-d0c1-4634-a3ba-39cd6ad52b14", "productID": "31ae6891-fe48-4557-8db3-4ae81ea607f7", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6" }, "salePriceGroupFourID": "908afaf5-a579-4e10-9385-7266dc7990bc", "salePriceGroupFourDto": { "currencyID": "dd7bd585-d0c1-4634-a3ba-39cd6ad52b14", "productID": "31ae6891-fe48-4557-8db3-4ae81ea607f7", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6" }, "salePriceGroupFiveID": "6acd0c15-18c6-4343-890a-e611ba275f75", "salePriceGroupFiveDto": { "currencyID": "dd7bd585-d0c1-4634-a3ba-39cd6ad52b14", "productID": "31ae6891-fe48-4557-8db3-4ae81ea607f7", "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": "9c9037bf-2965-491d-b1a8-0afcd92ca0f6" }, { "name": "sample string 1", "documentURL": "sample string 2", "companyID": "9c9037bf-2965-491d-b1a8-0afcd92ca0f6" } ], "companyID": "33d67226-7438-44d7-afce-e3a13c020c43", "categoryID": "85dd3ab9-0834-4dbb-88f7-a9c535f10359", "brandID": "d1612a13-364b-4c42-86ac-6d6d2cb9eaed", "unitID": "e48ce98c-7df0-42b0-90fe-ae1624bbe4e2", "warehouseID": "c48a65ed-eeaf-493a-ba60-29422e6ef953", "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>d1612a13-364b-4c42-86ac-6d6d2cb9eaed</BrandID> <BuyersItemIdentification>sample string 24</BuyersItemIdentification> <CategoryID>85dd3ab9-0834-4dbb-88f7-a9c535f10359</CategoryID> <Code>sample string 2</Code> <CompanyID>33d67226-7438-44d7-afce-e3a13c020c43</CompanyID> <Description>sample string 5</Description> <Documents> <DocumentAddDto> <CompanyID>9c9037bf-2965-491d-b1a8-0afcd92ca0f6</CompanyID> <DocumentURL>sample string 2</DocumentURL> <Name>sample string 1</Name> </DocumentAddDto> <DocumentAddDto> <CompanyID>9c9037bf-2965-491d-b1a8-0afcd92ca0f6</CompanyID> <DocumentURL>sample string 2</DocumentURL> <Name>sample string 1</Name> </DocumentAddDto> </Documents> <Gtip>sample string 18</Gtip> <ID>1a888914-4f37-48d3-8ad2-37e9f8d9baf4</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>da1dde6c-0b7d-46cb-ad6f-0723b1a9c42f</PurchaseCurrencyID> <PurchaseDiscount>14.1</PurchaseDiscount> <PurchaseKDV>KDV0</PurchaseKDV> <PurchaseOTV>13.1</PurchaseOTV> <PurchasePrice>15.1</PurchasePrice> <SalePriceGroupFiveDto> <CurrencyID>dd7bd585-d0c1-4634-a3ba-39cd6ad52b14</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>31ae6891-fe48-4557-8db3-4ae81ea607f7</ProductID> </SalePriceGroupFiveDto> <SalePriceGroupFiveID>6acd0c15-18c6-4343-890a-e611ba275f75</SalePriceGroupFiveID> <SalePriceGroupFourDto> <CurrencyID>dd7bd585-d0c1-4634-a3ba-39cd6ad52b14</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>31ae6891-fe48-4557-8db3-4ae81ea607f7</ProductID> </SalePriceGroupFourDto> <SalePriceGroupFourID>908afaf5-a579-4e10-9385-7266dc7990bc</SalePriceGroupFourID> <SalePriceGroupOneDto> <CurrencyID>dd7bd585-d0c1-4634-a3ba-39cd6ad52b14</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>31ae6891-fe48-4557-8db3-4ae81ea607f7</ProductID> </SalePriceGroupOneDto> <SalePriceGroupOneID>50d4769a-aeca-4a99-8a50-c751c6f6682d</SalePriceGroupOneID> <SalePriceGroupThreeDto> <CurrencyID>dd7bd585-d0c1-4634-a3ba-39cd6ad52b14</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>31ae6891-fe48-4557-8db3-4ae81ea607f7</ProductID> </SalePriceGroupThreeDto> <SalePriceGroupThreeID>a3445cad-199a-4825-96a6-bc93770f6655</SalePriceGroupThreeID> <SalePriceGroupTwoDto> <CurrencyID>dd7bd585-d0c1-4634-a3ba-39cd6ad52b14</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>31ae6891-fe48-4557-8db3-4ae81ea607f7</ProductID> </SalePriceGroupTwoDto> <SalePriceGroupTwoID>1640166d-2b69-480b-a422-fcfa1627a887</SalePriceGroupTwoID> <SerialNumber>sample string 10</SerialNumber> <ShowOnInvoice>true</ShowOnInvoice> <Stock>8.1</Stock> <UnitID>e48ce98c-7df0-42b0-90fe-ae1624bbe4e2</UnitID> <WarehouseID>c48a65ed-eeaf-493a-ba60-29422e6ef953</WarehouseID> <WarrantyEndDate>2025-08-05T21:14:29.5147153+03:00</WarrantyEndDate> </ProductAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"id":"1a888914-4f37-48d3-8ad2-37e9f8d9baf4","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-08-05T21:14:29.5147153+03:00","purchaseOTV":13.1,"purchaseDiscount":14.1,"purchasePrice":15.1,"isPurchaseKDVInclude":true,"purchaseKDV":0,"purchaseCurrencyID":"da1dde6c-0b7d-46cb-ad6f-0723b1a9c42f","salePriceGroupOneID":"50d4769a-aeca-4a99-8a50-c751c6f6682d","salePriceGroupOneDto":{"currencyID":"dd7bd585-d0c1-4634-a3ba-39cd6ad52b14","productID":"31ae6891-fe48-4557-8db3-4ae81ea607f7","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6"},"salePriceGroupTwoID":"1640166d-2b69-480b-a422-fcfa1627a887","salePriceGroupTwoDto":{"currencyID":"dd7bd585-d0c1-4634-a3ba-39cd6ad52b14","productID":"31ae6891-fe48-4557-8db3-4ae81ea607f7","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6"},"salePriceGroupThreeID":"a3445cad-199a-4825-96a6-bc93770f6655","salePriceGroupThreeDto":{"currencyID":"dd7bd585-d0c1-4634-a3ba-39cd6ad52b14","productID":"31ae6891-fe48-4557-8db3-4ae81ea607f7","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6"},"salePriceGroupFourID":"908afaf5-a579-4e10-9385-7266dc7990bc","salePriceGroupFourDto":{"currencyID":"dd7bd585-d0c1-4634-a3ba-39cd6ad52b14","productID":"31ae6891-fe48-4557-8db3-4ae81ea607f7","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6"},"salePriceGroupFiveID":"6acd0c15-18c6-4343-890a-e611ba275f75","salePriceGroupFiveDto":{"currencyID":"dd7bd585-d0c1-4634-a3ba-39cd6ad52b14","productID":"31ae6891-fe48-4557-8db3-4ae81ea607f7","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":"9c9037bf-2965-491d-b1a8-0afcd92ca0f6"},{"name":"sample string 1","documentURL":"sample string 2","companyID":"9c9037bf-2965-491d-b1a8-0afcd92ca0f6"}],"companyID":"33d67226-7438-44d7-afce-e3a13c020c43","categoryID":"85dd3ab9-0834-4dbb-88f7-a9c535f10359","brandID":"d1612a13-364b-4c42-86ac-6d6d2cb9eaed","unitID":"e48ce98c-7df0-42b0-90fe-ae1624bbe4e2","warehouseID":"c48a65ed-eeaf-493a-ba60-29422e6ef953","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.