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-07-22T03:26:30.3254259+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": "11d98902-6b22-42f1-8021-60386f37dee3", "accountID": "625304f1-5b75-47b3-a9a8-f3c01c573cea", "companyID": "1a246bd9-7620-4b57-864f-1213639f695b", "invoiceID": "baa7033d-a189-40fb-bb74-be70c33b20c5", "serviceReceiptID": "b1d2a77a-e8da-4f05-9f59-0cac8b8ea48d", "productionID": "6383d9e3-a111-40b8-a517-a5f36618cb02", "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": "6e4d16ca-8f87-46bd-948d-34a638e57f5b", "theWithholdingAmount": 16.1, "noKDVReasonID": "d74ed418-a373-4564-b989-a9f4e5c430ff", "unitID": "100e5772-6840-4aae-9005-9a5fc7be7a26", "currencyID": "4f8b8c4d-41aa-481b-870f-2d01b9d14c2d", "productID": "de7d6651-733c-45d6-935a-06360702491a", "productStockActionID": "7e506831-9944-431d-a527-fa7142035a00", "entryWarehouseID": "9b489238-3667-4320-a651-752a04831fb7", "exitWarehouseID": "89bedec8-331c-43a4-a530-8edc860da75a", "companyID": "87ce3d9a-64a4-46eb-b28c-c0b9300d50f6" }, { "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": "6e4d16ca-8f87-46bd-948d-34a638e57f5b", "theWithholdingAmount": 16.1, "noKDVReasonID": "d74ed418-a373-4564-b989-a9f4e5c430ff", "unitID": "100e5772-6840-4aae-9005-9a5fc7be7a26", "currencyID": "4f8b8c4d-41aa-481b-870f-2d01b9d14c2d", "productID": "de7d6651-733c-45d6-935a-06360702491a", "productStockActionID": "7e506831-9944-431d-a527-fa7142035a00", "entryWarehouseID": "9b489238-3667-4320-a651-752a04831fb7", "exitWarehouseID": "89bedec8-331c-43a4-a530-8edc860da75a", "companyID": "87ce3d9a-64a4-46eb-b28c-c0b9300d50f6" } ], "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>625304f1-5b75-47b3-a9a8-f3c01c573cea</AccountID> <Amount>12.1</Amount> <BeforeTaxAmount>6.1</BeforeTaxAmount> <CompanyID>1a246bd9-7620-4b57-864f-1213639f695b</CompanyID> <CurrencyID>11d98902-6b22-42f1-8021-60386f37dee3</CurrencyID> <CurrencyRate>18.1</CurrencyRate> <Date>2025-07-22T03:26:30.3254259+03:00</Date> <Description>sample string 5</Description> <DiscountAmount>11.1</DiscountAmount> <DiscountRate>10.1</DiscountRate> <InvoiceID>baa7033d-a189-40fb-bb74-be70c33b20c5</InvoiceID> <IsFromInvoice>true</IsFromInvoice> <IsFromProductCreate>true</IsFromProductCreate> <LineDiscountAmount>9.1</LineDiscountAmount> <OrderNumber>sample string 3</OrderNumber> <ProductStockActionDetails> <ProductStockActionDetailAddDto> <Amount>3.1</Amount> <CompanyID>87ce3d9a-64a4-46eb-b28c-c0b9300d50f6</CompanyID> <CurrencyID>4f8b8c4d-41aa-481b-870f-2d01b9d14c2d</CurrencyID> <CurrencyRate>1.1</CurrencyRate> <DiscountAmount>5.1</DiscountAmount> <DiscountRate>4.1</DiscountRate> <DiscountedTotalPrice>7.1</DiscountedTotalPrice> <DiscountedUnitPrice>6.1</DiscountedUnitPrice> <EntryWarehouseID>9b489238-3667-4320-a651-752a04831fb7</EntryWarehouseID> <ExitWarehouseID>89bedec8-331c-43a4-a530-8edc860da75a</ExitWarehouseID> <IsDiscountPercentage>true</IsDiscountPercentage> <IsOTVPercentage>true</IsOTVPercentage> <KDV>KDV0</KDV> <KDVAmount>10.1</KDVAmount> <NoKDVReasonID>d74ed418-a373-4564-b989-a9f4e5c430ff</NoKDVReasonID> <OIV>11.1</OIV> <OIVAmount>12.1</OIVAmount> <OTV>13.1</OTV> <OTVAmount>14.1</OTVAmount> <ProductID>de7d6651-733c-45d6-935a-06360702491a</ProductID> <ProductStockActionID>7e506831-9944-431d-a527-fa7142035a00</ProductStockActionID> <Quantity>2.1</Quantity> <TheWithholdingAmount>16.1</TheWithholdingAmount> <TheWithholdingID>6e4d16ca-8f87-46bd-948d-34a638e57f5b</TheWithholdingID> <TotalAmount>9.1</TotalAmount> <UnitID>100e5772-6840-4aae-9005-9a5fc7be7a26</UnitID> </ProductStockActionDetailAddDto> <ProductStockActionDetailAddDto> <Amount>3.1</Amount> <CompanyID>87ce3d9a-64a4-46eb-b28c-c0b9300d50f6</CompanyID> <CurrencyID>4f8b8c4d-41aa-481b-870f-2d01b9d14c2d</CurrencyID> <CurrencyRate>1.1</CurrencyRate> <DiscountAmount>5.1</DiscountAmount> <DiscountRate>4.1</DiscountRate> <DiscountedTotalPrice>7.1</DiscountedTotalPrice> <DiscountedUnitPrice>6.1</DiscountedUnitPrice> <EntryWarehouseID>9b489238-3667-4320-a651-752a04831fb7</EntryWarehouseID> <ExitWarehouseID>89bedec8-331c-43a4-a530-8edc860da75a</ExitWarehouseID> <IsDiscountPercentage>true</IsDiscountPercentage> <IsOTVPercentage>true</IsOTVPercentage> <KDV>KDV0</KDV> <KDVAmount>10.1</KDVAmount> <NoKDVReasonID>d74ed418-a373-4564-b989-a9f4e5c430ff</NoKDVReasonID> <OIV>11.1</OIV> <OIVAmount>12.1</OIVAmount> <OTV>13.1</OTV> <OTVAmount>14.1</OTVAmount> <ProductID>de7d6651-733c-45d6-935a-06360702491a</ProductID> <ProductStockActionID>7e506831-9944-431d-a527-fa7142035a00</ProductStockActionID> <Quantity>2.1</Quantity> <TheWithholdingAmount>16.1</TheWithholdingAmount> <TheWithholdingID>6e4d16ca-8f87-46bd-948d-34a638e57f5b</TheWithholdingID> <TotalAmount>9.1</TotalAmount> <UnitID>100e5772-6840-4aae-9005-9a5fc7be7a26</UnitID> </ProductStockActionDetailAddDto> </ProductStockActionDetails> <ProductStockActionType>EntryReceipt</ProductStockActionType> <ProductionID>6383d9e3-a111-40b8-a517-a5f36618cb02</ProductionID> <SerialNumber>sample string 2</SerialNumber> <ServiceReceiptID>b1d2a77a-e8da-4f05-9f59-0cac8b8ea48d</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-07-22T03:26:30.3254259+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":"11d98902-6b22-42f1-8021-60386f37dee3","accountID":"625304f1-5b75-47b3-a9a8-f3c01c573cea","companyID":"1a246bd9-7620-4b57-864f-1213639f695b","invoiceID":"baa7033d-a189-40fb-bb74-be70c33b20c5","serviceReceiptID":"b1d2a77a-e8da-4f05-9f59-0cac8b8ea48d","productionID":"6383d9e3-a111-40b8-a517-a5f36618cb02","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":"6e4d16ca-8f87-46bd-948d-34a638e57f5b","theWithholdingAmount":16.1,"noKDVReasonID":"d74ed418-a373-4564-b989-a9f4e5c430ff","unitID":"100e5772-6840-4aae-9005-9a5fc7be7a26","currencyID":"4f8b8c4d-41aa-481b-870f-2d01b9d14c2d","productID":"de7d6651-733c-45d6-935a-06360702491a","productStockActionID":"7e506831-9944-431d-a527-fa7142035a00","entryWarehouseID":"9b489238-3667-4320-a651-752a04831fb7","exitWarehouseID":"89bedec8-331c-43a4-a530-8edc860da75a","companyID":"87ce3d9a-64a4-46eb-b28c-c0b9300d50f6"},{"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":"6e4d16ca-8f87-46bd-948d-34a638e57f5b","theWithholdingAmount":16.1,"noKDVReasonID":"d74ed418-a373-4564-b989-a9f4e5c430ff","unitID":"100e5772-6840-4aae-9005-9a5fc7be7a26","currencyID":"4f8b8c4d-41aa-481b-870f-2d01b9d14c2d","productID":"de7d6651-733c-45d6-935a-06360702491a","productStockActionID":"7e506831-9944-431d-a527-fa7142035a00","entryWarehouseID":"9b489238-3667-4320-a651-752a04831fb7","exitWarehouseID":"89bedec8-331c-43a4-a530-8edc860da75a","companyID":"87ce3d9a-64a4-46eb-b28c-c0b9300d50f6"}],"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.