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": "6c02086c-eedc-469e-b88b-2860facb4194", "warehouseID": "99fa7cd4-117b-4e83-bb74-ccf529bcc2a8", "currencyID": "9e53dcf7-9d89-4dbf-9e03-ae0967d113b2", "productID": "c3194110-95f7-485d-a1d9-7471472157e1", "serviceReceiptID": "9a76f731-111c-4db0-a98e-e5f8fe8fa37b", "companyID": "02004470-c1b5-4289-8a20-11e500736a22" }
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>02004470-c1b5-4289-8a20-11e500736a22</CompanyID> <Cost>1.1</Cost> <CurrencyID>9e53dcf7-9d89-4dbf-9e03-ae0967d113b2</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>c3194110-95f7-485d-a1d9-7471472157e1</ProductID> <ProductName>sample string 3</ProductName> <Quantity>5.1</Quantity> <ServiceReceiptID>9a76f731-111c-4db0-a98e-e5f8fe8fa37b</ServiceReceiptID> <Title>sample string 1</Title> <TotalAmount>14.1</TotalAmount> <UnitID>6c02086c-eedc-469e-b88b-2860facb4194</UnitID> <WarehouseID>99fa7cd4-117b-4e83-bb74-ccf529bcc2a8</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":"6c02086c-eedc-469e-b88b-2860facb4194","warehouseID":"99fa7cd4-117b-4e83-bb74-ccf529bcc2a8","currencyID":"9e53dcf7-9d89-4dbf-9e03-ae0967d113b2","productID":"c3194110-95f7-485d-a1d9-7471472157e1","serviceReceiptID":"9a76f731-111c-4db0-a98e-e5f8fe8fa37b","companyID":"02004470-c1b5-4289-8a20-11e500736a22"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.