POST api/BX/PolicyPremium

Request Information

URI Parameters

None.

Body Parameters

RequestCreateBX
NameDescriptionTypeAdditional information
ProductCode

string

None.

StartDate

date

None.

EndDate

date

None.

InsureName

string

None.

InsureSex

EnumSex

None.

InsureBirthday

date

None.

InsureCardType

EnumCardType

None.

InsureCardNumber

string

None.

InsureTelphone

string

None.

BXOrgid

string

None.

BXName

string

None.

BXPassword

string

None.

OutOrderID

string

None.

members

Collection of RequestBXMember

None.

PolicyPremium

decimal number

None.

by1

string

None.

ShortName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ProductCode": "sample string 1",
  "StartDate": "2024-11-14T18:12:43.4176323+08:00",
  "EndDate": "2024-11-14T18:12:43.4176323+08:00",
  "InsureName": "sample string 2",
  "InsureSex": 0,
  "InsureBirthday": "2024-11-14T18:12:43.4176323+08:00",
  "InsureCardType": 0,
  "InsureCardNumber": "sample string 4",
  "InsureTelphone": "sample string 5",
  "BXOrgid": "sample string 6",
  "BXName": "sample string 7",
  "BXPassword": "sample string 8",
  "OutOrderID": "sample string 9",
  "members": [
    {
      "Name": "sample string 1",
      "Sex": 0,
      "Birthday": "2024-11-14T18:12:43.4176323+08:00",
      "CardType": 0,
      "CardNumber": "sample string 3",
      "IsChinese": "sample string 4"
    },
    {
      "Name": "sample string 1",
      "Sex": 0,
      "Birthday": "2024-11-14T18:12:43.4176323+08:00",
      "CardType": 0,
      "CardNumber": "sample string 3",
      "IsChinese": "sample string 4"
    }
  ],
  "PolicyPremium": 1.1,
  "by1": "sample string 10",
  "ShortName": "sample string 11"
}

application/xml, text/xml

Sample:
<RequestCreateBX xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.Request.BX">
  <BXName>sample string 7</BXName>
  <BXOrgid>sample string 6</BXOrgid>
  <BXPassword>sample string 8</BXPassword>
  <EndDate>2024-11-14T18:12:43.4176323+08:00</EndDate>
  <InsureBirthday>2024-11-14T18:12:43.4176323+08:00</InsureBirthday>
  <InsureCardNumber>sample string 4</InsureCardNumber>
  <InsureCardType>身份证</InsureCardType>
  <InsureName>sample string 2</InsureName>
  <InsureSex>末知</InsureSex>
  <InsureTelphone>sample string 5</InsureTelphone>
  <OutOrderID>sample string 9</OutOrderID>
  <PolicyPremium>1.1</PolicyPremium>
  <ProductCode>sample string 1</ProductCode>
  <ShortName>sample string 11</ShortName>
  <StartDate>2024-11-14T18:12:43.4176323+08:00</StartDate>
  <by1>sample string 10</by1>
  <members>
    <RequestBXMember>
      <Birthday>2024-11-14T18:12:43.4176323+08:00</Birthday>
      <CardNumber>sample string 3</CardNumber>
      <CardType>身份证</CardType>
      <IsChinese>sample string 4</IsChinese>
      <Name>sample string 1</Name>
      <Sex>末知</Sex>
    </RequestBXMember>
    <RequestBXMember>
      <Birthday>2024-11-14T18:12:43.4176323+08:00</Birthday>
      <CardNumber>sample string 3</CardNumber>
      <CardType>身份证</CardType>
      <IsChinese>sample string 4</IsChinese>
      <Name>sample string 1</Name>
      <Sex>末知</Sex>
    </RequestBXMember>
  </members>
</RequestCreateBX>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'RequestCreateBX'.

Response Information

Resource Description

ExecuteResult
NameDescriptionTypeAdditional information
Success

boolean

None.

IsSuccess

boolean

None.

Msg

string

None.

Code

integer

None.

StatusCode

string

None.

Errors

Dictionary of string [key] and string [value]

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "IsSuccess": true,
  "Msg": "sample string 3",
  "Code": 4,
  "StatusCode": "sample string 5",
  "Errors": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  }
}

application/xml, text/xml

Sample:
<ExecuteResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.Core">
  <Code>4</Code>
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Errors>
  <IsSuccess>true</IsSuccess>
  <Msg>sample string 3</Msg>
  <StatusCode>sample string 5</StatusCode>
  <Success>true</Success>
</ExecuteResult>