POST api/ServiceReceiptProduct/Update

Request Information

URI Parameters

None.

Body Parameters

ServiceReceiptProductUpdateDto
NameDescriptionTypeAdditional information
Title

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.

ID

globally unique identifier

Required

CompanyID

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "title": "sample string 1",
  "productName": "sample string 2",
  "currencyRate": 3.1,
  "quantity": 4.1,
  "amount": 5.1,
  "leanAmount": 6.1,
  "description": "sample string 7",
  "cost": 1.1,
  "discountRate": 8.1,
  "discountAmount": 9.1,
  "discountedUnitPrice": 10.1,
  "discountedTotalPrice": 11.1,
  "isDiscountPercentage": true,
  "totalAmount": 13.1,
  "kdv": 0,
  "kdvAmount": 14.1,
  "unitID": "c10208a6-5aa8-46ff-b83c-64d0cc6e2891",
  "warehouseID": "9fa90211-c5d6-4256-9948-dfe0123d9a7e",
  "currencyID": "ad2524b1-0f9e-4694-963c-a04512fc4ca6",
  "productID": "a188fba6-7b6c-4d3d-abc7-8b2ca71bf2b7",
  "serviceReceiptID": "e11900ff-72b6-4e2e-ab4c-5eab90b93539",
  "id": "13cf5d6f-3002-408e-a59c-c97d929591af",
  "companyID": "9511ef9c-ca9f-47a4-8f47-13d14b79e1fb"
}

application/xml, text/xml

Sample:
<ServiceReceiptProductUpdateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TP.TulTrack.Core.Service.DTOs">
  <CompanyID>9511ef9c-ca9f-47a4-8f47-13d14b79e1fb</CompanyID>
  <ID>13cf5d6f-3002-408e-a59c-c97d929591af</ID>
  <Amount>5.1</Amount>
  <Cost>1.1</Cost>
  <CurrencyID>ad2524b1-0f9e-4694-963c-a04512fc4ca6</CurrencyID>
  <CurrencyRate>3.1</CurrencyRate>
  <Description>sample string 7</Description>
  <DiscountAmount>9.1</DiscountAmount>
  <DiscountRate>8.1</DiscountRate>
  <DiscountedTotalPrice>11.1</DiscountedTotalPrice>
  <DiscountedUnitPrice>10.1</DiscountedUnitPrice>
  <IsDiscountPercentage>true</IsDiscountPercentage>
  <KDV>KDV0</KDV>
  <KDVAmount>14.1</KDVAmount>
  <LeanAmount>6.1</LeanAmount>
  <ProductID>a188fba6-7b6c-4d3d-abc7-8b2ca71bf2b7</ProductID>
  <ProductName>sample string 2</ProductName>
  <Quantity>4.1</Quantity>
  <ServiceReceiptID>e11900ff-72b6-4e2e-ab4c-5eab90b93539</ServiceReceiptID>
  <Title>sample string 1</Title>
  <TotalAmount>13.1</TotalAmount>
  <UnitID>c10208a6-5aa8-46ff-b83c-64d0cc6e2891</UnitID>
  <WarehouseID>9fa90211-c5d6-4256-9948-dfe0123d9a7e</WarehouseID>
</ServiceReceiptProductUpdateDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

text/html

Sample:
{"title":"sample string 1","productName":"sample string 2","currencyRate":3.1,"quantity":4.1,"amount":5.1,"leanAmount":6.1,"description":"sample string 7","cost":1.1,"discountRate":8.1,"discountAmount":9.1,"discountedUnitPrice":10.1,"discountedTotalPrice":11.1,"isDiscountPercentage":true,"totalAmount":13.1,"kdv":0,"kdvAmount":14.1,"unitID":"c10208a6-5aa8-46ff-b83c-64d0cc6e2891","warehouseID":"9fa90211-c5d6-4256-9948-dfe0123d9a7e","currencyID":"ad2524b1-0f9e-4694-963c-a04512fc4ca6","productID":"a188fba6-7b6c-4d3d-abc7-8b2ca71bf2b7","serviceReceiptID":"e11900ff-72b6-4e2e-ab4c-5eab90b93539","id":"13cf5d6f-3002-408e-a59c-c97d929591af","companyID":"9511ef9c-ca9f-47a4-8f47-13d14b79e1fb"}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, text/html

Sample:

Sample not available.