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-08-04T22:33:18.0690098+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": "6ea3a170-061e-499d-a8f3-0f0f8eb5f2b6", "accountID": "f9357519-cdf3-4a97-b73e-1b3a53bb0603", "companyID": "5197728b-693a-4b0d-8e94-1620f2089871", "invoiceID": "2d022bee-4584-4194-b34e-ce9c30874307", "serviceReceiptID": "08863f3b-545f-480e-8d38-b4f80213adcc", "productionID": "47df934f-a36a-44e5-94d2-4b9c724413ff", "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": "405a94f0-5f42-4ac2-85e0-2640e51ddcaa", "theWithholdingAmount": 16.1, "noKDVReasonID": "930cb98b-cde8-4712-a526-868b67dc87d2", "unitID": "b1b8d29d-dc52-46e0-8b73-9a697f0d9abf", "currencyID": "2c72cdf2-dd1c-408c-bca9-02138e477d5e", "productID": "b915f78f-0da6-4130-9061-93722df669d0", "productStockActionID": "bf526a1b-a2e7-44eb-8fa5-08d3c8800f01", "entryWarehouseID": "063dc4b3-7324-44a1-a635-bade5dae3736", "exitWarehouseID": "704a916f-f54c-497c-968d-95a1ead61b16", "companyID": "050d314a-7a88-431d-bd57-755deaa2eb56" }, { "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": "405a94f0-5f42-4ac2-85e0-2640e51ddcaa", "theWithholdingAmount": 16.1, "noKDVReasonID": "930cb98b-cde8-4712-a526-868b67dc87d2", "unitID": "b1b8d29d-dc52-46e0-8b73-9a697f0d9abf", "currencyID": "2c72cdf2-dd1c-408c-bca9-02138e477d5e", "productID": "b915f78f-0da6-4130-9061-93722df669d0", "productStockActionID": "bf526a1b-a2e7-44eb-8fa5-08d3c8800f01", "entryWarehouseID": "063dc4b3-7324-44a1-a635-bade5dae3736", "exitWarehouseID": "704a916f-f54c-497c-968d-95a1ead61b16", "companyID": "050d314a-7a88-431d-bd57-755deaa2eb56" } ], "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>f9357519-cdf3-4a97-b73e-1b3a53bb0603</AccountID> <Amount>12.1</Amount> <BeforeTaxAmount>6.1</BeforeTaxAmount> <CompanyID>5197728b-693a-4b0d-8e94-1620f2089871</CompanyID> <CurrencyID>6ea3a170-061e-499d-a8f3-0f0f8eb5f2b6</CurrencyID> <CurrencyRate>18.1</CurrencyRate> <Date>2025-08-04T22:33:18.0690098+03:00</Date> <Description>sample string 5</Description> <DiscountAmount>11.1</DiscountAmount> <DiscountRate>10.1</DiscountRate> <InvoiceID>2d022bee-4584-4194-b34e-ce9c30874307</InvoiceID> <IsFromInvoice>true</IsFromInvoice> <IsFromProductCreate>true</IsFromProductCreate> <LineDiscountAmount>9.1</LineDiscountAmount> <OrderNumber>sample string 3</OrderNumber> <ProductStockActionDetails> <ProductStockActionDetailAddDto> <Amount>3.1</Amount> <CompanyID>050d314a-7a88-431d-bd57-755deaa2eb56</CompanyID> <CurrencyID>2c72cdf2-dd1c-408c-bca9-02138e477d5e</CurrencyID> <CurrencyRate>1.1</CurrencyRate> <DiscountAmount>5.1</DiscountAmount> <DiscountRate>4.1</DiscountRate> <DiscountedTotalPrice>7.1</DiscountedTotalPrice> <DiscountedUnitPrice>6.1</DiscountedUnitPrice> <EntryWarehouseID>063dc4b3-7324-44a1-a635-bade5dae3736</EntryWarehouseID> <ExitWarehouseID>704a916f-f54c-497c-968d-95a1ead61b16</ExitWarehouseID> <IsDiscountPercentage>true</IsDiscountPercentage> <IsOTVPercentage>true</IsOTVPercentage> <KDV>KDV0</KDV> <KDVAmount>10.1</KDVAmount> <NoKDVReasonID>930cb98b-cde8-4712-a526-868b67dc87d2</NoKDVReasonID> <OIV>11.1</OIV> <OIVAmount>12.1</OIVAmount> <OTV>13.1</OTV> <OTVAmount>14.1</OTVAmount> <ProductID>b915f78f-0da6-4130-9061-93722df669d0</ProductID> <ProductStockActionID>bf526a1b-a2e7-44eb-8fa5-08d3c8800f01</ProductStockActionID> <Quantity>2.1</Quantity> <TheWithholdingAmount>16.1</TheWithholdingAmount> <TheWithholdingID>405a94f0-5f42-4ac2-85e0-2640e51ddcaa</TheWithholdingID> <TotalAmount>9.1</TotalAmount> <UnitID>b1b8d29d-dc52-46e0-8b73-9a697f0d9abf</UnitID> </ProductStockActionDetailAddDto> <ProductStockActionDetailAddDto> <Amount>3.1</Amount> <CompanyID>050d314a-7a88-431d-bd57-755deaa2eb56</CompanyID> <CurrencyID>2c72cdf2-dd1c-408c-bca9-02138e477d5e</CurrencyID> <CurrencyRate>1.1</CurrencyRate> <DiscountAmount>5.1</DiscountAmount> <DiscountRate>4.1</DiscountRate> <DiscountedTotalPrice>7.1</DiscountedTotalPrice> <DiscountedUnitPrice>6.1</DiscountedUnitPrice> <EntryWarehouseID>063dc4b3-7324-44a1-a635-bade5dae3736</EntryWarehouseID> <ExitWarehouseID>704a916f-f54c-497c-968d-95a1ead61b16</ExitWarehouseID> <IsDiscountPercentage>true</IsDiscountPercentage> <IsOTVPercentage>true</IsOTVPercentage> <KDV>KDV0</KDV> <KDVAmount>10.1</KDVAmount> <NoKDVReasonID>930cb98b-cde8-4712-a526-868b67dc87d2</NoKDVReasonID> <OIV>11.1</OIV> <OIVAmount>12.1</OIVAmount> <OTV>13.1</OTV> <OTVAmount>14.1</OTVAmount> <ProductID>b915f78f-0da6-4130-9061-93722df669d0</ProductID> <ProductStockActionID>bf526a1b-a2e7-44eb-8fa5-08d3c8800f01</ProductStockActionID> <Quantity>2.1</Quantity> <TheWithholdingAmount>16.1</TheWithholdingAmount> <TheWithholdingID>405a94f0-5f42-4ac2-85e0-2640e51ddcaa</TheWithholdingID> <TotalAmount>9.1</TotalAmount> <UnitID>b1b8d29d-dc52-46e0-8b73-9a697f0d9abf</UnitID> </ProductStockActionDetailAddDto> </ProductStockActionDetails> <ProductStockActionType>EntryReceipt</ProductStockActionType> <ProductionID>47df934f-a36a-44e5-94d2-4b9c724413ff</ProductionID> <SerialNumber>sample string 2</SerialNumber> <ServiceReceiptID>08863f3b-545f-480e-8d38-b4f80213adcc</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-08-04T22:33:18.0690098+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":"6ea3a170-061e-499d-a8f3-0f0f8eb5f2b6","accountID":"f9357519-cdf3-4a97-b73e-1b3a53bb0603","companyID":"5197728b-693a-4b0d-8e94-1620f2089871","invoiceID":"2d022bee-4584-4194-b34e-ce9c30874307","serviceReceiptID":"08863f3b-545f-480e-8d38-b4f80213adcc","productionID":"47df934f-a36a-44e5-94d2-4b9c724413ff","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":"405a94f0-5f42-4ac2-85e0-2640e51ddcaa","theWithholdingAmount":16.1,"noKDVReasonID":"930cb98b-cde8-4712-a526-868b67dc87d2","unitID":"b1b8d29d-dc52-46e0-8b73-9a697f0d9abf","currencyID":"2c72cdf2-dd1c-408c-bca9-02138e477d5e","productID":"b915f78f-0da6-4130-9061-93722df669d0","productStockActionID":"bf526a1b-a2e7-44eb-8fa5-08d3c8800f01","entryWarehouseID":"063dc4b3-7324-44a1-a635-bade5dae3736","exitWarehouseID":"704a916f-f54c-497c-968d-95a1ead61b16","companyID":"050d314a-7a88-431d-bd57-755deaa2eb56"},{"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":"405a94f0-5f42-4ac2-85e0-2640e51ddcaa","theWithholdingAmount":16.1,"noKDVReasonID":"930cb98b-cde8-4712-a526-868b67dc87d2","unitID":"b1b8d29d-dc52-46e0-8b73-9a697f0d9abf","currencyID":"2c72cdf2-dd1c-408c-bca9-02138e477d5e","productID":"b915f78f-0da6-4130-9061-93722df669d0","productStockActionID":"bf526a1b-a2e7-44eb-8fa5-08d3c8800f01","entryWarehouseID":"063dc4b3-7324-44a1-a635-bade5dae3736","exitWarehouseID":"704a916f-f54c-497c-968d-95a1ead61b16","companyID":"050d314a-7a88-431d-bd57-755deaa2eb56"}],"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.