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": "e53c6d4a-9d88-4126-9e9f-9b418bcf8a17", "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-04T22:30:51.5113923+03:00", "purchaseOTV": 13.1, "purchaseDiscount": 14.1, "purchasePrice": 15.1, "isPurchaseKDVInclude": true, "purchaseKDV": 0, "purchaseCurrencyID": "b2fdd07c-e5cc-492c-9e16-4a9b002f85de", "salePriceGroupOneID": "ff335052-954f-4320-9a36-11a79f66c1d1", "salePriceGroupOneDto": { "currencyID": "6b3df8a9-2f0a-4151-b8cf-1700cbc08186", "productID": "ee837a06-adf2-4ccd-8075-448dc0d88002", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6" }, "salePriceGroupTwoID": "bbb4d3c1-511f-4525-9434-df713e0d4a26", "salePriceGroupTwoDto": { "currencyID": "6b3df8a9-2f0a-4151-b8cf-1700cbc08186", "productID": "ee837a06-adf2-4ccd-8075-448dc0d88002", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6" }, "salePriceGroupThreeID": "dcbd665f-03f4-4ea9-b469-aecef3084c8f", "salePriceGroupThreeDto": { "currencyID": "6b3df8a9-2f0a-4151-b8cf-1700cbc08186", "productID": "ee837a06-adf2-4ccd-8075-448dc0d88002", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6" }, "salePriceGroupFourID": "cf145742-559d-4477-abf3-af8391fee916", "salePriceGroupFourDto": { "currencyID": "6b3df8a9-2f0a-4151-b8cf-1700cbc08186", "productID": "ee837a06-adf2-4ccd-8075-448dc0d88002", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6" }, "salePriceGroupFiveID": "0d93deb0-a104-4eac-909b-b9f1bbfda926", "salePriceGroupFiveDto": { "currencyID": "6b3df8a9-2f0a-4151-b8cf-1700cbc08186", "productID": "ee837a06-adf2-4ccd-8075-448dc0d88002", "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": "658e6e6b-d3c1-4cc3-bbc8-062042f435b3" }, { "name": "sample string 1", "documentURL": "sample string 2", "companyID": "658e6e6b-d3c1-4cc3-bbc8-062042f435b3" } ], "companyID": "dd42feed-bf8e-47d4-9461-423f255b9d7b", "categoryID": "198173df-aae1-461e-8ea3-39ada331f6d9", "brandID": "e93313ff-6bbf-4ddb-9373-de816672d10f", "unitID": "1c939f58-0e43-44e1-a66c-dd66cfc64e5d", "warehouseID": "a5e87564-5cc7-45f0-949f-de37af4f319c", "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>e93313ff-6bbf-4ddb-9373-de816672d10f</BrandID> <BuyersItemIdentification>sample string 24</BuyersItemIdentification> <CategoryID>198173df-aae1-461e-8ea3-39ada331f6d9</CategoryID> <Code>sample string 2</Code> <CompanyID>dd42feed-bf8e-47d4-9461-423f255b9d7b</CompanyID> <Description>sample string 5</Description> <Documents> <DocumentAddDto> <CompanyID>658e6e6b-d3c1-4cc3-bbc8-062042f435b3</CompanyID> <DocumentURL>sample string 2</DocumentURL> <Name>sample string 1</Name> </DocumentAddDto> <DocumentAddDto> <CompanyID>658e6e6b-d3c1-4cc3-bbc8-062042f435b3</CompanyID> <DocumentURL>sample string 2</DocumentURL> <Name>sample string 1</Name> </DocumentAddDto> </Documents> <Gtip>sample string 18</Gtip> <ID>e53c6d4a-9d88-4126-9e9f-9b418bcf8a17</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>b2fdd07c-e5cc-492c-9e16-4a9b002f85de</PurchaseCurrencyID> <PurchaseDiscount>14.1</PurchaseDiscount> <PurchaseKDV>KDV0</PurchaseKDV> <PurchaseOTV>13.1</PurchaseOTV> <PurchasePrice>15.1</PurchasePrice> <SalePriceGroupFiveDto> <CurrencyID>6b3df8a9-2f0a-4151-b8cf-1700cbc08186</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>ee837a06-adf2-4ccd-8075-448dc0d88002</ProductID> </SalePriceGroupFiveDto> <SalePriceGroupFiveID>0d93deb0-a104-4eac-909b-b9f1bbfda926</SalePriceGroupFiveID> <SalePriceGroupFourDto> <CurrencyID>6b3df8a9-2f0a-4151-b8cf-1700cbc08186</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>ee837a06-adf2-4ccd-8075-448dc0d88002</ProductID> </SalePriceGroupFourDto> <SalePriceGroupFourID>cf145742-559d-4477-abf3-af8391fee916</SalePriceGroupFourID> <SalePriceGroupOneDto> <CurrencyID>6b3df8a9-2f0a-4151-b8cf-1700cbc08186</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>ee837a06-adf2-4ccd-8075-448dc0d88002</ProductID> </SalePriceGroupOneDto> <SalePriceGroupOneID>ff335052-954f-4320-9a36-11a79f66c1d1</SalePriceGroupOneID> <SalePriceGroupThreeDto> <CurrencyID>6b3df8a9-2f0a-4151-b8cf-1700cbc08186</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>ee837a06-adf2-4ccd-8075-448dc0d88002</ProductID> </SalePriceGroupThreeDto> <SalePriceGroupThreeID>dcbd665f-03f4-4ea9-b469-aecef3084c8f</SalePriceGroupThreeID> <SalePriceGroupTwoDto> <CurrencyID>6b3df8a9-2f0a-4151-b8cf-1700cbc08186</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>ee837a06-adf2-4ccd-8075-448dc0d88002</ProductID> </SalePriceGroupTwoDto> <SalePriceGroupTwoID>bbb4d3c1-511f-4525-9434-df713e0d4a26</SalePriceGroupTwoID> <SerialNumber>sample string 10</SerialNumber> <ShowOnInvoice>true</ShowOnInvoice> <Stock>8.1</Stock> <UnitID>1c939f58-0e43-44e1-a66c-dd66cfc64e5d</UnitID> <WarehouseID>a5e87564-5cc7-45f0-949f-de37af4f319c</WarehouseID> <WarrantyEndDate>2025-08-04T22:30:51.5113923+03:00</WarrantyEndDate> </ProductAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"id":"e53c6d4a-9d88-4126-9e9f-9b418bcf8a17","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-04T22:30:51.5113923+03:00","purchaseOTV":13.1,"purchaseDiscount":14.1,"purchasePrice":15.1,"isPurchaseKDVInclude":true,"purchaseKDV":0,"purchaseCurrencyID":"b2fdd07c-e5cc-492c-9e16-4a9b002f85de","salePriceGroupOneID":"ff335052-954f-4320-9a36-11a79f66c1d1","salePriceGroupOneDto":{"currencyID":"6b3df8a9-2f0a-4151-b8cf-1700cbc08186","productID":"ee837a06-adf2-4ccd-8075-448dc0d88002","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6"},"salePriceGroupTwoID":"bbb4d3c1-511f-4525-9434-df713e0d4a26","salePriceGroupTwoDto":{"currencyID":"6b3df8a9-2f0a-4151-b8cf-1700cbc08186","productID":"ee837a06-adf2-4ccd-8075-448dc0d88002","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6"},"salePriceGroupThreeID":"dcbd665f-03f4-4ea9-b469-aecef3084c8f","salePriceGroupThreeDto":{"currencyID":"6b3df8a9-2f0a-4151-b8cf-1700cbc08186","productID":"ee837a06-adf2-4ccd-8075-448dc0d88002","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6"},"salePriceGroupFourID":"cf145742-559d-4477-abf3-af8391fee916","salePriceGroupFourDto":{"currencyID":"6b3df8a9-2f0a-4151-b8cf-1700cbc08186","productID":"ee837a06-adf2-4ccd-8075-448dc0d88002","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6"},"salePriceGroupFiveID":"0d93deb0-a104-4eac-909b-b9f1bbfda926","salePriceGroupFiveDto":{"currencyID":"6b3df8a9-2f0a-4151-b8cf-1700cbc08186","productID":"ee837a06-adf2-4ccd-8075-448dc0d88002","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":"658e6e6b-d3c1-4cc3-bbc8-062042f435b3"},{"name":"sample string 1","documentURL":"sample string 2","companyID":"658e6e6b-d3c1-4cc3-bbc8-062042f435b3"}],"companyID":"dd42feed-bf8e-47d4-9461-423f255b9d7b","categoryID":"198173df-aae1-461e-8ea3-39ada331f6d9","brandID":"e93313ff-6bbf-4ddb-9373-de816672d10f","unitID":"1c939f58-0e43-44e1-a66c-dd66cfc64e5d","warehouseID":"a5e87564-5cc7-45f0-949f-de37af4f319c","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.