expense-rules
Operations addressed under /expense-rules — 9 operations.
create-expense-rule
Add Authorization: Bearer <token> yourself — generated samples and Try it do not attach a credential.
Response body, read from the service source
The route returns AuraCommandDto<Guid>, which is the response body itself and not a wrapper around one: the framework declares it as a class with a single property, Id, of type Guid. A caller gets a JSON OBJECT with one field, not a bare value. The field is id on the wire.
| Field | Name on the wire | Declared type | Nullable |
|---|---|---|---|
Id | id | Guid | no |
Member names are the service's declaration names.
Error codes this operation is known to raise
| Code | Status | Meaning |
|---|---|---|
ERR_EXPNS_26 | 400 | EXPENSE_RULE_MUST_BE_UNIQUE |
create-expense-rule › Request Body
endDateformulaDefinitionIdruleCoderuleNameruleTypePermitted values — validated against the expense_rule_type parameter.
| Value | Meaning |
|---|---|
1 | calculation |
Permitted values — validated against the expense_rule_type parameter. The service rejects any other value.
| Value | Token | Labels |
|---|---|---|
1 | calculation | en: calculation · ar: حساب |
startDatecreate-expense-rule › Responses
Success. An exact, uniquely bound route registration declares the command-id envelope, so this schema is the code-backed body contract.
idIdentifier returned by the command.
get-expense-rule-map-list
Add Authorization: Bearer <token> yourself — generated samples and Try it do not attach a credential.
Response body, read from the service source
The route declares its response as IEnumerable<ExpenseRuleMapDto>.
| Field | Declared type | Nullable |
|---|---|---|
Id | Guid | no |
ExpenseRuleId | Guid | no |
ExpenseItemId | Guid | no |
Member names are the service's declaration names.
query Parameters
orderByorderSortpageIndexpageSizeget-expense-rule-map-list › Responses
Success. Returns a collection of records. Of 135 operations in this state that were probed (measured against a reference deployment on parameterless GET routes only), 118 answered and 118 returned a bare JSON array.
Array of catalog-declared response records.
expenseItemIdexpenseRuleIdupdate-expense-rule
Add Authorization: Bearer <token> yourself — generated samples and Try it do not attach a credential.
Error codes this operation is known to raise
| Code | Status | Meaning |
|---|---|---|
ERR_EXPNS_29 | 400 | EXPENSE_RULE_NOT_FOUND |
path Parameters
idupdate-expense-rule › Request Body
endDateformulaDefinitionIdruleNameruleTypePermitted values — validated against the expense_rule_type parameter.
| Value | Meaning |
|---|---|
1 | calculation |
Permitted values — validated against the expense_rule_type parameter. The service rejects any other value.
| Value | Token | Labels |
|---|---|---|
1 | calculation | en: calculation · ar: حساب |
startDateupdate-expense-rule › Responses
Success. The catalog declares no response fields for this operation. The body is UNKNOWN CONTENT. The response type this route registers was read from the service's own source and is published on this operation as x-aura-code-response.
delete-expense-rule
Add Authorization: Bearer <token> yourself — generated samples and Try it do not attach a credential.
Error codes this operation is known to raise
| Code | Status | Meaning |
|---|---|---|
ERR_EXPNS_29 | 400 | EXPENSE_RULE_NOT_FOUND |
ERR_EXPNS_31 | 400 | EXPENSE_RULE_ALSO_DEFINED_ON_THE_RULE_MAP |
path Parameters
iddelete-expense-rule › Responses
Success. The catalog declares no response fields for this operation. The body is UNKNOWN CONTENT. The response type this route registers was read from the service's own source and is published on this operation as x-aura-code-response.
execute-expense-rule-formula
Add Authorization: Bearer <token> yourself — generated samples and Try it do not attach a credential.
Response body, read from the service source
The route declares its response as ExpenseRuleFormulaResultDto.
| Field | Declared type | Nullable |
|---|---|---|
FormulaResult | Dictionary<string, dynamic> | no |
Member names are the service's declaration names.
path Parameters
idexecute-expense-rule-formula › Responses
Success. An exact, uniquely bound route registration classifies this response as a single-record.
create-expense-rule-map
Add Authorization: Bearer <token> yourself — generated samples and Try it do not attach a credential.
Response body, read from the service source
The route returns AuraCommandDto<Guid>, which is the response body itself and not a wrapper around one: the framework declares it as a class with a single property, Id, of type Guid. A caller gets a JSON OBJECT with one field, not a bare value. The field is id on the wire.
| Field | Name on the wire | Declared type | Nullable |
|---|---|---|---|
Id | id | Guid | no |
Member names are the service's declaration names.
Error codes this operation is known to raise
| Code | Status | Meaning |
|---|---|---|
ERR_EXPNS_28 | 400 | EXPENSE_ITEM_ALREADY_ADDED_THIS_RULE_MAP |
ERR_EXPNS_29 | 400 | EXPENSE_RULE_NOT_FOUND |
path Parameters
idcreate-expense-rule-map › Responses
Success. An exact, uniquely bound route registration declares the command-id envelope, so this schema is the code-backed body contract.
idIdentifier returned by the command.
get-expense-rule-map-by-id
Add Authorization: Bearer <token> yourself — generated samples and Try it do not attach a credential.
Response body, read from the service source
The route declares its response as ExpenseRuleMapDto.
| Field | Declared type | Nullable |
|---|---|---|
Id | Guid | no |
ExpenseRuleId | Guid | no |
ExpenseItemId | Guid | no |
Member names are the service's declaration names.
Error codes this operation is known to raise
| Code | Status | Meaning |
|---|---|---|
ERR_EXPNS_29 | 400 | EXPENSE_RULE_NOT_FOUND |
ERR_EXPNS_30 | 400 | EXPENSE_RULE_MAP_NOT_FOUND |
path Parameters
idexpenseRuleMapIdget-expense-rule-map-by-id › Responses
Success. An exact, uniquely bound route registration classifies this response as a single-record.
update-expense-rule-map
Add Authorization: Bearer <token> yourself — generated samples and Try it do not attach a credential.
Error codes this operation is known to raise
| Code | Status | Meaning |
|---|---|---|
ERR_EXPNS_29 | 400 | EXPENSE_RULE_NOT_FOUND |
ERR_EXPNS_30 | 400 | EXPENSE_RULE_MAP_NOT_FOUND |
path Parameters
idexpenseRuleMapIdupdate-expense-rule-map › Responses
Success. The catalog declares no response fields for this operation. The body is UNKNOWN CONTENT. The response type this route registers was read from the service's own source and is published on this operation as x-aura-code-response.
delete-expense-rule-map
Add Authorization: Bearer <token> yourself — generated samples and Try it do not attach a credential.
Error codes this operation is known to raise
| Code | Status | Meaning |
|---|---|---|
ERR_EXPNS_29 | 400 | EXPENSE_RULE_NOT_FOUND |
ERR_EXPNS_30 | 400 | EXPENSE_RULE_MAP_NOT_FOUND |
path Parameters
idexpenseRuleMapIddelete-expense-rule-map › Responses
Success. The catalog declares no response fields for this operation. The body is UNKNOWN CONTENT. The response type this route registers was read from the service's own source and is published on this operation as x-aura-code-response.