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": "ac000e93-ead9-4768-a726-12b929b9dae1", "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-05-24T16:50:30.6043284+03:00", "purchaseOTV": 13.1, "purchaseDiscount": 14.1, "purchasePrice": 15.1, "isPurchaseKDVInclude": true, "purchaseKDV": 0, "purchaseCurrencyID": "79b645ea-15c5-456f-93c4-1a8f22c588ec", "salePriceGroupOneID": "b898d2b7-8d51-4733-8666-95999ec24461", "salePriceGroupOneDto": { "currencyID": "75820292-22b5-4876-9818-350de910ebab", "productID": "707b0e5c-8d10-4045-a524-ecbc6f647387", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6" }, "salePriceGroupTwoID": "f445febc-4c90-4fc1-a354-cdd07d3bf023", "salePriceGroupTwoDto": { "currencyID": "75820292-22b5-4876-9818-350de910ebab", "productID": "707b0e5c-8d10-4045-a524-ecbc6f647387", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6" }, "salePriceGroupThreeID": "71fa6442-bfc1-4e50-8b21-853f9446f98b", "salePriceGroupThreeDto": { "currencyID": "75820292-22b5-4876-9818-350de910ebab", "productID": "707b0e5c-8d10-4045-a524-ecbc6f647387", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6" }, "salePriceGroupFourID": "8476d1be-e42a-4e74-a0bd-d4eacefeae35", "salePriceGroupFourDto": { "currencyID": "75820292-22b5-4876-9818-350de910ebab", "productID": "707b0e5c-8d10-4045-a524-ecbc6f647387", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6" }, "salePriceGroupFiveID": "2b27a048-f0c1-4ef9-a657-118e1e94234b", "salePriceGroupFiveDto": { "currencyID": "75820292-22b5-4876-9818-350de910ebab", "productID": "707b0e5c-8d10-4045-a524-ecbc6f647387", "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": "ccb9f5e8-0003-4b59-9371-aac77a63f08f" }, { "name": "sample string 1", "documentURL": "sample string 2", "companyID": "ccb9f5e8-0003-4b59-9371-aac77a63f08f" } ], "companyID": "56df1553-3eb6-463b-bd7f-609203a8395b", "categoryID": "66f6c727-74b8-4fcd-896a-7250653da586", "brandID": "475524d8-c147-423b-b411-3f660f662ad0", "unitID": "54ab4208-b2eb-4dde-a488-582e58514f70", "warehouseID": "b4f5d0b0-b00b-4928-88c1-5e4445a35d27", "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>475524d8-c147-423b-b411-3f660f662ad0</BrandID> <BuyersItemIdentification>sample string 24</BuyersItemIdentification> <CategoryID>66f6c727-74b8-4fcd-896a-7250653da586</CategoryID> <Code>sample string 2</Code> <CompanyID>56df1553-3eb6-463b-bd7f-609203a8395b</CompanyID> <Description>sample string 5</Description> <Documents> <DocumentAddDto> <CompanyID>ccb9f5e8-0003-4b59-9371-aac77a63f08f</CompanyID> <DocumentURL>sample string 2</DocumentURL> <Name>sample string 1</Name> </DocumentAddDto> <DocumentAddDto> <CompanyID>ccb9f5e8-0003-4b59-9371-aac77a63f08f</CompanyID> <DocumentURL>sample string 2</DocumentURL> <Name>sample string 1</Name> </DocumentAddDto> </Documents> <Gtip>sample string 18</Gtip> <ID>ac000e93-ead9-4768-a726-12b929b9dae1</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>79b645ea-15c5-456f-93c4-1a8f22c588ec</PurchaseCurrencyID> <PurchaseDiscount>14.1</PurchaseDiscount> <PurchaseKDV>KDV0</PurchaseKDV> <PurchaseOTV>13.1</PurchaseOTV> <PurchasePrice>15.1</PurchasePrice> <SalePriceGroupFiveDto> <CurrencyID>75820292-22b5-4876-9818-350de910ebab</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>707b0e5c-8d10-4045-a524-ecbc6f647387</ProductID> </SalePriceGroupFiveDto> <SalePriceGroupFiveID>2b27a048-f0c1-4ef9-a657-118e1e94234b</SalePriceGroupFiveID> <SalePriceGroupFourDto> <CurrencyID>75820292-22b5-4876-9818-350de910ebab</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>707b0e5c-8d10-4045-a524-ecbc6f647387</ProductID> </SalePriceGroupFourDto> <SalePriceGroupFourID>8476d1be-e42a-4e74-a0bd-d4eacefeae35</SalePriceGroupFourID> <SalePriceGroupOneDto> <CurrencyID>75820292-22b5-4876-9818-350de910ebab</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>707b0e5c-8d10-4045-a524-ecbc6f647387</ProductID> </SalePriceGroupOneDto> <SalePriceGroupOneID>b898d2b7-8d51-4733-8666-95999ec24461</SalePriceGroupOneID> <SalePriceGroupThreeDto> <CurrencyID>75820292-22b5-4876-9818-350de910ebab</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>707b0e5c-8d10-4045-a524-ecbc6f647387</ProductID> </SalePriceGroupThreeDto> <SalePriceGroupThreeID>71fa6442-bfc1-4e50-8b21-853f9446f98b</SalePriceGroupThreeID> <SalePriceGroupTwoDto> <CurrencyID>75820292-22b5-4876-9818-350de910ebab</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>707b0e5c-8d10-4045-a524-ecbc6f647387</ProductID> </SalePriceGroupTwoDto> <SalePriceGroupTwoID>f445febc-4c90-4fc1-a354-cdd07d3bf023</SalePriceGroupTwoID> <SerialNumber>sample string 10</SerialNumber> <ShowOnInvoice>true</ShowOnInvoice> <Stock>8.1</Stock> <UnitID>54ab4208-b2eb-4dde-a488-582e58514f70</UnitID> <WarehouseID>b4f5d0b0-b00b-4928-88c1-5e4445a35d27</WarehouseID> <WarrantyEndDate>2025-05-24T16:50:30.6043284+03:00</WarrantyEndDate> </ProductAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"id":"ac000e93-ead9-4768-a726-12b929b9dae1","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-05-24T16:50:30.6043284+03:00","purchaseOTV":13.1,"purchaseDiscount":14.1,"purchasePrice":15.1,"isPurchaseKDVInclude":true,"purchaseKDV":0,"purchaseCurrencyID":"79b645ea-15c5-456f-93c4-1a8f22c588ec","salePriceGroupOneID":"b898d2b7-8d51-4733-8666-95999ec24461","salePriceGroupOneDto":{"currencyID":"75820292-22b5-4876-9818-350de910ebab","productID":"707b0e5c-8d10-4045-a524-ecbc6f647387","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6"},"salePriceGroupTwoID":"f445febc-4c90-4fc1-a354-cdd07d3bf023","salePriceGroupTwoDto":{"currencyID":"75820292-22b5-4876-9818-350de910ebab","productID":"707b0e5c-8d10-4045-a524-ecbc6f647387","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6"},"salePriceGroupThreeID":"71fa6442-bfc1-4e50-8b21-853f9446f98b","salePriceGroupThreeDto":{"currencyID":"75820292-22b5-4876-9818-350de910ebab","productID":"707b0e5c-8d10-4045-a524-ecbc6f647387","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6"},"salePriceGroupFourID":"8476d1be-e42a-4e74-a0bd-d4eacefeae35","salePriceGroupFourDto":{"currencyID":"75820292-22b5-4876-9818-350de910ebab","productID":"707b0e5c-8d10-4045-a524-ecbc6f647387","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6"},"salePriceGroupFiveID":"2b27a048-f0c1-4ef9-a657-118e1e94234b","salePriceGroupFiveDto":{"currencyID":"75820292-22b5-4876-9818-350de910ebab","productID":"707b0e5c-8d10-4045-a524-ecbc6f647387","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":"ccb9f5e8-0003-4b59-9371-aac77a63f08f"},{"name":"sample string 1","documentURL":"sample string 2","companyID":"ccb9f5e8-0003-4b59-9371-aac77a63f08f"}],"companyID":"56df1553-3eb6-463b-bd7f-609203a8395b","categoryID":"66f6c727-74b8-4fcd-896a-7250653da586","brandID":"475524d8-c147-423b-b411-3f660f662ad0","unitID":"54ab4208-b2eb-4dde-a488-582e58514f70","warehouseID":"b4f5d0b0-b00b-4928-88c1-5e4445a35d27","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.