POST api/DailyExpense/UpdateDetail

Request Information

URI Parameters

None.

Body Parameters

UpdateExpenseDetailRequest
NameDescriptionTypeAdditional information
Id

integer

None.

CategoryId

integer

None.

PaymentMethodId

integer

None.

ExpenseDate

date

None.

Amount

decimal number

None.

Quantity

decimal number

None.

UnitPrice

decimal number

None.

Description

string

None.

Vendor

string

None.

InvoiceNumber

string

None.

Reference

string

None.

AttachmentUrl

string

None.

AttachmentType

string

None.

TransactionType

string

None.

IsLoggedToSystem

boolean

None.

RefundAmount

decimal number

None.

RefundCategoryId

integer

None.

UpdatedId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "CategoryId": 2,
  "PaymentMethodId": 1,
  "ExpenseDate": "2026-04-14T19:47:20.2365127+07:00",
  "Amount": 4.0,
  "Quantity": 1.0,
  "UnitPrice": 1.0,
  "Description": "sample string 5",
  "Vendor": "sample string 6",
  "InvoiceNumber": "sample string 7",
  "Reference": "sample string 8",
  "AttachmentUrl": "sample string 9",
  "AttachmentType": "sample string 10",
  "TransactionType": "sample string 11",
  "IsLoggedToSystem": true,
  "RefundAmount": 1.0,
  "RefundCategoryId": 1,
  "UpdatedId": "031de291-7aff-40ec-a0f5-281a736752e8"
}

application/xml, text/xml

Sample:
<UpdateExpenseDetailRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Request.Expense">
  <Amount>4</Amount>
  <AttachmentType>sample string 10</AttachmentType>
  <AttachmentUrl>sample string 9</AttachmentUrl>
  <CategoryId>2</CategoryId>
  <Description>sample string 5</Description>
  <ExpenseDate>2026-04-14T19:47:20.2365127+07:00</ExpenseDate>
  <Id>1</Id>
  <InvoiceNumber>sample string 7</InvoiceNumber>
  <IsLoggedToSystem>true</IsLoggedToSystem>
  <PaymentMethodId>1</PaymentMethodId>
  <Quantity>1</Quantity>
  <Reference>sample string 8</Reference>
  <RefundAmount>1</RefundAmount>
  <RefundCategoryId>1</RefundCategoryId>
  <TransactionType>sample string 11</TransactionType>
  <UnitPrice>1</UnitPrice>
  <UpdatedId>031de291-7aff-40ec-a0f5-281a736752e8</UpdatedId>
  <Vendor>sample string 6</Vendor>
</UpdateExpenseDetailRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UpdateExpenseDetailRequest'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.