POST api/ProductStockAction/Add
Request Information
URI Parameters
None.
Body Parameters
ProductStockActionAddDtoName | Description | Type | Additional information |
---|---|---|---|
ProductStockActionType | ProductStockActionType |
None. |
|
Title | string |
None. |
|
SerialNumber | string |
None. |
|
OrderNumber | string |
None. |
|
Date | date |
None. |
|
Description | string |
None. |
|
BeforeTaxAmount | decimal number |
None. |
|
StopajRate | decimal number |
None. |
|
StopajAmount | decimal number |
None. |
|
LineDiscountAmount | decimal number |
None. |
|
DiscountRate | decimal number |
None. |
|
DiscountAmount | decimal number |
None. |
|
Amount | decimal number |
None. |
|
TotalAmount | decimal number |
None. |
|
TotalDiscountAmount | decimal number |
None. |
|
TotalKDVAmount | decimal number |
None. |
|
TotalOIVAmount | decimal number |
None. |
|
TotalOTVAmount | decimal number |
None. |
|
CurrencyRate | decimal number |
None. |
|
CurrencyID | globally unique identifier |
None. |
|
AccountID | globally unique identifier |
None. |
|
CompanyID | globally unique identifier |
None. |
|
InvoiceID | globally unique identifier |
None. |
|
ServiceReceiptID | globally unique identifier |
None. |
|
ProductionID | globally unique identifier |
None. |
|
ProductStockActionDetails | Collection of ProductStockActionDetailAddDto |
None. |
|
IsFromInvoice | boolean |
None. |
|
IsFromProductCreate | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "productStockActionType": 1, "title": "sample string 1", "serialNumber": "sample string 2", "orderNumber": "sample string 3", "date": "2025-07-08T21:27:31.8323506+03:00", "description": "sample string 5", "beforeTaxAmount": 6.1, "stopajRate": 7.1, "stopajAmount": 8.1, "lineDiscountAmount": 9.1, "discountRate": 10.1, "discountAmount": 11.1, "amount": 12.1, "totalAmount": 13.1, "totalDiscountAmount": 14.1, "totalKDVAmount": 15.1, "totalOIVAmount": 16.1, "totalOTVAmount": 17.1, "currencyRate": 18.1, "currencyID": "d56b9deb-de45-499f-aaf4-cf6644103141", "accountID": "8f87b3d5-cff9-45c4-8ac3-17fbf24db553", "companyID": "61879b5a-9989-43db-9211-42a7e56fe81d", "invoiceID": "7aabf77b-795f-491a-9154-7a9b289369b2", "serviceReceiptID": "3a4319dc-d612-4f1a-bc22-112e7f94d2b0", "productionID": "e97577b9-0c79-423c-ae3d-c90f6f28fd4f", "productStockActionDetails": [ { "currencyRate": 1.1, "quantity": 2.1, "amount": 3.1, "discountRate": 4.1, "discountAmount": 5.1, "discountedUnitPrice": 6.1, "discountedTotalPrice": 7.1, "isDiscountPercentage": true, "totalAmount": 9.1, "kdv": 0, "kdvAmount": 10.1, "oiv": 11.1, "oivAmount": 12.1, "otv": 13.1, "otvAmount": 14.1, "isOTVPercentage": true, "theWithholdingID": "54bdc1c0-0146-4273-94a2-55448b552c5a", "theWithholdingAmount": 16.1, "noKDVReasonID": "ba442a15-199d-4caa-b231-0f214b57ca24", "unitID": "fd1671cd-ec4b-45eb-b057-c0784013d682", "currencyID": "7f854d88-16b5-48e2-b83d-d041bc6901e9", "productID": "0c118a12-a740-436f-b138-5b1a0b99b2ff", "productStockActionID": "94455fca-edcc-402c-8420-8716a31abb0f", "entryWarehouseID": "46a07cdd-d261-467f-8238-453126ab37ee", "exitWarehouseID": "33339191-e202-44f4-ab79-45516aeb6310", "companyID": "61aa7f77-cc12-4341-9614-eec6c3293cf7" }, { "currencyRate": 1.1, "quantity": 2.1, "amount": 3.1, "discountRate": 4.1, "discountAmount": 5.1, "discountedUnitPrice": 6.1, "discountedTotalPrice": 7.1, "isDiscountPercentage": true, "totalAmount": 9.1, "kdv": 0, "kdvAmount": 10.1, "oiv": 11.1, "oivAmount": 12.1, "otv": 13.1, "otvAmount": 14.1, "isOTVPercentage": true, "theWithholdingID": "54bdc1c0-0146-4273-94a2-55448b552c5a", "theWithholdingAmount": 16.1, "noKDVReasonID": "ba442a15-199d-4caa-b231-0f214b57ca24", "unitID": "fd1671cd-ec4b-45eb-b057-c0784013d682", "currencyID": "7f854d88-16b5-48e2-b83d-d041bc6901e9", "productID": "0c118a12-a740-436f-b138-5b1a0b99b2ff", "productStockActionID": "94455fca-edcc-402c-8420-8716a31abb0f", "entryWarehouseID": "46a07cdd-d261-467f-8238-453126ab37ee", "exitWarehouseID": "33339191-e202-44f4-ab79-45516aeb6310", "companyID": "61aa7f77-cc12-4341-9614-eec6c3293cf7" } ], "isFromInvoice": true, "isFromProductCreate": true }
application/xml, text/xml
Sample:
<ProductStockActionAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TP.TulTrack.Core.Service.DTOs"> <AccountID>8f87b3d5-cff9-45c4-8ac3-17fbf24db553</AccountID> <Amount>12.1</Amount> <BeforeTaxAmount>6.1</BeforeTaxAmount> <CompanyID>61879b5a-9989-43db-9211-42a7e56fe81d</CompanyID> <CurrencyID>d56b9deb-de45-499f-aaf4-cf6644103141</CurrencyID> <CurrencyRate>18.1</CurrencyRate> <Date>2025-07-08T21:27:31.8323506+03:00</Date> <Description>sample string 5</Description> <DiscountAmount>11.1</DiscountAmount> <DiscountRate>10.1</DiscountRate> <InvoiceID>7aabf77b-795f-491a-9154-7a9b289369b2</InvoiceID> <IsFromInvoice>true</IsFromInvoice> <IsFromProductCreate>true</IsFromProductCreate> <LineDiscountAmount>9.1</LineDiscountAmount> <OrderNumber>sample string 3</OrderNumber> <ProductStockActionDetails> <ProductStockActionDetailAddDto> <Amount>3.1</Amount> <CompanyID>61aa7f77-cc12-4341-9614-eec6c3293cf7</CompanyID> <CurrencyID>7f854d88-16b5-48e2-b83d-d041bc6901e9</CurrencyID> <CurrencyRate>1.1</CurrencyRate> <DiscountAmount>5.1</DiscountAmount> <DiscountRate>4.1</DiscountRate> <DiscountedTotalPrice>7.1</DiscountedTotalPrice> <DiscountedUnitPrice>6.1</DiscountedUnitPrice> <EntryWarehouseID>46a07cdd-d261-467f-8238-453126ab37ee</EntryWarehouseID> <ExitWarehouseID>33339191-e202-44f4-ab79-45516aeb6310</ExitWarehouseID> <IsDiscountPercentage>true</IsDiscountPercentage> <IsOTVPercentage>true</IsOTVPercentage> <KDV>KDV0</KDV> <KDVAmount>10.1</KDVAmount> <NoKDVReasonID>ba442a15-199d-4caa-b231-0f214b57ca24</NoKDVReasonID> <OIV>11.1</OIV> <OIVAmount>12.1</OIVAmount> <OTV>13.1</OTV> <OTVAmount>14.1</OTVAmount> <ProductID>0c118a12-a740-436f-b138-5b1a0b99b2ff</ProductID> <ProductStockActionID>94455fca-edcc-402c-8420-8716a31abb0f</ProductStockActionID> <Quantity>2.1</Quantity> <TheWithholdingAmount>16.1</TheWithholdingAmount> <TheWithholdingID>54bdc1c0-0146-4273-94a2-55448b552c5a</TheWithholdingID> <TotalAmount>9.1</TotalAmount> <UnitID>fd1671cd-ec4b-45eb-b057-c0784013d682</UnitID> </ProductStockActionDetailAddDto> <ProductStockActionDetailAddDto> <Amount>3.1</Amount> <CompanyID>61aa7f77-cc12-4341-9614-eec6c3293cf7</CompanyID> <CurrencyID>7f854d88-16b5-48e2-b83d-d041bc6901e9</CurrencyID> <CurrencyRate>1.1</CurrencyRate> <DiscountAmount>5.1</DiscountAmount> <DiscountRate>4.1</DiscountRate> <DiscountedTotalPrice>7.1</DiscountedTotalPrice> <DiscountedUnitPrice>6.1</DiscountedUnitPrice> <EntryWarehouseID>46a07cdd-d261-467f-8238-453126ab37ee</EntryWarehouseID> <ExitWarehouseID>33339191-e202-44f4-ab79-45516aeb6310</ExitWarehouseID> <IsDiscountPercentage>true</IsDiscountPercentage> <IsOTVPercentage>true</IsOTVPercentage> <KDV>KDV0</KDV> <KDVAmount>10.1</KDVAmount> <NoKDVReasonID>ba442a15-199d-4caa-b231-0f214b57ca24</NoKDVReasonID> <OIV>11.1</OIV> <OIVAmount>12.1</OIVAmount> <OTV>13.1</OTV> <OTVAmount>14.1</OTVAmount> <ProductID>0c118a12-a740-436f-b138-5b1a0b99b2ff</ProductID> <ProductStockActionID>94455fca-edcc-402c-8420-8716a31abb0f</ProductStockActionID> <Quantity>2.1</Quantity> <TheWithholdingAmount>16.1</TheWithholdingAmount> <TheWithholdingID>54bdc1c0-0146-4273-94a2-55448b552c5a</TheWithholdingID> <TotalAmount>9.1</TotalAmount> <UnitID>fd1671cd-ec4b-45eb-b057-c0784013d682</UnitID> </ProductStockActionDetailAddDto> </ProductStockActionDetails> <ProductStockActionType>EntryReceipt</ProductStockActionType> <ProductionID>e97577b9-0c79-423c-ae3d-c90f6f28fd4f</ProductionID> <SerialNumber>sample string 2</SerialNumber> <ServiceReceiptID>3a4319dc-d612-4f1a-bc22-112e7f94d2b0</ServiceReceiptID> <StopajAmount>8.1</StopajAmount> <StopajRate>7.1</StopajRate> <Title>sample string 1</Title> <TotalAmount>13.1</TotalAmount> <TotalDiscountAmount>14.1</TotalDiscountAmount> <TotalKDVAmount>15.1</TotalKDVAmount> <TotalOIVAmount>16.1</TotalOIVAmount> <TotalOTVAmount>17.1</TotalOTVAmount> </ProductStockActionAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"productStockActionType":1,"title":"sample string 1","serialNumber":"sample string 2","orderNumber":"sample string 3","date":"2025-07-08T21:27:31.8323506+03:00","description":"sample string 5","beforeTaxAmount":6.1,"stopajRate":7.1,"stopajAmount":8.1,"lineDiscountAmount":9.1,"discountRate":10.1,"discountAmount":11.1,"amount":12.1,"totalAmount":13.1,"totalDiscountAmount":14.1,"totalKDVAmount":15.1,"totalOIVAmount":16.1,"totalOTVAmount":17.1,"currencyRate":18.1,"currencyID":"d56b9deb-de45-499f-aaf4-cf6644103141","accountID":"8f87b3d5-cff9-45c4-8ac3-17fbf24db553","companyID":"61879b5a-9989-43db-9211-42a7e56fe81d","invoiceID":"7aabf77b-795f-491a-9154-7a9b289369b2","serviceReceiptID":"3a4319dc-d612-4f1a-bc22-112e7f94d2b0","productionID":"e97577b9-0c79-423c-ae3d-c90f6f28fd4f","productStockActionDetails":[{"currencyRate":1.1,"quantity":2.1,"amount":3.1,"discountRate":4.1,"discountAmount":5.1,"discountedUnitPrice":6.1,"discountedTotalPrice":7.1,"isDiscountPercentage":true,"totalAmount":9.1,"kdv":0,"kdvAmount":10.1,"oiv":11.1,"oivAmount":12.1,"otv":13.1,"otvAmount":14.1,"isOTVPercentage":true,"theWithholdingID":"54bdc1c0-0146-4273-94a2-55448b552c5a","theWithholdingAmount":16.1,"noKDVReasonID":"ba442a15-199d-4caa-b231-0f214b57ca24","unitID":"fd1671cd-ec4b-45eb-b057-c0784013d682","currencyID":"7f854d88-16b5-48e2-b83d-d041bc6901e9","productID":"0c118a12-a740-436f-b138-5b1a0b99b2ff","productStockActionID":"94455fca-edcc-402c-8420-8716a31abb0f","entryWarehouseID":"46a07cdd-d261-467f-8238-453126ab37ee","exitWarehouseID":"33339191-e202-44f4-ab79-45516aeb6310","companyID":"61aa7f77-cc12-4341-9614-eec6c3293cf7"},{"currencyRate":1.1,"quantity":2.1,"amount":3.1,"discountRate":4.1,"discountAmount":5.1,"discountedUnitPrice":6.1,"discountedTotalPrice":7.1,"isDiscountPercentage":true,"totalAmount":9.1,"kdv":0,"kdvAmount":10.1,"oiv":11.1,"oivAmount":12.1,"otv":13.1,"otvAmount":14.1,"isOTVPercentage":true,"theWithholdingID":"54bdc1c0-0146-4273-94a2-55448b552c5a","theWithholdingAmount":16.1,"noKDVReasonID":"ba442a15-199d-4caa-b231-0f214b57ca24","unitID":"fd1671cd-ec4b-45eb-b057-c0784013d682","currencyID":"7f854d88-16b5-48e2-b83d-d041bc6901e9","productID":"0c118a12-a740-436f-b138-5b1a0b99b2ff","productStockActionID":"94455fca-edcc-402c-8420-8716a31abb0f","entryWarehouseID":"46a07cdd-d261-467f-8238-453126ab37ee","exitWarehouseID":"33339191-e202-44f4-ab79-45516aeb6310","companyID":"61aa7f77-cc12-4341-9614-eec6c3293cf7"}],"isFromInvoice":true,"isFromProductCreate":true}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.