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": "09fa894b-f85f-4c52-89c9-630ef0360a71", "warehouseID": "e1d0e995-aa6e-4551-8ea8-9d2ffb062361", "currencyID": "31511b22-7d90-4b53-bc5f-1805156d93b7", "productID": "9532d0ec-c5c4-4465-a3ce-b8a4eb084961", "serviceReceiptID": "5c355835-a217-4934-b28d-4daf35c551ac", "companyID": "b8bb6dba-e0a4-423a-addc-0d54661d0f66" }
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>b8bb6dba-e0a4-423a-addc-0d54661d0f66</CompanyID> <Cost>1.1</Cost> <CurrencyID>31511b22-7d90-4b53-bc5f-1805156d93b7</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>9532d0ec-c5c4-4465-a3ce-b8a4eb084961</ProductID> <ProductName>sample string 3</ProductName> <Quantity>5.1</Quantity> <ServiceReceiptID>5c355835-a217-4934-b28d-4daf35c551ac</ServiceReceiptID> <Title>sample string 1</Title> <TotalAmount>14.1</TotalAmount> <UnitID>09fa894b-f85f-4c52-89c9-630ef0360a71</UnitID> <WarehouseID>e1d0e995-aa6e-4551-8ea8-9d2ffb062361</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":"09fa894b-f85f-4c52-89c9-630ef0360a71","warehouseID":"e1d0e995-aa6e-4551-8ea8-9d2ffb062361","currencyID":"31511b22-7d90-4b53-bc5f-1805156d93b7","productID":"9532d0ec-c5c4-4465-a3ce-b8a4eb084961","serviceReceiptID":"5c355835-a217-4934-b28d-4daf35c551ac","companyID":"b8bb6dba-e0a4-423a-addc-0d54661d0f66"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.