POST api/DailyExpense/CreateReport

Request Information

URI Parameters

None.

Body Parameters

CreateDailyExpenseReportRequest
NameDescriptionTypeAdditional 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-14T21:45:12.2323787+07:00",
  "StoreId": 2,
  "EmployeeId": "10426a66-106c-4615-a269-48f6e7623956",
  "TotalBudget": 1.0,
  "Note": "sample string 3",
  "CreateId": "48c93cb7-131f-4ff9-94dd-b05e425fae6b",
  "Details": [
    {
      "ReportId": 1,
      "CategoryId": 1,
      "PaymentMethodId": 1,
      "ExpenseDate": "2026-04-14T21:45:12.2362801+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": "dd111cab-c5a7-4354-a790-7e964e226988"
    },
    {
      "ReportId": 1,
      "CategoryId": 1,
      "PaymentMethodId": 1,
      "ExpenseDate": "2026-04-14T21:45:12.2362801+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": "dd111cab-c5a7-4354-a790-7e964e226988"
    }
  ]
}

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>48c93cb7-131f-4ff9-94dd-b05e425fae6b</CreateId>
  <Details>
    <CreateExpenseDetailRequest>
      <Amount>3</Amount>
      <AttachmentType>sample string 9</AttachmentType>
      <AttachmentUrl>sample string 8</AttachmentUrl>
      <CategoryId>1</CategoryId>
      <CreateId>dd111cab-c5a7-4354-a790-7e964e226988</CreateId>
      <Description>sample string 4</Description>
      <ExpenseDate>2026-04-14T21:45:12.2362801+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>dd111cab-c5a7-4354-a790-7e964e226988</CreateId>
      <Description>sample string 4</Description>
      <ExpenseDate>2026-04-14T21:45:12.2362801+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>10426a66-106c-4615-a269-48f6e7623956</EmployeeId>
  <Note>sample string 3</Note>
  <ReportDate>2026-04-14T21:45:12.2323787+07:00</ReportDate>
  <StoreId>2</StoreId>
  <TotalBudget>1</TotalBudget>
</CreateDailyExpenseReportRequest>

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

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>