POST api/expense
Request Information
URI Parameters
None.
Body Parameters
ExpenseModelName | Description | Type | Additional information |
---|---|---|---|
ExpenseID | integer |
None. |
|
UserOrganizationID | string |
None. |
|
Year | string |
None. |
|
Month | integer |
None. |
|
EmployeeID | string |
None. |
|
EmployeeOrganizationLevel1ID | string |
None. |
|
EmployeeOrganizationLevel2ID | string |
None. |
|
EmployeeOrganizationID | string |
None. |
|
SegmentExpenseID | integer |
None. |
|
ExpenseGroupTypeID | integer |
None. |
|
ExpenseSubGroupTypeID | integer |
None. |
|
ExpenseTypeID | integer |
None. |
|
IncomeID | integer |
None. |
|
SegmentIncomeID | integer |
None. |
|
ExpensePercent | decimal number |
None. |
|
ExpenseInMonth | decimal number |
None. |
|
ExpenseInMonthWithSymbol | decimal number |
None. |
|
Minimum | decimal number |
None. |
|
Maximum | decimal number |
None. |
|
SocInsContributionID | integer |
None. |
|
PVDTypeID | integer |
None. |
|
Description | string |
None. |
|
MonthDivide | integer |
None. |
|
ExpenseForecast | decimal number |
None. |
|
SegmentExpense | SegmentExpenseModel |
None. |
|
ExpenseBackPay | Collection of ExpenseBackPayModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "ExpenseID": 1, "UserOrganizationID": "sample string 2", "Year": "sample string 3", "Month": 4, "EmployeeID": "sample string 5", "EmployeeOrganizationLevel1ID": "sample string 6", "EmployeeOrganizationLevel2ID": "sample string 7", "EmployeeOrganizationID": "sample string 8", "SegmentExpenseID": 9, "ExpenseGroupTypeID": 1, "ExpenseSubGroupTypeID": 10, "ExpenseTypeID": 1, "IncomeID": 1, "SegmentIncomeID": 1, "ExpensePercent": 1.0, "ExpenseInMonth": 1.0, "ExpenseInMonthWithSymbol": 1.0, "Minimum": 1.0, "Maximum": 1.0, "SocInsContributionID": 1, "PVDTypeID": 1, "Description": "sample string 11", "MonthDivide": 1, "ExpenseForecast": 1.0, "SegmentExpense": { "SegmentExpenseID": 1, "BudgetYear": "sample string 2", "OrganizationID": "sample string 3", "ExpenseGroupTypeID": 4, "ExpenseSubGroupTypeID": 5, "ExpenseTypeID": 6, "SegmentName": "sample string 7", "SegmentDescription": "sample string 8", "UseForEmployeeType": "sample string 9", "Segment1ID": 10, "Segment2ID": 11, "Segment3ID": 12, "Segment4ID": 13, "Segment5ID": 14, "Segment6ID": 15, "Segment7ID": 16, "Status": "sample string 17", "IDNormal": 1 }, "ExpenseBackPay": [ { "ExpenseBackPayYear": "sample string 1", "ExpenseBackPayMonth": 2, "EmployeeID": "sample string 3", "ExpenseSubGroupTypeID": 4, "OrderNumber": 5, "IncomeGroupTypeID": 6, "IncomeBackPayOrderNumber": 7, "UserOrganizationID": "sample string 8", "YearOld": "sample string 9", "MonthOld": 1, "IncomeIDNormalOld": 1, "ExpenseIDNormalOld": 1, "IncomeMoneyCommandOld": 1.0, "IncomeMoneyInMonthOld": 1.0, "ExpensePercentOld": 1.0, "ExpenseInMonthWithSymbolOld": 1.0, "IncomeMoneyInMonthBackPayOld": 1.0, "ExpenseInMonthWithSymbolBackPayOld": 1.0, "IncomeMoneyInMonthSumOld": 1.0, "ExpenseInMonthWithSymbolSumOld": 1.0, "YearNew": "sample string 10", "MonthNew": 1, "IncomeMoneyCommandNew": 1.0, "ExpenseMoneyCommandNew": 1.0, "IncomeMoneyInMonthNew": 1.0, "ExpenseMoneyInMonthNew": 1.0, "ChangeMoney": 1.0, "ExpenseChangeMoney": 1.0, "StartDateNew": "2025-04-04T08:22:38.3372079+07:00", "EndDateNew": "2025-04-04T08:22:38.3372079+07:00", "BackPayMoney": 1.0, "ExpenseBackPayMoney": 1.0, "SysCreateUserID": "sample string 11", "SysCreateDate": "2025-04-04T08:22:38.3372079+07:00", "SysCreateIP": "sample string 12", "SysUpdateUserID": "sample string 13", "SysUpdateDate": "2025-04-04T08:22:38.3372079+07:00", "SysUpdateIP": "sample string 14", "TypeFixStatus": 1, "NumberOfDayNew": 1, "NumberOfLastDayNew": 1, "NumberOfMonthNew": "sample string 15", "IncomeIDBackPay": 16 }, { "ExpenseBackPayYear": "sample string 1", "ExpenseBackPayMonth": 2, "EmployeeID": "sample string 3", "ExpenseSubGroupTypeID": 4, "OrderNumber": 5, "IncomeGroupTypeID": 6, "IncomeBackPayOrderNumber": 7, "UserOrganizationID": "sample string 8", "YearOld": "sample string 9", "MonthOld": 1, "IncomeIDNormalOld": 1, "ExpenseIDNormalOld": 1, "IncomeMoneyCommandOld": 1.0, "IncomeMoneyInMonthOld": 1.0, "ExpensePercentOld": 1.0, "ExpenseInMonthWithSymbolOld": 1.0, "IncomeMoneyInMonthBackPayOld": 1.0, "ExpenseInMonthWithSymbolBackPayOld": 1.0, "IncomeMoneyInMonthSumOld": 1.0, "ExpenseInMonthWithSymbolSumOld": 1.0, "YearNew": "sample string 10", "MonthNew": 1, "IncomeMoneyCommandNew": 1.0, "ExpenseMoneyCommandNew": 1.0, "IncomeMoneyInMonthNew": 1.0, "ExpenseMoneyInMonthNew": 1.0, "ChangeMoney": 1.0, "ExpenseChangeMoney": 1.0, "StartDateNew": "2025-04-04T08:22:38.3372079+07:00", "EndDateNew": "2025-04-04T08:22:38.3372079+07:00", "BackPayMoney": 1.0, "ExpenseBackPayMoney": 1.0, "SysCreateUserID": "sample string 11", "SysCreateDate": "2025-04-04T08:22:38.3372079+07:00", "SysCreateIP": "sample string 12", "SysUpdateUserID": "sample string 13", "SysUpdateDate": "2025-04-04T08:22:38.3372079+07:00", "SysUpdateIP": "sample string 14", "TypeFixStatus": 1, "NumberOfDayNew": 1, "NumberOfLastDayNew": 1, "NumberOfMonthNew": "sample string 15", "IncomeIDBackPay": 16 } ] }
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.