PUT api/ProductStockAction/Update
Request Information
URI Parameters
None.
Body Parameters
ProductStockActionUpdateDtoName | 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. |
|
InvoiceID | globally unique identifier |
None. |
|
ServiceReceiptID | globally unique identifier |
None. |
|
ProductionID | globally unique identifier |
None. |
|
ProductStockActionDetails | Collection of ProductStockActionDetailAddDto |
None. |
|
ID | globally unique identifier |
Required |
|
CompanyID | globally unique identifier |
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-24T17:20:40.4332858+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": "acaf5171-64f9-4bb1-8af6-626a932f62bc", "accountID": "ad03f941-aa5c-47e8-bd6b-53869f82c582", "invoiceID": "f4f8d78d-6f9a-487f-b3c0-ddbc4ecb05a9", "serviceReceiptID": "2833fdb3-01cc-4f45-96ac-55be7eec5343", "productionID": "6caab5ee-dc8a-4e8d-9b10-0b515eca6823", "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": "745b213e-65e2-479d-8cbf-0daadf8a2e2e", "theWithholdingAmount": 16.1, "noKDVReasonID": "018988a7-c454-4c28-a556-e6bfc76cbda6", "unitID": "42450894-b3da-4fbb-b005-378347cbd24d", "currencyID": "6270154f-9afc-4cfc-827f-3c07458b56e6", "productID": "8355b2ad-6468-49f5-856a-23e9d804a9dd", "productStockActionID": "03cd6b58-9421-42a6-a90a-c7b29a3e8765", "entryWarehouseID": "bbd46fbf-e050-4656-95ea-1272449d50d0", "exitWarehouseID": "ac21440c-8685-4bde-8c14-ea6db352b7e2", "companyID": "828a8198-a7b5-40f6-ac76-cb00c7609671" }, { "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": "745b213e-65e2-479d-8cbf-0daadf8a2e2e", "theWithholdingAmount": 16.1, "noKDVReasonID": "018988a7-c454-4c28-a556-e6bfc76cbda6", "unitID": "42450894-b3da-4fbb-b005-378347cbd24d", "currencyID": "6270154f-9afc-4cfc-827f-3c07458b56e6", "productID": "8355b2ad-6468-49f5-856a-23e9d804a9dd", "productStockActionID": "03cd6b58-9421-42a6-a90a-c7b29a3e8765", "entryWarehouseID": "bbd46fbf-e050-4656-95ea-1272449d50d0", "exitWarehouseID": "ac21440c-8685-4bde-8c14-ea6db352b7e2", "companyID": "828a8198-a7b5-40f6-ac76-cb00c7609671" } ], "id": "8d3665e4-f5ae-4d6b-857f-a5c4b9bfef0d", "companyID": "40ca2730-442a-47f6-aaed-a9209d6b9941" }
application/xml, text/xml
Sample:
<ProductStockActionUpdateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TP.TulTrack.Core.Service.DTOs"> <CompanyID>40ca2730-442a-47f6-aaed-a9209d6b9941</CompanyID> <ID>8d3665e4-f5ae-4d6b-857f-a5c4b9bfef0d</ID> <AccountID>ad03f941-aa5c-47e8-bd6b-53869f82c582</AccountID> <Amount>12.1</Amount> <BeforeTaxAmount>6.1</BeforeTaxAmount> <CurrencyID>acaf5171-64f9-4bb1-8af6-626a932f62bc</CurrencyID> <CurrencyRate>18.1</CurrencyRate> <Date>2025-05-24T17:20:40.4332858+03:00</Date> <Description>sample string 5</Description> <DiscountAmount>11.1</DiscountAmount> <DiscountRate>10.1</DiscountRate> <InvoiceID>f4f8d78d-6f9a-487f-b3c0-ddbc4ecb05a9</InvoiceID> <LineDiscountAmount>9.1</LineDiscountAmount> <OrderNumber>sample string 3</OrderNumber> <ProductStockActionDetails> <ProductStockActionDetailAddDto> <Amount>3.1</Amount> <CompanyID>828a8198-a7b5-40f6-ac76-cb00c7609671</CompanyID> <CurrencyID>6270154f-9afc-4cfc-827f-3c07458b56e6</CurrencyID> <CurrencyRate>1.1</CurrencyRate> <DiscountAmount>5.1</DiscountAmount> <DiscountRate>4.1</DiscountRate> <DiscountedTotalPrice>7.1</DiscountedTotalPrice> <DiscountedUnitPrice>6.1</DiscountedUnitPrice> <EntryWarehouseID>bbd46fbf-e050-4656-95ea-1272449d50d0</EntryWarehouseID> <ExitWarehouseID>ac21440c-8685-4bde-8c14-ea6db352b7e2</ExitWarehouseID> <IsDiscountPercentage>true</IsDiscountPercentage> <IsOTVPercentage>true</IsOTVPercentage> <KDV>KDV0</KDV> <KDVAmount>10.1</KDVAmount> <NoKDVReasonID>018988a7-c454-4c28-a556-e6bfc76cbda6</NoKDVReasonID> <OIV>11.1</OIV> <OIVAmount>12.1</OIVAmount> <OTV>13.1</OTV> <OTVAmount>14.1</OTVAmount> <ProductID>8355b2ad-6468-49f5-856a-23e9d804a9dd</ProductID> <ProductStockActionID>03cd6b58-9421-42a6-a90a-c7b29a3e8765</ProductStockActionID> <Quantity>2.1</Quantity> <TheWithholdingAmount>16.1</TheWithholdingAmount> <TheWithholdingID>745b213e-65e2-479d-8cbf-0daadf8a2e2e</TheWithholdingID> <TotalAmount>9.1</TotalAmount> <UnitID>42450894-b3da-4fbb-b005-378347cbd24d</UnitID> </ProductStockActionDetailAddDto> <ProductStockActionDetailAddDto> <Amount>3.1</Amount> <CompanyID>828a8198-a7b5-40f6-ac76-cb00c7609671</CompanyID> <CurrencyID>6270154f-9afc-4cfc-827f-3c07458b56e6</CurrencyID> <CurrencyRate>1.1</CurrencyRate> <DiscountAmount>5.1</DiscountAmount> <DiscountRate>4.1</DiscountRate> <DiscountedTotalPrice>7.1</DiscountedTotalPrice> <DiscountedUnitPrice>6.1</DiscountedUnitPrice> <EntryWarehouseID>bbd46fbf-e050-4656-95ea-1272449d50d0</EntryWarehouseID> <ExitWarehouseID>ac21440c-8685-4bde-8c14-ea6db352b7e2</ExitWarehouseID> <IsDiscountPercentage>true</IsDiscountPercentage> <IsOTVPercentage>true</IsOTVPercentage> <KDV>KDV0</KDV> <KDVAmount>10.1</KDVAmount> <NoKDVReasonID>018988a7-c454-4c28-a556-e6bfc76cbda6</NoKDVReasonID> <OIV>11.1</OIV> <OIVAmount>12.1</OIVAmount> <OTV>13.1</OTV> <OTVAmount>14.1</OTVAmount> <ProductID>8355b2ad-6468-49f5-856a-23e9d804a9dd</ProductID> <ProductStockActionID>03cd6b58-9421-42a6-a90a-c7b29a3e8765</ProductStockActionID> <Quantity>2.1</Quantity> <TheWithholdingAmount>16.1</TheWithholdingAmount> <TheWithholdingID>745b213e-65e2-479d-8cbf-0daadf8a2e2e</TheWithholdingID> <TotalAmount>9.1</TotalAmount> <UnitID>42450894-b3da-4fbb-b005-378347cbd24d</UnitID> </ProductStockActionDetailAddDto> </ProductStockActionDetails> <ProductStockActionType>EntryReceipt</ProductStockActionType> <ProductionID>6caab5ee-dc8a-4e8d-9b10-0b515eca6823</ProductionID> <SerialNumber>sample string 2</SerialNumber> <ServiceReceiptID>2833fdb3-01cc-4f45-96ac-55be7eec5343</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> </ProductStockActionUpdateDto>
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-24T17:20:40.4332858+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":"acaf5171-64f9-4bb1-8af6-626a932f62bc","accountID":"ad03f941-aa5c-47e8-bd6b-53869f82c582","invoiceID":"f4f8d78d-6f9a-487f-b3c0-ddbc4ecb05a9","serviceReceiptID":"2833fdb3-01cc-4f45-96ac-55be7eec5343","productionID":"6caab5ee-dc8a-4e8d-9b10-0b515eca6823","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":"745b213e-65e2-479d-8cbf-0daadf8a2e2e","theWithholdingAmount":16.1,"noKDVReasonID":"018988a7-c454-4c28-a556-e6bfc76cbda6","unitID":"42450894-b3da-4fbb-b005-378347cbd24d","currencyID":"6270154f-9afc-4cfc-827f-3c07458b56e6","productID":"8355b2ad-6468-49f5-856a-23e9d804a9dd","productStockActionID":"03cd6b58-9421-42a6-a90a-c7b29a3e8765","entryWarehouseID":"bbd46fbf-e050-4656-95ea-1272449d50d0","exitWarehouseID":"ac21440c-8685-4bde-8c14-ea6db352b7e2","companyID":"828a8198-a7b5-40f6-ac76-cb00c7609671"},{"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":"745b213e-65e2-479d-8cbf-0daadf8a2e2e","theWithholdingAmount":16.1,"noKDVReasonID":"018988a7-c454-4c28-a556-e6bfc76cbda6","unitID":"42450894-b3da-4fbb-b005-378347cbd24d","currencyID":"6270154f-9afc-4cfc-827f-3c07458b56e6","productID":"8355b2ad-6468-49f5-856a-23e9d804a9dd","productStockActionID":"03cd6b58-9421-42a6-a90a-c7b29a3e8765","entryWarehouseID":"bbd46fbf-e050-4656-95ea-1272449d50d0","exitWarehouseID":"ac21440c-8685-4bde-8c14-ea6db352b7e2","companyID":"828a8198-a7b5-40f6-ac76-cb00c7609671"}],"id":"8d3665e4-f5ae-4d6b-857f-a5c4b9bfef0d","companyID":"40ca2730-442a-47f6-aaed-a9209d6b9941"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.