POST api/sugarai/v1/pricing

查價

Request Information

URI Parameters

None.

Body Parameters

PricingRq
NameDescriptionTypeAdditional information
enquries

請求項目

Collection of EnqurieData

None.

logTrackGuid

日志標識

string

None.

Request Formats

application/json, text/json

Sample:
{
  "enquries": [
    {
      "seqNo": 1,
      "people": 2,
      "deptAirport": "sample string 3",
      "deptDate": "2024-12-23T19:55:19.225104+08:00",
      "arrDate": "2024-12-23T19:55:19.225104+08:00",
      "arrAirport": "sample string 6",
      "carrier": "sample string 7",
      "flightNumber": "sample string 8"
    },
    {
      "seqNo": 1,
      "people": 2,
      "deptAirport": "sample string 3",
      "deptDate": "2024-12-23T19:55:19.225104+08:00",
      "arrDate": "2024-12-23T19:55:19.225104+08:00",
      "arrAirport": "sample string 6",
      "carrier": "sample string 7",
      "flightNumber": "sample string 8"
    }
  ],
  "logTrackGuid": "sample string 1"
}

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

Response Information

Resource Description

查價

ReturnResultOfPricingRp
NameDescriptionTypeAdditional information
data

PricingRp

None.

code

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

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "pricings": [
      {
        "seqNo": 1,
        "productkey": "sample string 2",
        "tripType": 3,
        "totalBasePrice": 1.0,
        "totalDiscount": 1.0,
        "totalTax": 1.0,
        "totalPrice": 1.0,
        "totalCompensation": 1.0,
        "quotes": [
          {
            "quoteNumber": "sample string 1",
            "basePrice": 1.0,
            "orgBasePrice": 1.0,
            "discount": 1.0,
            "tax": 1.0,
            "orgTax": 1.0,
            "finalPrice": 1.0,
            "compensation": 1.0
          },
          {
            "quoteNumber": "sample string 1",
            "basePrice": 1.0,
            "orgBasePrice": 1.0,
            "discount": 1.0,
            "tax": 1.0,
            "orgTax": 1.0,
            "finalPrice": 1.0,
            "compensation": 1.0
          }
        ],
        "expiredAt": "2024-12-23T19:55:19.2563814+08:00"
      },
      {
        "seqNo": 1,
        "productkey": "sample string 2",
        "tripType": 3,
        "totalBasePrice": 1.0,
        "totalDiscount": 1.0,
        "totalTax": 1.0,
        "totalPrice": 1.0,
        "totalCompensation": 1.0,
        "quotes": [
          {
            "quoteNumber": "sample string 1",
            "basePrice": 1.0,
            "orgBasePrice": 1.0,
            "discount": 1.0,
            "tax": 1.0,
            "orgTax": 1.0,
            "finalPrice": 1.0,
            "compensation": 1.0
          },
          {
            "quoteNumber": "sample string 1",
            "basePrice": 1.0,
            "orgBasePrice": 1.0,
            "discount": 1.0,
            "tax": 1.0,
            "orgTax": 1.0,
            "finalPrice": 1.0,
            "compensation": 1.0
          }
        ],
        "expiredAt": "2024-12-23T19:55:19.2563814+08:00"
      }
    ]
  },
  "code": 1,
  "message": "sample string 2"
}