POST api/ServiceReceiptProduct/Add
Request Information
URI Parameters
None.
Body Parameters
ServiceReceiptProductAddDtoName | Description | Type | Additional information |
---|---|---|---|
Title | string |
None. |
|
Code | string |
None. |
|
ProductName | string |
None. |
|
CurrencyRate | decimal number |
None. |
|
Quantity | decimal number |
None. |
|
Amount | decimal number |
None. |
|
LeanAmount | decimal number |
None. |
|
Description | string |
None. |
|
Cost | decimal number |
None. |
|
DiscountRate | decimal number |
None. |
|
DiscountAmount | decimal number |
None. |
|
DiscountedUnitPrice | decimal number |
None. |
|
DiscountedTotalPrice | decimal number |
None. |
|
IsDiscountPercentage | boolean |
None. |
|
TotalAmount | decimal number |
None. |
|
KDV | KDV |
None. |
|
KDVAmount | decimal number |
None. |
|
UnitID | globally unique identifier |
None. |
|
WarehouseID | globally unique identifier |
None. |
|
CurrencyID | globally unique identifier |
None. |
|
ProductID | globally unique identifier |
None. |
|
ServiceReceiptID | globally unique identifier |
None. |
|
CompanyID | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "title": "sample string 1", "code": "sample string 2", "productName": "sample string 3", "currencyRate": 4.1, "quantity": 5.1, "amount": 6.1, "leanAmount": 7.1, "description": "sample string 8", "cost": 1.1, "discountRate": 9.1, "discountAmount": 10.1, "discountedUnitPrice": 11.1, "discountedTotalPrice": 12.1, "isDiscountPercentage": true, "totalAmount": 14.1, "kdv": 0, "kdvAmount": 15.1, "unitID": "503589a2-ee5a-4307-8dd2-fc880c4f32a2", "warehouseID": "98f7f288-46ec-4350-8d82-13ece1b777f4", "currencyID": "78ee599c-7264-4d30-bf82-0481b151ecbe", "productID": "caeb425c-302c-4f01-a67a-29f9c8b23288", "serviceReceiptID": "f8644d58-fccb-434a-ad78-1a7af3413cd0", "companyID": "8f605bf4-e80f-47c9-ad55-033b18585d0d" }
application/xml, text/xml
Sample:
<ServiceReceiptProductAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TP.TulTrack.Core.Service.DTOs"> <Amount>6.1</Amount> <Code>sample string 2</Code> <CompanyID>8f605bf4-e80f-47c9-ad55-033b18585d0d</CompanyID> <Cost>1.1</Cost> <CurrencyID>78ee599c-7264-4d30-bf82-0481b151ecbe</CurrencyID> <CurrencyRate>4.1</CurrencyRate> <Description>sample string 8</Description> <DiscountAmount>10.1</DiscountAmount> <DiscountRate>9.1</DiscountRate> <DiscountedTotalPrice>12.1</DiscountedTotalPrice> <DiscountedUnitPrice>11.1</DiscountedUnitPrice> <IsDiscountPercentage>true</IsDiscountPercentage> <KDV>KDV0</KDV> <KDVAmount>15.1</KDVAmount> <LeanAmount>7.1</LeanAmount> <ProductID>caeb425c-302c-4f01-a67a-29f9c8b23288</ProductID> <ProductName>sample string 3</ProductName> <Quantity>5.1</Quantity> <ServiceReceiptID>f8644d58-fccb-434a-ad78-1a7af3413cd0</ServiceReceiptID> <Title>sample string 1</Title> <TotalAmount>14.1</TotalAmount> <UnitID>503589a2-ee5a-4307-8dd2-fc880c4f32a2</UnitID> <WarehouseID>98f7f288-46ec-4350-8d82-13ece1b777f4</WarehouseID> </ServiceReceiptProductAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"title":"sample string 1","code":"sample string 2","productName":"sample string 3","currencyRate":4.1,"quantity":5.1,"amount":6.1,"leanAmount":7.1,"description":"sample string 8","cost":1.1,"discountRate":9.1,"discountAmount":10.1,"discountedUnitPrice":11.1,"discountedTotalPrice":12.1,"isDiscountPercentage":true,"totalAmount":14.1,"kdv":0,"kdvAmount":15.1,"unitID":"503589a2-ee5a-4307-8dd2-fc880c4f32a2","warehouseID":"98f7f288-46ec-4350-8d82-13ece1b777f4","currencyID":"78ee599c-7264-4d30-bf82-0481b151ecbe","productID":"caeb425c-302c-4f01-a67a-29f9c8b23288","serviceReceiptID":"f8644d58-fccb-434a-ad78-1a7af3413cd0","companyID":"8f605bf4-e80f-47c9-ad55-033b18585d0d"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.