PUT api/type/{code}/{period}?isContinue={isContinue}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| code | string |
Required |
|
| period | TaxPeriod |
Required |
|
| isContinue | boolean |
Required |
Body Parameters
TaxTypeItem| Name | Description | Type | Additional information |
|---|---|---|---|
| TypeId | globally unique identifier |
None. |
|
| ParentTypeId | globally unique identifier |
None. |
|
| ParentCode | string |
None. |
|
| ParentTaxPeriod | TaxPeriod |
None. |
|
| AsId | integer |
None. |
|
| ProjectCode | string |
Required |
|
| ProjectName | string |
None. |
|
| DeclarationType | integer |
Required |
|
| TaxPeriod | TaxPeriod |
Required |
|
| Option | TaxTypeOption |
Required |
|
| ConfirmStartDate | date |
Required |
|
| ConfirmEndDate | date |
Required |
|
| Source | TaxTypeSource |
None. |
|
| Order | integer |
None. |
|
| EntryType | EntryType |
None. |
|
| DeclarationTypeName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"typeId": "f470c2f4-017c-46f5-960f-26618567a531",
"parentTypeId": "c2d3ae5f-5329-4b12-847c-96291492ffc8",
"parentCode": "sample string 2",
"parentTaxPeriod": 0,
"asId": 3,
"projectCode": "sample string 4",
"projectName": "sample string 5",
"declarationType": 6,
"taxPeriod": 0,
"option": 0,
"confirmStartDate": "2026-03-06",
"confirmEndDate": "2026-03-06",
"source": 0,
"order": 9,
"entryType": 0,
"declarationTypeName": "sample string 5申报表"
}
application/xml, text/xml
Sample:
<TaxTypeItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonAccTax.Declaration.Shared.Models"> <_declarationTypeName i:nil="true" /> <_x003C_AsId_x003E_k__BackingField>3</_x003C_AsId_x003E_k__BackingField> <_x003C_ConfirmEndDate_x003E_k__BackingField>2026-03-06T16:55:47.3047685+08:00</_x003C_ConfirmEndDate_x003E_k__BackingField> <_x003C_ConfirmStartDate_x003E_k__BackingField>2026-03-06T16:55:47.3047685+08:00</_x003C_ConfirmStartDate_x003E_k__BackingField> <_x003C_DeclarationType_x003E_k__BackingField>6</_x003C_DeclarationType_x003E_k__BackingField> <_x003C_EntryType_x003E_k__BackingField>品目</_x003C_EntryType_x003E_k__BackingField> <_x003C_Option_x003E_k__BackingField>申报</_x003C_Option_x003E_k__BackingField> <_x003C_Order_x003E_k__BackingField>9</_x003C_Order_x003E_k__BackingField> <_x003C_ParentCode_x003E_k__BackingField>sample string 2</_x003C_ParentCode_x003E_k__BackingField> <_x003C_ParentTaxPeriod_x003E_k__BackingField>月</_x003C_ParentTaxPeriod_x003E_k__BackingField> <_x003C_ParentTypeId_x003E_k__BackingField>c2d3ae5f-5329-4b12-847c-96291492ffc8</_x003C_ParentTypeId_x003E_k__BackingField> <_x003C_ProjectCode_x003E_k__BackingField>sample string 4</_x003C_ProjectCode_x003E_k__BackingField> <_x003C_ProjectName_x003E_k__BackingField>sample string 5</_x003C_ProjectName_x003E_k__BackingField> <_x003C_Source_x003E_k__BackingField>FromTaxBureau</_x003C_Source_x003E_k__BackingField> <_x003C_TaxPeriod_x003E_k__BackingField>月</_x003C_TaxPeriod_x003E_k__BackingField> <_x003C_TypeId_x003E_k__BackingField>f470c2f4-017c-46f5-960f-26618567a531</_x003C_TypeId_x003E_k__BackingField> </TaxTypeItem>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseDataOfBoolean| Name | Description | Type | Additional information |
|---|---|---|---|
| State | ResponseState |
None. |
|
| SubState | ResponseSubStateCode |
None. |
|
| Data | boolean |
None. |
|
| Msg | string |
None. |
|
| TaskType | TaxTaskType |
None. |
Response Formats
application/json, text/json
Sample:
{
"state": 1000,
"subState": 0,
"data": true,
"msg": "sample string 2",
"taskType": 3
}
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> <Msg>sample string 2</Msg> <State>OK</State> <SubState>OK</SubState> <TaskType>已认证抵扣发票</TaskType> </ResponseDataOfboolean>