PUT api/basic/formula-config

Request Information

URI Parameters

None.

Body Parameters

TaxCustomFormulaConfigDto
NameDescriptionTypeAdditional information
Scene

TaxCustomFormulaScene

None.

ProjectCode

string

None.

TaxPeriod

TaxPeriod

None.

ItemKey

string

None.

ItemName

string

None.

IsDefault

boolean

None.

EnableYearAmount

boolean

None.

Items

Collection of TaxCustomFormulaItemDto

None.

FetchRuleOptions

Collection of TaxCustomFormulaOptionDto

None.

Request Formats

application/json, text/json

Sample:
{
  "scene": 1,
  "projectCode": "sample string 1",
  "taxPeriod": 0,
  "itemKey": "sample string 2",
  "itemName": "sample string 3",
  "isDefault": true,
  "enableYearAmount": true,
  "items": [
    {
      "asubId": 1,
      "asubCode": "sample string 2",
      "asubName": "sample string 3",
      "operator": 1,
      "fetchRule": 1,
      "yearFetchRule": 1,
      "sort": 4,
      "currentAmount": 5.0,
      "yearAmount": 6.0
    },
    {
      "asubId": 1,
      "asubCode": "sample string 2",
      "asubName": "sample string 3",
      "operator": 1,
      "fetchRule": 1,
      "yearFetchRule": 1,
      "sort": 4,
      "currentAmount": 5.0,
      "yearAmount": 6.0
    }
  ],
  "fetchRuleOptions": [
    {
      "value": 1,
      "name": "sample string 2"
    },
    {
      "value": 1,
      "name": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<TaxCustomFormulaConfigDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonAccTax.Declaration.Shared.Dtos.BasicInfo">
  <_x003C_EnableYearAmount_x003E_k__BackingField>true</_x003C_EnableYearAmount_x003E_k__BackingField>
  <_x003C_FetchRuleOptions_x003E_k__BackingField>
    <TaxCustomFormulaOptionDto>
      <_x003C_Name_x003E_k__BackingField>sample string 2</_x003C_Name_x003E_k__BackingField>
      <_x003C_Value_x003E_k__BackingField>1</_x003C_Value_x003E_k__BackingField>
    </TaxCustomFormulaOptionDto>
    <TaxCustomFormulaOptionDto>
      <_x003C_Name_x003E_k__BackingField>sample string 2</_x003C_Name_x003E_k__BackingField>
      <_x003C_Value_x003E_k__BackingField>1</_x003C_Value_x003E_k__BackingField>
    </TaxCustomFormulaOptionDto>
  </_x003C_FetchRuleOptions_x003E_k__BackingField>
  <_x003C_IsDefault_x003E_k__BackingField>true</_x003C_IsDefault_x003E_k__BackingField>
  <_x003C_ItemKey_x003E_k__BackingField>sample string 2</_x003C_ItemKey_x003E_k__BackingField>
  <_x003C_ItemName_x003E_k__BackingField>sample string 3</_x003C_ItemName_x003E_k__BackingField>
  <_x003C_Items_x003E_k__BackingField>
    <TaxCustomFormulaItemDto>
      <_x003C_AsubCode_x003E_k__BackingField>sample string 2</_x003C_AsubCode_x003E_k__BackingField>
      <_x003C_AsubId_x003E_k__BackingField>1</_x003C_AsubId_x003E_k__BackingField>
      <_x003C_AsubName_x003E_k__BackingField>sample string 3</_x003C_AsubName_x003E_k__BackingField>
      <_x003C_CurrentAmount_x003E_k__BackingField>5</_x003C_CurrentAmount_x003E_k__BackingField>
      <_x003C_FetchRule_x003E_k__BackingField>Balance</_x003C_FetchRule_x003E_k__BackingField>
      <_x003C_Operator_x003E_k__BackingField>Plus</_x003C_Operator_x003E_k__BackingField>
      <_x003C_Sort_x003E_k__BackingField>4</_x003C_Sort_x003E_k__BackingField>
      <_x003C_YearAmount_x003E_k__BackingField>6</_x003C_YearAmount_x003E_k__BackingField>
      <_x003C_YearFetchRule_x003E_k__BackingField>Balance</_x003C_YearFetchRule_x003E_k__BackingField>
    </TaxCustomFormulaItemDto>
    <TaxCustomFormulaItemDto>
      <_x003C_AsubCode_x003E_k__BackingField>sample string 2</_x003C_AsubCode_x003E_k__BackingField>
      <_x003C_AsubId_x003E_k__BackingField>1</_x003C_AsubId_x003E_k__BackingField>
      <_x003C_AsubName_x003E_k__BackingField>sample string 3</_x003C_AsubName_x003E_k__BackingField>
      <_x003C_CurrentAmount_x003E_k__BackingField>5</_x003C_CurrentAmount_x003E_k__BackingField>
      <_x003C_FetchRule_x003E_k__BackingField>Balance</_x003C_FetchRule_x003E_k__BackingField>
      <_x003C_Operator_x003E_k__BackingField>Plus</_x003C_Operator_x003E_k__BackingField>
      <_x003C_Sort_x003E_k__BackingField>4</_x003C_Sort_x003E_k__BackingField>
      <_x003C_YearAmount_x003E_k__BackingField>6</_x003C_YearAmount_x003E_k__BackingField>
      <_x003C_YearFetchRule_x003E_k__BackingField>Balance</_x003C_YearFetchRule_x003E_k__BackingField>
    </TaxCustomFormulaItemDto>
  </_x003C_Items_x003E_k__BackingField>
  <_x003C_ProjectCode_x003E_k__BackingField>sample string 1</_x003C_ProjectCode_x003E_k__BackingField>
  <_x003C_Scene_x003E_k__BackingField>EntIncomeQuarterSalary</_x003C_Scene_x003E_k__BackingField>
  <_x003C_TaxPeriod_x003E_k__BackingField>月</_x003C_TaxPeriod_x003E_k__BackingField>
</TaxCustomFormulaConfigDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseDataOfBoolean
NameDescriptionTypeAdditional information
State

ResponseState

None.

SubState

ResponseSubStateCode

None.

Data

boolean

None.

Msg

string

None.

TaskType

TaxTaskType

None.

TaskStyle

integer

None.

DeniedPermission

string

None.

Response Formats

application/json, text/json

Sample:
{
  "state": 1000,
  "subState": 0,
  "data": true,
  "msg": "sample string 2",
  "taskType": 3,
  "taskStyle": 3,
  "deniedPermission": "sample string 4"
}

application/xml, text/xml

Sample:
<ResponseDataOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonAcc.TaxDeclaration.Service.Models">
  <Data>true</Data>
  <DeniedPermission>sample string 4</DeniedPermission>
  <Msg>sample string 2</Msg>
  <State>OK</State>
  <SubState>OK</SubState>
  <TaskStyle>3</TaskStyle>
  <TaskType>已认证抵扣发票</TaskType>
</ResponseDataOfboolean>