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-24T15:03:23.6072233+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": "d42d3aaa-7934-414b-b488-fe1edb5c4a6b", "accountID": "9a86cf04-9286-4984-a7a5-4ef9d084c08d", "invoiceID": "7575c3ec-bfa3-4b72-8af9-fb63ab4f04e4", "serviceReceiptID": "93cb3362-e69f-471c-b228-75f24afc0f21", "productionID": "b8c638be-f3e9-4e53-8ed8-4ebf7afd9048", "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": "974789d1-445b-4c8f-8eb9-d730c36d7332", "theWithholdingAmount": 16.1, "noKDVReasonID": "ca2ed322-c64f-48bb-9051-a1a140b5eeae", "unitID": "ac91bfc4-7ed0-4cef-b506-87237dba762e", "currencyID": "483fca1e-9802-4021-9ea6-406689f5b132", "productID": "1658af39-142c-455f-bd07-7a83a8c5ff03", "productStockActionID": "16a18ab0-3c73-4f90-b6f4-21a6bb274b03", "entryWarehouseID": "7bc5670e-ec3b-4d92-b41d-6587c795bcc5", "exitWarehouseID": "d690501d-da7b-47d4-a415-63ee5598e069", "companyID": "9b8cc366-963f-41d5-a45e-9542af9a91b9" }, { "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": "974789d1-445b-4c8f-8eb9-d730c36d7332", "theWithholdingAmount": 16.1, "noKDVReasonID": "ca2ed322-c64f-48bb-9051-a1a140b5eeae", "unitID": "ac91bfc4-7ed0-4cef-b506-87237dba762e", "currencyID": "483fca1e-9802-4021-9ea6-406689f5b132", "productID": "1658af39-142c-455f-bd07-7a83a8c5ff03", "productStockActionID": "16a18ab0-3c73-4f90-b6f4-21a6bb274b03", "entryWarehouseID": "7bc5670e-ec3b-4d92-b41d-6587c795bcc5", "exitWarehouseID": "d690501d-da7b-47d4-a415-63ee5598e069", "companyID": "9b8cc366-963f-41d5-a45e-9542af9a91b9" } ], "id": "06c6313f-3259-4db2-b28c-24beaf96c323", "companyID": "439565fb-089c-44c2-8cf9-7beaede96969" }
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>439565fb-089c-44c2-8cf9-7beaede96969</CompanyID> <ID>06c6313f-3259-4db2-b28c-24beaf96c323</ID> <AccountID>9a86cf04-9286-4984-a7a5-4ef9d084c08d</AccountID> <Amount>12.1</Amount> <BeforeTaxAmount>6.1</BeforeTaxAmount> <CurrencyID>d42d3aaa-7934-414b-b488-fe1edb5c4a6b</CurrencyID> <CurrencyRate>18.1</CurrencyRate> <Date>2025-05-24T15:03:23.6072233+03:00</Date> <Description>sample string 5</Description> <DiscountAmount>11.1</DiscountAmount> <DiscountRate>10.1</DiscountRate> <InvoiceID>7575c3ec-bfa3-4b72-8af9-fb63ab4f04e4</InvoiceID> <LineDiscountAmount>9.1</LineDiscountAmount> <OrderNumber>sample string 3</OrderNumber> <ProductStockActionDetails> <ProductStockActionDetailAddDto> <Amount>3.1</Amount> <CompanyID>9b8cc366-963f-41d5-a45e-9542af9a91b9</CompanyID> <CurrencyID>483fca1e-9802-4021-9ea6-406689f5b132</CurrencyID> <CurrencyRate>1.1</CurrencyRate> <DiscountAmount>5.1</DiscountAmount> <DiscountRate>4.1</DiscountRate> <DiscountedTotalPrice>7.1</DiscountedTotalPrice> <DiscountedUnitPrice>6.1</DiscountedUnitPrice> <EntryWarehouseID>7bc5670e-ec3b-4d92-b41d-6587c795bcc5</EntryWarehouseID> <ExitWarehouseID>d690501d-da7b-47d4-a415-63ee5598e069</ExitWarehouseID> <IsDiscountPercentage>true</IsDiscountPercentage> <IsOTVPercentage>true</IsOTVPercentage> <KDV>KDV0</KDV> <KDVAmount>10.1</KDVAmount> <NoKDVReasonID>ca2ed322-c64f-48bb-9051-a1a140b5eeae</NoKDVReasonID> <OIV>11.1</OIV> <OIVAmount>12.1</OIVAmount> <OTV>13.1</OTV> <OTVAmount>14.1</OTVAmount> <ProductID>1658af39-142c-455f-bd07-7a83a8c5ff03</ProductID> <ProductStockActionID>16a18ab0-3c73-4f90-b6f4-21a6bb274b03</ProductStockActionID> <Quantity>2.1</Quantity> <TheWithholdingAmount>16.1</TheWithholdingAmount> <TheWithholdingID>974789d1-445b-4c8f-8eb9-d730c36d7332</TheWithholdingID> <TotalAmount>9.1</TotalAmount> <UnitID>ac91bfc4-7ed0-4cef-b506-87237dba762e</UnitID> </ProductStockActionDetailAddDto> <ProductStockActionDetailAddDto> <Amount>3.1</Amount> <CompanyID>9b8cc366-963f-41d5-a45e-9542af9a91b9</CompanyID> <CurrencyID>483fca1e-9802-4021-9ea6-406689f5b132</CurrencyID> <CurrencyRate>1.1</CurrencyRate> <DiscountAmount>5.1</DiscountAmount> <DiscountRate>4.1</DiscountRate> <DiscountedTotalPrice>7.1</DiscountedTotalPrice> <DiscountedUnitPrice>6.1</DiscountedUnitPrice> <EntryWarehouseID>7bc5670e-ec3b-4d92-b41d-6587c795bcc5</EntryWarehouseID> <ExitWarehouseID>d690501d-da7b-47d4-a415-63ee5598e069</ExitWarehouseID> <IsDiscountPercentage>true</IsDiscountPercentage> <IsOTVPercentage>true</IsOTVPercentage> <KDV>KDV0</KDV> <KDVAmount>10.1</KDVAmount> <NoKDVReasonID>ca2ed322-c64f-48bb-9051-a1a140b5eeae</NoKDVReasonID> <OIV>11.1</OIV> <OIVAmount>12.1</OIVAmount> <OTV>13.1</OTV> <OTVAmount>14.1</OTVAmount> <ProductID>1658af39-142c-455f-bd07-7a83a8c5ff03</ProductID> <ProductStockActionID>16a18ab0-3c73-4f90-b6f4-21a6bb274b03</ProductStockActionID> <Quantity>2.1</Quantity> <TheWithholdingAmount>16.1</TheWithholdingAmount> <TheWithholdingID>974789d1-445b-4c8f-8eb9-d730c36d7332</TheWithholdingID> <TotalAmount>9.1</TotalAmount> <UnitID>ac91bfc4-7ed0-4cef-b506-87237dba762e</UnitID> </ProductStockActionDetailAddDto> </ProductStockActionDetails> <ProductStockActionType>EntryReceipt</ProductStockActionType> <ProductionID>b8c638be-f3e9-4e53-8ed8-4ebf7afd9048</ProductionID> <SerialNumber>sample string 2</SerialNumber> <ServiceReceiptID>93cb3362-e69f-471c-b228-75f24afc0f21</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-24T15:03:23.6072233+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":"d42d3aaa-7934-414b-b488-fe1edb5c4a6b","accountID":"9a86cf04-9286-4984-a7a5-4ef9d084c08d","invoiceID":"7575c3ec-bfa3-4b72-8af9-fb63ab4f04e4","serviceReceiptID":"93cb3362-e69f-471c-b228-75f24afc0f21","productionID":"b8c638be-f3e9-4e53-8ed8-4ebf7afd9048","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":"974789d1-445b-4c8f-8eb9-d730c36d7332","theWithholdingAmount":16.1,"noKDVReasonID":"ca2ed322-c64f-48bb-9051-a1a140b5eeae","unitID":"ac91bfc4-7ed0-4cef-b506-87237dba762e","currencyID":"483fca1e-9802-4021-9ea6-406689f5b132","productID":"1658af39-142c-455f-bd07-7a83a8c5ff03","productStockActionID":"16a18ab0-3c73-4f90-b6f4-21a6bb274b03","entryWarehouseID":"7bc5670e-ec3b-4d92-b41d-6587c795bcc5","exitWarehouseID":"d690501d-da7b-47d4-a415-63ee5598e069","companyID":"9b8cc366-963f-41d5-a45e-9542af9a91b9"},{"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":"974789d1-445b-4c8f-8eb9-d730c36d7332","theWithholdingAmount":16.1,"noKDVReasonID":"ca2ed322-c64f-48bb-9051-a1a140b5eeae","unitID":"ac91bfc4-7ed0-4cef-b506-87237dba762e","currencyID":"483fca1e-9802-4021-9ea6-406689f5b132","productID":"1658af39-142c-455f-bd07-7a83a8c5ff03","productStockActionID":"16a18ab0-3c73-4f90-b6f4-21a6bb274b03","entryWarehouseID":"7bc5670e-ec3b-4d92-b41d-6587c795bcc5","exitWarehouseID":"d690501d-da7b-47d4-a415-63ee5598e069","companyID":"9b8cc366-963f-41d5-a45e-9542af9a91b9"}],"id":"06c6313f-3259-4db2-b28c-24beaf96c323","companyID":"439565fb-089c-44c2-8cf9-7beaede96969"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.