POST Api/Invoke/QuotationsExtract

运价直联政策提取

Request Information

URI Parameters

None.

Body Parameters

请求模型

SpeedPower.Utility.Models.Project.SQuery.Service.Quotations.QuotationExtractModel
NameDescriptionTypeAdditional information
SiteCode

站点代码

string

Required

String length: inclusive between 0 and 20

Carriers

航司列表

Collection of string

Required

Departures

出发地集合

Collection of string

Required

Arrivals

到达地集合

Collection of string

Required

DepartureDate

出发日期(日期型)

date

None.

Request Formats

application/json, text/json

Sample:
{
  "SiteCode": "sample string 1",
  "Carriers": [
    "sample string 1",
    "sample string 2"
  ],
  "Departures": [
    "sample string 1",
    "sample string 2"
  ],
  "Arrivals": [
    "sample string 1",
    "sample string 2"
  ],
  "DepartureDate": "2024-12-24T02:09:54.0392205+08:00"
}

Response Information

Resource Description

运价直联政策提取

Collection of SpeedPower.Utility.Models.Project.SQuery.Service.Quotations.GetQuotationModel
NameDescriptionTypeAdditional information
Time

时间

date

None.

Creater

创建人

string

String length: inclusive between 0 and 128

DataSource

政策添加方式

SpeedPower.Utility.Models.Project.SQuery.Enums.QuotationSourceType

None.

ID

政策ID

globally unique identifier

None.

Status

政策状态

SpeedPower.Utility.Models.Project.SQuery.Enums.QuotationStatusType

None.

Extensions

扩展模型

SpeedPower.Utility.Models.Project.SQuery.Service.Quotations.GetExtensionModel

None.

SiteCode

站点代码

string

Required

String length: inclusive between 0 and 20

Carrier

航空公司

string

Required

String length: inclusive between 0 and 2

DepartureAirport

出发机场

string

Required

String length: inclusive between 0 and 3

ArrivalAirport

到达机场

string

Required

String length: inclusive between 0 and 3

FlightNumbers

适用航班(*或者FligthNo1,FligthNo2)

string

String length: inclusive between 0 and 500

CabinCodes

适用舱位(*或者Cabin1,Cabin2)

string

String length: inclusive between 0 and 100

CabinNames

适用舱位名称((*或者name1,name2))

string

String length: inclusive between 0 and 500

BeforeDays

提天售卖天数

integer

None.

KeepMoney

留钱(10.99元)

decimal number

None.

ReturnRebate

返点(5.5返点为5.5个点)

decimal number

None.

AddPrintPrice

票面加钱值(100元)

integer

None.

AddPrintRebate

票面加点值(5.5个点)

decimal number

None.

ProfitMoney

比价范围(15.26元)

decimal number

None.

IssueDate

售票开始日期

date

None.

ExpiryDate

售票结束日期

date

None.

TravelIssueDate

旅行有效开始日期

date

None.

TravelExpiryDate

旅行有效结束日期

date

None.

ProviderCodes

适用数据源代码(CODE1,CODE2)

string

String length: inclusive between 0 and 500

PurchaseTag

生单路由标识

string

String length: inclusive between 0 and 20

ProductMark

产品标识

string

String length: inclusive between 0 and 500

ExtraSections

计算扩展项([50(销售价起价)-100(销售价结束价),10(留钱),4.6(反点),100(额外加票面价),5.5(额外票面加点),4.5(比价范围)][100-200,10,4.6,100,5.5,4.5])

string

None.

Remarks

政策备注

string

String length: inclusive between 0 and 500

Response Formats

application/json, text/json

Sample:
[
  {
    "Time": "2024-12-24T02:09:54.0392205+08:00",
    "Creater": "sample string 2",
    "DataSource": 0,
    "ID": "e60df6a2-3c2c-4ab7-a31d-c1daa4b3f0c1",
    "Status": 0,
    "Extensions": {
      "ID": "66098c71-b51a-4bb5-a847-c1cc38e13af9",
      "ExtraMoney": 2.1,
      "ExtraRebate": 3.1,
      "ExtraPrintPrice": 4,
      "ExtraPrintRebate": 5.1,
      "ExtraProfitMoney": 6.1
    },
    "SiteCode": "sample string 4",
    "Carrier": "sample string 5",
    "DepartureAirport": "sample string 6",
    "ArrivalAirport": "sample string 7",
    "FlightNumbers": "sample string 8",
    "CabinCodes": "sample string 9",
    "CabinNames": "sample string 10",
    "BeforeDays": 11,
    "KeepMoney": 12.1,
    "ReturnRebate": 13.1,
    "AddPrintPrice": 14,
    "AddPrintRebate": 15.1,
    "ProfitMoney": 16.1,
    "IssueDate": "2024-12-24T02:09:54.0392205+08:00",
    "ExpiryDate": "2024-12-24T02:09:54.0392205+08:00",
    "TravelIssueDate": "2024-12-24T02:09:54.0392205+08:00",
    "TravelExpiryDate": "2024-12-24T02:09:54.0392205+08:00",
    "ProviderCodes": "sample string 21",
    "PurchaseTag": "sample string 22",
    "ProductMark": "sample string 23",
    "ExtraSections": "sample string 24",
    "Remarks": "sample string 25"
  },
  {
    "Time": "2024-12-24T02:09:54.0392205+08:00",
    "Creater": "sample string 2",
    "DataSource": 0,
    "ID": "e60df6a2-3c2c-4ab7-a31d-c1daa4b3f0c1",
    "Status": 0,
    "Extensions": {
      "ID": "66098c71-b51a-4bb5-a847-c1cc38e13af9",
      "ExtraMoney": 2.1,
      "ExtraRebate": 3.1,
      "ExtraPrintPrice": 4,
      "ExtraPrintRebate": 5.1,
      "ExtraProfitMoney": 6.1
    },
    "SiteCode": "sample string 4",
    "Carrier": "sample string 5",
    "DepartureAirport": "sample string 6",
    "ArrivalAirport": "sample string 7",
    "FlightNumbers": "sample string 8",
    "CabinCodes": "sample string 9",
    "CabinNames": "sample string 10",
    "BeforeDays": 11,
    "KeepMoney": 12.1,
    "ReturnRebate": 13.1,
    "AddPrintPrice": 14,
    "AddPrintRebate": 15.1,
    "ProfitMoney": 16.1,
    "IssueDate": "2024-12-24T02:09:54.0392205+08:00",
    "ExpiryDate": "2024-12-24T02:09:54.0392205+08:00",
    "TravelIssueDate": "2024-12-24T02:09:54.0392205+08:00",
    "TravelExpiryDate": "2024-12-24T02:09:54.0392205+08:00",
    "ProviderCodes": "sample string 21",
    "PurchaseTag": "sample string 22",
    "ProductMark": "sample string 23",
    "ExtraSections": "sample string 24",
    "Remarks": "sample string 25"
  }
]