POST api/Product/Add

Request Information

URI Parameters

None.

Body Parameters

ProductAddDto
NameDescriptionTypeAdditional 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": "a28dcb4e-6bbf-4700-88c6-b7ca6882819f",
  "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-24T14:36:33.7913798+03:00",
  "purchaseOTV": 13.1,
  "purchaseDiscount": 14.1,
  "purchasePrice": 15.1,
  "isPurchaseKDVInclude": true,
  "purchaseKDV": 0,
  "purchaseCurrencyID": "2b95edfe-4a29-4208-933c-2a5ed2afdc63",
  "salePriceGroupOneID": "25e6ec07-d119-45e4-926b-4230f0c00edd",
  "salePriceGroupOneDto": {
    "currencyID": "523eaecb-c5ac-4b70-8580-ad065e3f1e58",
    "productID": "c5fd67e7-0119-4d4f-93ac-d2d3f83fca1d",
    "isKDVInclude": true,
    "kdv": 0,
    "price": 2.1,
    "oiv": 3.1,
    "otv": 4.1,
    "oivCode": "sample string 5",
    "otvCode": "sample string 6"
  },
  "salePriceGroupTwoID": "cf3daa86-325d-4c76-9545-6bfb351b9274",
  "salePriceGroupTwoDto": {
    "currencyID": "523eaecb-c5ac-4b70-8580-ad065e3f1e58",
    "productID": "c5fd67e7-0119-4d4f-93ac-d2d3f83fca1d",
    "isKDVInclude": true,
    "kdv": 0,
    "price": 2.1,
    "oiv": 3.1,
    "otv": 4.1,
    "oivCode": "sample string 5",
    "otvCode": "sample string 6"
  },
  "salePriceGroupThreeID": "06b910e1-36a6-4484-a5b9-c25d8740a239",
  "salePriceGroupThreeDto": {
    "currencyID": "523eaecb-c5ac-4b70-8580-ad065e3f1e58",
    "productID": "c5fd67e7-0119-4d4f-93ac-d2d3f83fca1d",
    "isKDVInclude": true,
    "kdv": 0,
    "price": 2.1,
    "oiv": 3.1,
    "otv": 4.1,
    "oivCode": "sample string 5",
    "otvCode": "sample string 6"
  },
  "salePriceGroupFourID": "a78addce-15b0-465d-a139-4af1a6c934ca",
  "salePriceGroupFourDto": {
    "currencyID": "523eaecb-c5ac-4b70-8580-ad065e3f1e58",
    "productID": "c5fd67e7-0119-4d4f-93ac-d2d3f83fca1d",
    "isKDVInclude": true,
    "kdv": 0,
    "price": 2.1,
    "oiv": 3.1,
    "otv": 4.1,
    "oivCode": "sample string 5",
    "otvCode": "sample string 6"
  },
  "salePriceGroupFiveID": "071022be-7a06-4f37-98a6-eee0d14d0c99",
  "salePriceGroupFiveDto": {
    "currencyID": "523eaecb-c5ac-4b70-8580-ad065e3f1e58",
    "productID": "c5fd67e7-0119-4d4f-93ac-d2d3f83fca1d",
    "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": "fea6fe66-3926-47e2-bea4-1ba58cecb0e8"
    },
    {
      "name": "sample string 1",
      "documentURL": "sample string 2",
      "companyID": "fea6fe66-3926-47e2-bea4-1ba58cecb0e8"
    }
  ],
  "companyID": "3d85766b-ede0-45f2-b109-8ee4f35aeb8d",
  "categoryID": "0f3049b9-012d-4e70-b927-27d7b728fc2b",
  "brandID": "769e15ce-a90a-459f-8148-c7706d12b1b8",
  "unitID": "8503c1a8-26e5-4964-832e-7d223b5159bd",
  "warehouseID": "d50e33e7-32d5-4d2d-bcf6-825e21d9b0f9",
  "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>769e15ce-a90a-459f-8148-c7706d12b1b8</BrandID>
  <BuyersItemIdentification>sample string 24</BuyersItemIdentification>
  <CategoryID>0f3049b9-012d-4e70-b927-27d7b728fc2b</CategoryID>
  <Code>sample string 2</Code>
  <CompanyID>3d85766b-ede0-45f2-b109-8ee4f35aeb8d</CompanyID>
  <Description>sample string 5</Description>
  <Documents>
    <DocumentAddDto>
      <CompanyID>fea6fe66-3926-47e2-bea4-1ba58cecb0e8</CompanyID>
      <DocumentURL>sample string 2</DocumentURL>
      <Name>sample string 1</Name>
    </DocumentAddDto>
    <DocumentAddDto>
      <CompanyID>fea6fe66-3926-47e2-bea4-1ba58cecb0e8</CompanyID>
      <DocumentURL>sample string 2</DocumentURL>
      <Name>sample string 1</Name>
    </DocumentAddDto>
  </Documents>
  <Gtip>sample string 18</Gtip>
  <ID>a28dcb4e-6bbf-4700-88c6-b7ca6882819f</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>2b95edfe-4a29-4208-933c-2a5ed2afdc63</PurchaseCurrencyID>
  <PurchaseDiscount>14.1</PurchaseDiscount>
  <PurchaseKDV>KDV0</PurchaseKDV>
  <PurchaseOTV>13.1</PurchaseOTV>
  <PurchasePrice>15.1</PurchasePrice>
  <SalePriceGroupFiveDto>
    <CurrencyID>523eaecb-c5ac-4b70-8580-ad065e3f1e58</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>c5fd67e7-0119-4d4f-93ac-d2d3f83fca1d</ProductID>
  </SalePriceGroupFiveDto>
  <SalePriceGroupFiveID>071022be-7a06-4f37-98a6-eee0d14d0c99</SalePriceGroupFiveID>
  <SalePriceGroupFourDto>
    <CurrencyID>523eaecb-c5ac-4b70-8580-ad065e3f1e58</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>c5fd67e7-0119-4d4f-93ac-d2d3f83fca1d</ProductID>
  </SalePriceGroupFourDto>
  <SalePriceGroupFourID>a78addce-15b0-465d-a139-4af1a6c934ca</SalePriceGroupFourID>
  <SalePriceGroupOneDto>
    <CurrencyID>523eaecb-c5ac-4b70-8580-ad065e3f1e58</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>c5fd67e7-0119-4d4f-93ac-d2d3f83fca1d</ProductID>
  </SalePriceGroupOneDto>
  <SalePriceGroupOneID>25e6ec07-d119-45e4-926b-4230f0c00edd</SalePriceGroupOneID>
  <SalePriceGroupThreeDto>
    <CurrencyID>523eaecb-c5ac-4b70-8580-ad065e3f1e58</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>c5fd67e7-0119-4d4f-93ac-d2d3f83fca1d</ProductID>
  </SalePriceGroupThreeDto>
  <SalePriceGroupThreeID>06b910e1-36a6-4484-a5b9-c25d8740a239</SalePriceGroupThreeID>
  <SalePriceGroupTwoDto>
    <CurrencyID>523eaecb-c5ac-4b70-8580-ad065e3f1e58</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>c5fd67e7-0119-4d4f-93ac-d2d3f83fca1d</ProductID>
  </SalePriceGroupTwoDto>
  <SalePriceGroupTwoID>cf3daa86-325d-4c76-9545-6bfb351b9274</SalePriceGroupTwoID>
  <SerialNumber>sample string 10</SerialNumber>
  <ShowOnInvoice>true</ShowOnInvoice>
  <Stock>8.1</Stock>
  <UnitID>8503c1a8-26e5-4964-832e-7d223b5159bd</UnitID>
  <WarehouseID>d50e33e7-32d5-4d2d-bcf6-825e21d9b0f9</WarehouseID>
  <WarrantyEndDate>2025-05-24T14:36:33.7913798+03:00</WarrantyEndDate>
</ProductAddDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

text/html

Sample:
{"id":"a28dcb4e-6bbf-4700-88c6-b7ca6882819f","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-24T14:36:33.7913798+03:00","purchaseOTV":13.1,"purchaseDiscount":14.1,"purchasePrice":15.1,"isPurchaseKDVInclude":true,"purchaseKDV":0,"purchaseCurrencyID":"2b95edfe-4a29-4208-933c-2a5ed2afdc63","salePriceGroupOneID":"25e6ec07-d119-45e4-926b-4230f0c00edd","salePriceGroupOneDto":{"currencyID":"523eaecb-c5ac-4b70-8580-ad065e3f1e58","productID":"c5fd67e7-0119-4d4f-93ac-d2d3f83fca1d","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6"},"salePriceGroupTwoID":"cf3daa86-325d-4c76-9545-6bfb351b9274","salePriceGroupTwoDto":{"currencyID":"523eaecb-c5ac-4b70-8580-ad065e3f1e58","productID":"c5fd67e7-0119-4d4f-93ac-d2d3f83fca1d","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6"},"salePriceGroupThreeID":"06b910e1-36a6-4484-a5b9-c25d8740a239","salePriceGroupThreeDto":{"currencyID":"523eaecb-c5ac-4b70-8580-ad065e3f1e58","productID":"c5fd67e7-0119-4d4f-93ac-d2d3f83fca1d","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6"},"salePriceGroupFourID":"a78addce-15b0-465d-a139-4af1a6c934ca","salePriceGroupFourDto":{"currencyID":"523eaecb-c5ac-4b70-8580-ad065e3f1e58","productID":"c5fd67e7-0119-4d4f-93ac-d2d3f83fca1d","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6"},"salePriceGroupFiveID":"071022be-7a06-4f37-98a6-eee0d14d0c99","salePriceGroupFiveDto":{"currencyID":"523eaecb-c5ac-4b70-8580-ad065e3f1e58","productID":"c5fd67e7-0119-4d4f-93ac-d2d3f83fca1d","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":"fea6fe66-3926-47e2-bea4-1ba58cecb0e8"},{"name":"sample string 1","documentURL":"sample string 2","companyID":"fea6fe66-3926-47e2-bea4-1ba58cecb0e8"}],"companyID":"3d85766b-ede0-45f2-b109-8ee4f35aeb8d","categoryID":"0f3049b9-012d-4e70-b927-27d7b728fc2b","brandID":"769e15ce-a90a-459f-8148-c7706d12b1b8","unitID":"8503c1a8-26e5-4964-832e-7d223b5159bd","warehouseID":"d50e33e7-32d5-4d2d-bcf6-825e21d9b0f9","gtip":"sample string 18","producerCountry":"sample string 19","isStockSave":true,"isImported":true,"showOnInvoice":true,"isActive":true,"buyersItemIdentification":"sample string 24"}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, text/html

Sample:

Sample not available.