POST jxc_api/CodeRule/AddCodeRule

Request Information

URI Parameters

None.

Body Parameters

CodeRuleInfo
NameDescriptionTypeAdditional information
Id

string

None.

AsId

integer

None.

Name

string

None.

BillType

BillType

None.

Prefix

string

None.

DateRule

string

None.

Digits

integer

None.

StartValue

integer

None.

IsEnable

boolean

None.

RefreshType

RefreshTypeEnum

None.

Dynamic_Encode

boolean

None.

Multiplex_Encode

boolean

None.

Modifiable_Encode

boolean

None.

CreatedBy

integer

None.

CreatedDate

date

None.

ModifiedBy

integer

None.

ModifiedDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "AsId": 2,
  "Name": "sample string 3",
  "BillType": 1010,
  "Prefix": "sample string 4",
  "DateRule": "sample string 5",
  "Digits": 6,
  "StartValue": 7,
  "IsEnable": true,
  "RefreshType": 1,
  "Dynamic_Encode": true,
  "Multiplex_Encode": true,
  "Modifiable_Encode": true,
  "CreatedBy": 12,
  "CreatedDate": "2024-11-24 01:39:02",
  "ModifiedBy": 14,
  "ModifiedDate": "2024-11-24 01:39:02"
}

application/xml, text/xml

Sample:
<CodeRuleInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model">
  <_x003C_AsId_x003E_k__BackingField>2</_x003C_AsId_x003E_k__BackingField>
  <_x003C_BillType_x003E_k__BackingField>Purchase</_x003C_BillType_x003E_k__BackingField>
  <_x003C_CreatedBy_x003E_k__BackingField>12</_x003C_CreatedBy_x003E_k__BackingField>
  <_x003C_CreatedDate_x003E_k__BackingField>2024-11-24T01:39:02.2816169+08:00</_x003C_CreatedDate_x003E_k__BackingField>
  <_x003C_DateRule_x003E_k__BackingField>sample string 5</_x003C_DateRule_x003E_k__BackingField>
  <_x003C_Digits_x003E_k__BackingField>6</_x003C_Digits_x003E_k__BackingField>
  <_x003C_Dynamic_Encode_x003E_k__BackingField>true</_x003C_Dynamic_Encode_x003E_k__BackingField>
  <_x003C_Id_x003E_k__BackingField>sample string 1</_x003C_Id_x003E_k__BackingField>
  <_x003C_IsEnable_x003E_k__BackingField>true</_x003C_IsEnable_x003E_k__BackingField>
  <_x003C_Modifiable_Encode_x003E_k__BackingField>true</_x003C_Modifiable_Encode_x003E_k__BackingField>
  <_x003C_ModifiedBy_x003E_k__BackingField>14</_x003C_ModifiedBy_x003E_k__BackingField>
  <_x003C_ModifiedDate_x003E_k__BackingField>2024-11-24T01:39:02.2816169+08:00</_x003C_ModifiedDate_x003E_k__BackingField>
  <_x003C_Multiplex_Encode_x003E_k__BackingField>true</_x003C_Multiplex_Encode_x003E_k__BackingField>
  <_x003C_Name_x003E_k__BackingField>sample string 3</_x003C_Name_x003E_k__BackingField>
  <_x003C_Prefix_x003E_k__BackingField>sample string 4</_x003C_Prefix_x003E_k__BackingField>
  <_x003C_RefreshType_x003E_k__BackingField>日</_x003C_RefreshType_x003E_k__BackingField>
  <_x003C_StartValue_x003E_k__BackingField>7</_x003C_StartValue_x003E_k__BackingField>
</CodeRuleInfo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MessageModel
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

Data

Object

None.

StatusCode

StatusCode

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "Data": {},
  "StatusCode": 100
}

application/xml, text/xml

Sample:
<MessageModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model">
  <_x003C_Data_x003E_k__BackingField />
  <_x003C_Message_x003E_k__BackingField>sample string 2</_x003C_Message_x003E_k__BackingField>
  <_x003C_StatusCode_x003E_k__BackingField>CONTINUE</_x003C_StatusCode_x003E_k__BackingField>
  <_x003C_Success_x003E_k__BackingField>true</_x003C_Success_x003E_k__BackingField>
</MessageModel>