POST api/insurance/ace/GetInsuranceByCode

ACE保險詢價

Request Information

URI Parameters

None.

Body Parameters

TC.Contracts.AceInsurance.RequestModel.RqContract

RqContract
NameDescriptionTypeAdditional information
EffectiveDate

date

None.

ExpirationDate

date

None.

DestinationRqUid

string

None.

DestinationDesc

string

None.

InsuredPackageRqUid

string

None.

InsuredPackageDesc

string

None.

PlanRqUid

string

None.

PlanDesc

string

None.

People

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "EffectiveDate": "2024-12-23T20:04:35.9747494+08:00",
  "ExpirationDate": "2024-12-23T20:04:35.9747494+08:00",
  "DestinationRqUid": "sample string 3",
  "DestinationDesc": "sample string 4",
  "InsuredPackageRqUid": "sample string 5",
  "InsuredPackageDesc": "sample string 6",
  "PlanRqUid": "sample string 7",
  "PlanDesc": "sample string 8",
  "People": 9
}

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 'RqContract'.

Response Information

Resource Description

ACE保險詢價

ReturnResultOfGetInsuranceReponse
NameDescriptionTypeAdditional information
data

GetInsuranceReponse

None.

code

状态码:100成功,其他自定义

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "PolicyQuote": [
      {
        "EffectiveDate": "2024-12-23T20:04:36.1153175+08:00",
        "ExpirationDate": "2024-12-23T20:04:36.1153175+08:00",
        "CompanyProductCd": "sample string 3",
        "DestinationRqUid": "sample string 4",
        "DestinationDesc": "sample string 5",
        "Destination": 0,
        "InsuredPackageRqUid": "sample string 6",
        "InsuredPackageDesc": "sample string 7",
        "InsuredPackage": 0,
        "PlanRqUid": "sample string 8",
        "PlanDesc": "sample string 9",
        "Plan": 0,
        "QuoteAmount": 10.0,
        "Currency": "sample string 11",
        "CoverageConditionsInd": true,
        "InitialQuoteRequestDate": "2024-12-23T20:04:36.1153175+08:00",
        "QuoteValidUntilDate": "2024-12-23T20:04:36.1153175+08:00",
        "PolicyStatus": 0,
        "MessageStatus": 0,
        "MessageStatusDesc": "sample string 13",
        "DataExtensions": [
          {
            "Key": "sample string 1",
            "Value": "sample string 2",
            "Type": "sample string 3",
            "IdRef": "sample string 4"
          },
          {
            "Key": "sample string 1",
            "Value": "sample string 2",
            "Type": "sample string 3",
            "IdRef": "sample string 4"
          }
        ],
        "ItemAmt": 14.0,
        "DiscountAmt": 15.0,
        "GrantAmt": 16.0,
        "DiscountInfo": {
          "DiscountBy": "sample string 1",
          "DiscountValue": 2.0,
          "DiscountAmt": 3.0,
          "DiscountCode": "sample string 4"
        }
      },
      {
        "EffectiveDate": "2024-12-23T20:04:36.1153175+08:00",
        "ExpirationDate": "2024-12-23T20:04:36.1153175+08:00",
        "CompanyProductCd": "sample string 3",
        "DestinationRqUid": "sample string 4",
        "DestinationDesc": "sample string 5",
        "Destination": 0,
        "InsuredPackageRqUid": "sample string 6",
        "InsuredPackageDesc": "sample string 7",
        "InsuredPackage": 0,
        "PlanRqUid": "sample string 8",
        "PlanDesc": "sample string 9",
        "Plan": 0,
        "QuoteAmount": 10.0,
        "Currency": "sample string 11",
        "CoverageConditionsInd": true,
        "InitialQuoteRequestDate": "2024-12-23T20:04:36.1153175+08:00",
        "QuoteValidUntilDate": "2024-12-23T20:04:36.1153175+08:00",
        "PolicyStatus": 0,
        "MessageStatus": 0,
        "MessageStatusDesc": "sample string 13",
        "DataExtensions": [
          {
            "Key": "sample string 1",
            "Value": "sample string 2",
            "Type": "sample string 3",
            "IdRef": "sample string 4"
          },
          {
            "Key": "sample string 1",
            "Value": "sample string 2",
            "Type": "sample string 3",
            "IdRef": "sample string 4"
          }
        ],
        "ItemAmt": 14.0,
        "DiscountAmt": 15.0,
        "GrantAmt": 16.0,
        "DiscountInfo": {
          "DiscountBy": "sample string 1",
          "DiscountValue": 2.0,
          "DiscountAmt": 3.0,
          "DiscountCode": "sample string 4"
        }
      }
    ],
    "Message": "sample string 1",
    "Status": 2
  },
  "code": 1,
  "message": "sample string 2"
}