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-07T19:26:03.2254831+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": "63f36ba4-7dcd-4e97-9677-b656752798cc", "accountID": "21bd50e6-cba5-41b6-b4b8-dba44ebe1a66", "companyID": "ac307acf-ec19-4aa1-8d25-b033c1752a4b", "invoiceID": "5aa7fbd1-9c92-452e-b6ec-efc9fb5624ac", "serviceReceiptID": "89c66b93-3a38-4eca-bd79-8e03d72b8d3e", "productionID": "7de97f2f-9e48-4bc6-b3bf-bdbec4b7f66b", "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": "355052c7-5265-4b67-9764-1d339ecd00fc", "theWithholdingAmount": 16.1, "noKDVReasonID": "d9f814b0-f1f4-4279-9250-d2bcb25e440f", "unitID": "6b76ce74-fea9-406b-a7c9-4a2dd4a77a13", "currencyID": "bfb1d989-16d5-4c73-8f99-4b9870de341d", "productID": "ec0e61c3-e9a8-4734-a391-a79ac916e3d7", "productStockActionID": "e5673895-5131-484f-b7a6-a3661bb90b31", "entryWarehouseID": "1a05d848-8bbb-464f-b506-24244df788d6", "exitWarehouseID": "f8ba22ed-102e-4a5d-a946-8c4b29d6fae8", "companyID": "69a041df-edaa-49ba-8745-4a297766abee" }, { "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": "355052c7-5265-4b67-9764-1d339ecd00fc", "theWithholdingAmount": 16.1, "noKDVReasonID": "d9f814b0-f1f4-4279-9250-d2bcb25e440f", "unitID": "6b76ce74-fea9-406b-a7c9-4a2dd4a77a13", "currencyID": "bfb1d989-16d5-4c73-8f99-4b9870de341d", "productID": "ec0e61c3-e9a8-4734-a391-a79ac916e3d7", "productStockActionID": "e5673895-5131-484f-b7a6-a3661bb90b31", "entryWarehouseID": "1a05d848-8bbb-464f-b506-24244df788d6", "exitWarehouseID": "f8ba22ed-102e-4a5d-a946-8c4b29d6fae8", "companyID": "69a041df-edaa-49ba-8745-4a297766abee" } ], "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>21bd50e6-cba5-41b6-b4b8-dba44ebe1a66</AccountID> <Amount>12.1</Amount> <BeforeTaxAmount>6.1</BeforeTaxAmount> <CompanyID>ac307acf-ec19-4aa1-8d25-b033c1752a4b</CompanyID> <CurrencyID>63f36ba4-7dcd-4e97-9677-b656752798cc</CurrencyID> <CurrencyRate>18.1</CurrencyRate> <Date>2025-08-07T19:26:03.2254831+03:00</Date> <Description>sample string 5</Description> <DiscountAmount>11.1</DiscountAmount> <DiscountRate>10.1</DiscountRate> <InvoiceID>5aa7fbd1-9c92-452e-b6ec-efc9fb5624ac</InvoiceID> <IsFromInvoice>true</IsFromInvoice> <IsFromProductCreate>true</IsFromProductCreate> <LineDiscountAmount>9.1</LineDiscountAmount> <OrderNumber>sample string 3</OrderNumber> <ProductStockActionDetails> <ProductStockActionDetailAddDto> <Amount>3.1</Amount> <CompanyID>69a041df-edaa-49ba-8745-4a297766abee</CompanyID> <CurrencyID>bfb1d989-16d5-4c73-8f99-4b9870de341d</CurrencyID> <CurrencyRate>1.1</CurrencyRate> <DiscountAmount>5.1</DiscountAmount> <DiscountRate>4.1</DiscountRate> <DiscountedTotalPrice>7.1</DiscountedTotalPrice> <DiscountedUnitPrice>6.1</DiscountedUnitPrice> <EntryWarehouseID>1a05d848-8bbb-464f-b506-24244df788d6</EntryWarehouseID> <ExitWarehouseID>f8ba22ed-102e-4a5d-a946-8c4b29d6fae8</ExitWarehouseID> <IsDiscountPercentage>true</IsDiscountPercentage> <IsOTVPercentage>true</IsOTVPercentage> <KDV>KDV0</KDV> <KDVAmount>10.1</KDVAmount> <NoKDVReasonID>d9f814b0-f1f4-4279-9250-d2bcb25e440f</NoKDVReasonID> <OIV>11.1</OIV> <OIVAmount>12.1</OIVAmount> <OTV>13.1</OTV> <OTVAmount>14.1</OTVAmount> <ProductID>ec0e61c3-e9a8-4734-a391-a79ac916e3d7</ProductID> <ProductStockActionID>e5673895-5131-484f-b7a6-a3661bb90b31</ProductStockActionID> <Quantity>2.1</Quantity> <TheWithholdingAmount>16.1</TheWithholdingAmount> <TheWithholdingID>355052c7-5265-4b67-9764-1d339ecd00fc</TheWithholdingID> <TotalAmount>9.1</TotalAmount> <UnitID>6b76ce74-fea9-406b-a7c9-4a2dd4a77a13</UnitID> </ProductStockActionDetailAddDto> <ProductStockActionDetailAddDto> <Amount>3.1</Amount> <CompanyID>69a041df-edaa-49ba-8745-4a297766abee</CompanyID> <CurrencyID>bfb1d989-16d5-4c73-8f99-4b9870de341d</CurrencyID> <CurrencyRate>1.1</CurrencyRate> <DiscountAmount>5.1</DiscountAmount> <DiscountRate>4.1</DiscountRate> <DiscountedTotalPrice>7.1</DiscountedTotalPrice> <DiscountedUnitPrice>6.1</DiscountedUnitPrice> <EntryWarehouseID>1a05d848-8bbb-464f-b506-24244df788d6</EntryWarehouseID> <ExitWarehouseID>f8ba22ed-102e-4a5d-a946-8c4b29d6fae8</ExitWarehouseID> <IsDiscountPercentage>true</IsDiscountPercentage> <IsOTVPercentage>true</IsOTVPercentage> <KDV>KDV0</KDV> <KDVAmount>10.1</KDVAmount> <NoKDVReasonID>d9f814b0-f1f4-4279-9250-d2bcb25e440f</NoKDVReasonID> <OIV>11.1</OIV> <OIVAmount>12.1</OIVAmount> <OTV>13.1</OTV> <OTVAmount>14.1</OTVAmount> <ProductID>ec0e61c3-e9a8-4734-a391-a79ac916e3d7</ProductID> <ProductStockActionID>e5673895-5131-484f-b7a6-a3661bb90b31</ProductStockActionID> <Quantity>2.1</Quantity> <TheWithholdingAmount>16.1</TheWithholdingAmount> <TheWithholdingID>355052c7-5265-4b67-9764-1d339ecd00fc</TheWithholdingID> <TotalAmount>9.1</TotalAmount> <UnitID>6b76ce74-fea9-406b-a7c9-4a2dd4a77a13</UnitID> </ProductStockActionDetailAddDto> </ProductStockActionDetails> <ProductStockActionType>EntryReceipt</ProductStockActionType> <ProductionID>7de97f2f-9e48-4bc6-b3bf-bdbec4b7f66b</ProductionID> <SerialNumber>sample string 2</SerialNumber> <ServiceReceiptID>89c66b93-3a38-4eca-bd79-8e03d72b8d3e</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-07T19:26:03.2254831+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":"63f36ba4-7dcd-4e97-9677-b656752798cc","accountID":"21bd50e6-cba5-41b6-b4b8-dba44ebe1a66","companyID":"ac307acf-ec19-4aa1-8d25-b033c1752a4b","invoiceID":"5aa7fbd1-9c92-452e-b6ec-efc9fb5624ac","serviceReceiptID":"89c66b93-3a38-4eca-bd79-8e03d72b8d3e","productionID":"7de97f2f-9e48-4bc6-b3bf-bdbec4b7f66b","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":"355052c7-5265-4b67-9764-1d339ecd00fc","theWithholdingAmount":16.1,"noKDVReasonID":"d9f814b0-f1f4-4279-9250-d2bcb25e440f","unitID":"6b76ce74-fea9-406b-a7c9-4a2dd4a77a13","currencyID":"bfb1d989-16d5-4c73-8f99-4b9870de341d","productID":"ec0e61c3-e9a8-4734-a391-a79ac916e3d7","productStockActionID":"e5673895-5131-484f-b7a6-a3661bb90b31","entryWarehouseID":"1a05d848-8bbb-464f-b506-24244df788d6","exitWarehouseID":"f8ba22ed-102e-4a5d-a946-8c4b29d6fae8","companyID":"69a041df-edaa-49ba-8745-4a297766abee"},{"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":"355052c7-5265-4b67-9764-1d339ecd00fc","theWithholdingAmount":16.1,"noKDVReasonID":"d9f814b0-f1f4-4279-9250-d2bcb25e440f","unitID":"6b76ce74-fea9-406b-a7c9-4a2dd4a77a13","currencyID":"bfb1d989-16d5-4c73-8f99-4b9870de341d","productID":"ec0e61c3-e9a8-4734-a391-a79ac916e3d7","productStockActionID":"e5673895-5131-484f-b7a6-a3661bb90b31","entryWarehouseID":"1a05d848-8bbb-464f-b506-24244df788d6","exitWarehouseID":"f8ba22ed-102e-4a5d-a946-8c4b29d6fae8","companyID":"69a041df-edaa-49ba-8745-4a297766abee"}],"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.