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-11-27T01:55:29.0060502+07:00",
"storeId": 2,
"employeeId": "cae51c09-8150-42ff-a284-3d39bf98f605",
"totalBudget": 1.0,
"note": "sample string 3",
"createId": "af6ce6df-0129-4152-b2b9-f5e2467b2f7a",
"details": [
{
"reportId": 1,
"categoryId": 1,
"paymentMethodId": 1,
"expenseDate": "2026-11-27T01:55:29.0112422+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": "d2625c43-bec8-4692-a35e-4295efa0bc0d"
},
{
"reportId": 1,
"categoryId": 1,
"paymentMethodId": 1,
"expenseDate": "2026-11-27T01:55:29.0112422+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": "d2625c43-bec8-4692-a35e-4295efa0bc0d"
}
]
}
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>af6ce6df-0129-4152-b2b9-f5e2467b2f7a</CreateId>
<Details>
<CreateExpenseDetailRequest>
<Amount>3</Amount>
<AttachmentType>sample string 9</AttachmentType>
<AttachmentUrl>sample string 8</AttachmentUrl>
<CategoryId>1</CategoryId>
<CreateId>d2625c43-bec8-4692-a35e-4295efa0bc0d</CreateId>
<Description>sample string 4</Description>
<ExpenseDate>2026-11-27T01:55:29.0112422+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>d2625c43-bec8-4692-a35e-4295efa0bc0d</CreateId>
<Description>sample string 4</Description>
<ExpenseDate>2026-11-27T01:55:29.0112422+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>cae51c09-8150-42ff-a284-3d39bf98f605</EmployeeId>
<Note>sample string 3</Note>
<ReportDate>2026-11-27T01:55:29.0060502+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>