POST api/DailyExpense/CreateReport
Request Information
URI Parameters
None.
Body Parameters
CreateDailyExpenseReportRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| ReportDate | date |
None. |
|
| StoreId | integer |
None. |
|
| EmployeeId | globally unique identifier |
None. |
|
| TotalBudget | decimal number |
None. |
|
| Note | string |
None. |
|
| CreateId | globally unique identifier |
None. |
|
| Details | Collection of CreateExpenseDetailRequest |
None. |
Request Formats
application/json, text/json
Sample:
{
"ReportDate": "2026-04-21T17:16:12.257041+07:00",
"StoreId": 2,
"EmployeeId": "23512def-4701-44db-a445-fda2fedb2ef7",
"TotalBudget": 1.0,
"Note": "sample string 3",
"CreateId": "20912579-f230-4fc1-994b-43fa4e65e8ac",
"Details": [
{
"ReportId": 1,
"CategoryId": 1,
"PaymentMethodId": 1,
"ExpenseDate": "2026-04-21T17:16:12.2589605+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": "24b9acc9-181d-4ff6-ae02-edf067b17e0f"
},
{
"ReportId": 1,
"CategoryId": 1,
"PaymentMethodId": 1,
"ExpenseDate": "2026-04-21T17:16:12.2589605+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": "24b9acc9-181d-4ff6-ae02-edf067b17e0f"
}
]
}
application/xml, text/xml
Sample:
<CreateDailyExpenseReportRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Request.Expense">
<CreateId>20912579-f230-4fc1-994b-43fa4e65e8ac</CreateId>
<Details>
<CreateExpenseDetailRequest>
<Amount>3</Amount>
<AttachmentType>sample string 9</AttachmentType>
<AttachmentUrl>sample string 8</AttachmentUrl>
<CategoryId>1</CategoryId>
<CreateId>24b9acc9-181d-4ff6-ae02-edf067b17e0f</CreateId>
<Description>sample string 4</Description>
<ExpenseDate>2026-04-21T17:16:12.2589605+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>
<CreateExpenseDetailRequest>
<Amount>3</Amount>
<AttachmentType>sample string 9</AttachmentType>
<AttachmentUrl>sample string 8</AttachmentUrl>
<CategoryId>1</CategoryId>
<CreateId>24b9acc9-181d-4ff6-ae02-edf067b17e0f</CreateId>
<Description>sample string 4</Description>
<ExpenseDate>2026-04-21T17:16:12.2589605+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>
</Details>
<EmployeeId>23512def-4701-44db-a445-fda2fedb2ef7</EmployeeId>
<Note>sample string 3</Note>
<ReportDate>2026-04-21T17:16:12.257041+07:00</ReportDate>
<StoreId>2</StoreId>
<TotalBudget>1</TotalBudget>
</CreateDailyExpenseReportRequest>
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>