POST api/DailyExpense/AddDetail

Request Information

URI Parameters

None.

Body Parameters

CreateExpenseDetailRequest
NameDescriptionTypeAdditional information
ReportId

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.

CreateId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "ReportId": 1,
  "CategoryId": 1,
  "PaymentMethodId": 1,
  "ExpenseDate": "2026-04-14T19:47:22.9269055+07:00",
  "Amount": 3.0,
  "Quantity": 1.0,
  "UnitPrice": 1.0,
  "Description": "sample string 4",
  "Vendor": "sample string 5",
  "InvoiceNumber": "sample string 6",
  "Reference": "sample string 7",
  "AttachmentUrl": "sample string 8",
  "AttachmentType": "sample string 9",
  "TransactionType": "sample string 10",
  "IsLoggedToSystem": true,
  "RefundAmount": 1.0,
  "RefundCategoryId": 1,
  "CreateId": "fdf48186-dc5c-4516-a895-ee22d6105cd0"
}

application/xml, text/xml

Sample:
<CreateExpenseDetailRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Request.Expense">
  <Amount>3</Amount>
  <AttachmentType>sample string 9</AttachmentType>
  <AttachmentUrl>sample string 8</AttachmentUrl>
  <CategoryId>1</CategoryId>
  <CreateId>fdf48186-dc5c-4516-a895-ee22d6105cd0</CreateId>
  <Description>sample string 4</Description>
  <ExpenseDate>2026-04-14T19:47:22.9269055+07:00</ExpenseDate>
  <InvoiceNumber>sample string 6</InvoiceNumber>
  <IsLoggedToSystem>true</IsLoggedToSystem>
  <PaymentMethodId>1</PaymentMethodId>
  <Quantity>1</Quantity>
  <Reference>sample string 7</Reference>
  <RefundAmount>1</RefundAmount>
  <RefundCategoryId>1</RefundCategoryId>
  <ReportId>1</ReportId>
  <TransactionType>sample string 10</TransactionType>
  <UnitPrice>1</UnitPrice>
  <Vendor>sample string 5</Vendor>
</CreateExpenseDetailRequest>

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 'CreateExpenseDetailRequest'.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<long xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</long>