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-05-24T14:47:46.9656074+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": "bd34c838-5222-472e-aab4-dc5afb6d5e37", "accountID": "bcf5d737-ffc2-4afd-a415-24eb9f3d3050", "companyID": "feefa6c8-f6dc-4e27-8fde-3bd063b584e2", "invoiceID": "13c21e50-694c-4003-932c-cec3ed04aa31", "serviceReceiptID": "7fad9610-f4ad-4f74-82ae-be4fd744ede9", "productionID": "14510dd6-3110-4b53-b05d-9c90ce906902", "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": "e286a4b8-8f20-460f-b13f-81c5222d1cad", "theWithholdingAmount": 16.1, "noKDVReasonID": "cce3ce02-2d15-4ee6-890c-24bd3f95992e", "unitID": "47e91a43-bbb2-4734-8132-befaa2e87cb9", "currencyID": "c7c70bd6-2417-49e4-9d59-4146a6547344", "productID": "b9123c32-4963-49ab-9e7b-3239604b9b3a", "productStockActionID": "810db06f-d2d5-4243-a26b-32ca5a1223a1", "entryWarehouseID": "fe56ba0f-6fbe-4a13-94fe-e5b18261a852", "exitWarehouseID": "dba83fc0-65d7-4a00-ac68-555e983a2551", "companyID": "37ec39d0-d27e-4205-a23f-913ff7c5a6e1" }, { "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": "e286a4b8-8f20-460f-b13f-81c5222d1cad", "theWithholdingAmount": 16.1, "noKDVReasonID": "cce3ce02-2d15-4ee6-890c-24bd3f95992e", "unitID": "47e91a43-bbb2-4734-8132-befaa2e87cb9", "currencyID": "c7c70bd6-2417-49e4-9d59-4146a6547344", "productID": "b9123c32-4963-49ab-9e7b-3239604b9b3a", "productStockActionID": "810db06f-d2d5-4243-a26b-32ca5a1223a1", "entryWarehouseID": "fe56ba0f-6fbe-4a13-94fe-e5b18261a852", "exitWarehouseID": "dba83fc0-65d7-4a00-ac68-555e983a2551", "companyID": "37ec39d0-d27e-4205-a23f-913ff7c5a6e1" } ], "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>bcf5d737-ffc2-4afd-a415-24eb9f3d3050</AccountID> <Amount>12.1</Amount> <BeforeTaxAmount>6.1</BeforeTaxAmount> <CompanyID>feefa6c8-f6dc-4e27-8fde-3bd063b584e2</CompanyID> <CurrencyID>bd34c838-5222-472e-aab4-dc5afb6d5e37</CurrencyID> <CurrencyRate>18.1</CurrencyRate> <Date>2025-05-24T14:47:46.9656074+03:00</Date> <Description>sample string 5</Description> <DiscountAmount>11.1</DiscountAmount> <DiscountRate>10.1</DiscountRate> <InvoiceID>13c21e50-694c-4003-932c-cec3ed04aa31</InvoiceID> <IsFromInvoice>true</IsFromInvoice> <IsFromProductCreate>true</IsFromProductCreate> <LineDiscountAmount>9.1</LineDiscountAmount> <OrderNumber>sample string 3</OrderNumber> <ProductStockActionDetails> <ProductStockActionDetailAddDto> <Amount>3.1</Amount> <CompanyID>37ec39d0-d27e-4205-a23f-913ff7c5a6e1</CompanyID> <CurrencyID>c7c70bd6-2417-49e4-9d59-4146a6547344</CurrencyID> <CurrencyRate>1.1</CurrencyRate> <DiscountAmount>5.1</DiscountAmount> <DiscountRate>4.1</DiscountRate> <DiscountedTotalPrice>7.1</DiscountedTotalPrice> <DiscountedUnitPrice>6.1</DiscountedUnitPrice> <EntryWarehouseID>fe56ba0f-6fbe-4a13-94fe-e5b18261a852</EntryWarehouseID> <ExitWarehouseID>dba83fc0-65d7-4a00-ac68-555e983a2551</ExitWarehouseID> <IsDiscountPercentage>true</IsDiscountPercentage> <IsOTVPercentage>true</IsOTVPercentage> <KDV>KDV0</KDV> <KDVAmount>10.1</KDVAmount> <NoKDVReasonID>cce3ce02-2d15-4ee6-890c-24bd3f95992e</NoKDVReasonID> <OIV>11.1</OIV> <OIVAmount>12.1</OIVAmount> <OTV>13.1</OTV> <OTVAmount>14.1</OTVAmount> <ProductID>b9123c32-4963-49ab-9e7b-3239604b9b3a</ProductID> <ProductStockActionID>810db06f-d2d5-4243-a26b-32ca5a1223a1</ProductStockActionID> <Quantity>2.1</Quantity> <TheWithholdingAmount>16.1</TheWithholdingAmount> <TheWithholdingID>e286a4b8-8f20-460f-b13f-81c5222d1cad</TheWithholdingID> <TotalAmount>9.1</TotalAmount> <UnitID>47e91a43-bbb2-4734-8132-befaa2e87cb9</UnitID> </ProductStockActionDetailAddDto> <ProductStockActionDetailAddDto> <Amount>3.1</Amount> <CompanyID>37ec39d0-d27e-4205-a23f-913ff7c5a6e1</CompanyID> <CurrencyID>c7c70bd6-2417-49e4-9d59-4146a6547344</CurrencyID> <CurrencyRate>1.1</CurrencyRate> <DiscountAmount>5.1</DiscountAmount> <DiscountRate>4.1</DiscountRate> <DiscountedTotalPrice>7.1</DiscountedTotalPrice> <DiscountedUnitPrice>6.1</DiscountedUnitPrice> <EntryWarehouseID>fe56ba0f-6fbe-4a13-94fe-e5b18261a852</EntryWarehouseID> <ExitWarehouseID>dba83fc0-65d7-4a00-ac68-555e983a2551</ExitWarehouseID> <IsDiscountPercentage>true</IsDiscountPercentage> <IsOTVPercentage>true</IsOTVPercentage> <KDV>KDV0</KDV> <KDVAmount>10.1</KDVAmount> <NoKDVReasonID>cce3ce02-2d15-4ee6-890c-24bd3f95992e</NoKDVReasonID> <OIV>11.1</OIV> <OIVAmount>12.1</OIVAmount> <OTV>13.1</OTV> <OTVAmount>14.1</OTVAmount> <ProductID>b9123c32-4963-49ab-9e7b-3239604b9b3a</ProductID> <ProductStockActionID>810db06f-d2d5-4243-a26b-32ca5a1223a1</ProductStockActionID> <Quantity>2.1</Quantity> <TheWithholdingAmount>16.1</TheWithholdingAmount> <TheWithholdingID>e286a4b8-8f20-460f-b13f-81c5222d1cad</TheWithholdingID> <TotalAmount>9.1</TotalAmount> <UnitID>47e91a43-bbb2-4734-8132-befaa2e87cb9</UnitID> </ProductStockActionDetailAddDto> </ProductStockActionDetails> <ProductStockActionType>EntryReceipt</ProductStockActionType> <ProductionID>14510dd6-3110-4b53-b05d-9c90ce906902</ProductionID> <SerialNumber>sample string 2</SerialNumber> <ServiceReceiptID>7fad9610-f4ad-4f74-82ae-be4fd744ede9</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-05-24T14:47:46.9656074+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":"bd34c838-5222-472e-aab4-dc5afb6d5e37","accountID":"bcf5d737-ffc2-4afd-a415-24eb9f3d3050","companyID":"feefa6c8-f6dc-4e27-8fde-3bd063b584e2","invoiceID":"13c21e50-694c-4003-932c-cec3ed04aa31","serviceReceiptID":"7fad9610-f4ad-4f74-82ae-be4fd744ede9","productionID":"14510dd6-3110-4b53-b05d-9c90ce906902","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":"e286a4b8-8f20-460f-b13f-81c5222d1cad","theWithholdingAmount":16.1,"noKDVReasonID":"cce3ce02-2d15-4ee6-890c-24bd3f95992e","unitID":"47e91a43-bbb2-4734-8132-befaa2e87cb9","currencyID":"c7c70bd6-2417-49e4-9d59-4146a6547344","productID":"b9123c32-4963-49ab-9e7b-3239604b9b3a","productStockActionID":"810db06f-d2d5-4243-a26b-32ca5a1223a1","entryWarehouseID":"fe56ba0f-6fbe-4a13-94fe-e5b18261a852","exitWarehouseID":"dba83fc0-65d7-4a00-ac68-555e983a2551","companyID":"37ec39d0-d27e-4205-a23f-913ff7c5a6e1"},{"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":"e286a4b8-8f20-460f-b13f-81c5222d1cad","theWithholdingAmount":16.1,"noKDVReasonID":"cce3ce02-2d15-4ee6-890c-24bd3f95992e","unitID":"47e91a43-bbb2-4734-8132-befaa2e87cb9","currencyID":"c7c70bd6-2417-49e4-9d59-4146a6547344","productID":"b9123c32-4963-49ab-9e7b-3239604b9b3a","productStockActionID":"810db06f-d2d5-4243-a26b-32ca5a1223a1","entryWarehouseID":"fe56ba0f-6fbe-4a13-94fe-e5b18261a852","exitWarehouseID":"dba83fc0-65d7-4a00-ac68-555e983a2551","companyID":"37ec39d0-d27e-4205-a23f-913ff7c5a6e1"}],"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.