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": "502a79ce-569e-404f-a129-e1b6ecb85954", "warehouseID": "72d45e65-7089-4a80-aa66-78cdbdc82505", "currencyID": "be57eb88-ada0-4e22-9eb5-5aa79b4cc358", "productID": "475314ba-c72b-4127-9f72-f6925830ebf8", "serviceReceiptID": "a9f00b9a-0f37-49cf-bdd9-3d6ee86adf90", "companyID": "a1f2927a-972c-4ff3-9e15-69769d8c0904" }
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>a1f2927a-972c-4ff3-9e15-69769d8c0904</CompanyID> <Cost>1.1</Cost> <CurrencyID>be57eb88-ada0-4e22-9eb5-5aa79b4cc358</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>475314ba-c72b-4127-9f72-f6925830ebf8</ProductID> <ProductName>sample string 3</ProductName> <Quantity>5.1</Quantity> <ServiceReceiptID>a9f00b9a-0f37-49cf-bdd9-3d6ee86adf90</ServiceReceiptID> <Title>sample string 1</Title> <TotalAmount>14.1</TotalAmount> <UnitID>502a79ce-569e-404f-a129-e1b6ecb85954</UnitID> <WarehouseID>72d45e65-7089-4a80-aa66-78cdbdc82505</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":"502a79ce-569e-404f-a129-e1b6ecb85954","warehouseID":"72d45e65-7089-4a80-aa66-78cdbdc82505","currencyID":"be57eb88-ada0-4e22-9eb5-5aa79b4cc358","productID":"475314ba-c72b-4127-9f72-f6925830ebf8","serviceReceiptID":"a9f00b9a-0f37-49cf-bdd9-3d6ee86adf90","companyID":"a1f2927a-972c-4ff3-9e15-69769d8c0904"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.