POST api/DailyExpense/AddDetail
Request Information
URI Parameters
None.
Body Parameters
CreateExpenseDetailRequest| Name | Description | Type | Additional 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-14T21:48:36.0057124+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": "733e268d-ee36-49a1-a6c6-c6fe1a7c0d82"
}
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>733e268d-ee36-49a1-a6c6-c6fe1a7c0d82</CreateId> <Description>sample string 4</Description> <ExpenseDate>2026-04-14T21:48:36.0057124+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:
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<long xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</long>