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": "bda53d08-37ed-4ff4-918b-ac212f2bb870", "warehouseID": "620e2335-3637-4320-a0ae-86eda2919248", "currencyID": "9125974f-6403-4014-b7ae-4e97104bee41", "productID": "cbea2b1d-b6b6-4fdc-ae4c-c8577081c58a", "serviceReceiptID": "bcea01ed-8e6d-4417-97bd-599a03fd003b", "companyID": "616c56be-2940-4691-ab42-7eef282ac734" }
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>616c56be-2940-4691-ab42-7eef282ac734</CompanyID> <Cost>1.1</Cost> <CurrencyID>9125974f-6403-4014-b7ae-4e97104bee41</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>cbea2b1d-b6b6-4fdc-ae4c-c8577081c58a</ProductID> <ProductName>sample string 3</ProductName> <Quantity>5.1</Quantity> <ServiceReceiptID>bcea01ed-8e6d-4417-97bd-599a03fd003b</ServiceReceiptID> <Title>sample string 1</Title> <TotalAmount>14.1</TotalAmount> <UnitID>bda53d08-37ed-4ff4-918b-ac212f2bb870</UnitID> <WarehouseID>620e2335-3637-4320-a0ae-86eda2919248</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":"bda53d08-37ed-4ff4-918b-ac212f2bb870","warehouseID":"620e2335-3637-4320-a0ae-86eda2919248","currencyID":"9125974f-6403-4014-b7ae-4e97104bee41","productID":"cbea2b1d-b6b6-4fdc-ae4c-c8577081c58a","serviceReceiptID":"bcea01ed-8e6d-4417-97bd-599a03fd003b","companyID":"616c56be-2940-4691-ab42-7eef282ac734"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.