POST Api/Service/Eterm/{GroupId}/PAT

执行PAT程序

Request Information

URI Parameters

NameDescriptionTypeAdditional information
GroupId

组ID

string

Required

Body Parameters

请求模型

SpeedPower.Utility.Models.Service.Eterms.Service.PNR.PTPNR
NameDescriptionTypeAdditional information
ClientCode

大客户编码(可为空最大为20位)

string

String length: inclusive between 0 and 20

PNR

小编码

string

Required

String length: inclusive between 6 and 6

Request Formats

application/json, text/json

Sample:
{
  "ClientCode": "sample string 1",
  "PNR": "sample string 2"
}

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="ClientCode"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PNR"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

执行PAT程序

SpeedPower.Utility.Models.Service.Eterms.Service.PNR.PATResponseModel
NameDescriptionTypeAdditional information
PATContent

结果信息

SpeedPower.Utility.Models.Service.Eterms.Service.PNR.PATContent

None.

Request

SpeedPower.Utility.Models.Service.Eterms.Service.PNR.PTPNR

None.

Account

SpeedPower.Utility.Models.Service.Eterms.Account.EtermAccount

None.

DataSource

string

Required

String length: inclusive between 0 and 50

Expand

Dictionary of string [key] and string [value]

None.

Responses

Collection of SpeedPower.Utility.Models.Service.Eterms.Service.CommandResponseModel

None.

Succeed

操作是否成功

boolean

None.

Message

操作消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "PATContent": {
    "RTContent": {
      "IEPNR": {
        "PNR": "sample string 1"
      },
      "IBPNR": {
        "PNR": "sample string 1"
      },
      "OfficeNo": "sample string 1",
      "LimitedTime": "2024-12-24T03:22:34.9023064+08:00",
      "TktlSerialNo": "sample string 3",
      "ContactNumber": "sample string 4",
      "FNContents": [
        "sample string 1",
        "sample string 2"
      ],
      "ContentString": "sample string 5",
      "Company": {
        "Zone": "sample string 1",
        "Name": "sample string 2"
      },
      "Segments": [
        {
          "Sequence": 1,
          "ItineraryNo": "sample string 2",
          "DepartureTime": "2024-12-24T03:22:34.9023064+08:00",
          "ArrivalTime": "2024-12-24T03:22:34.9023064+08:00",
          "Status": "sample string 5",
          "DepartureTerminal": "sample string 6",
          "ArrivalTerminal": "sample string 7",
          "Carrier": "sample string 8",
          "DepartureAirPort": "sample string 9",
          "ArrivalAirPort": "sample string 10",
          "DepartureDate": "2024-12-24T03:22:34.9023064+08:00",
          "FlightNo": "sample string 12",
          "CabinCode": "sample string 13"
        },
        {
          "Sequence": 1,
          "ItineraryNo": "sample string 2",
          "DepartureTime": "2024-12-24T03:22:34.9023064+08:00",
          "ArrivalTime": "2024-12-24T03:22:34.9023064+08:00",
          "Status": "sample string 5",
          "DepartureTerminal": "sample string 6",
          "ArrivalTerminal": "sample string 7",
          "Carrier": "sample string 8",
          "DepartureAirPort": "sample string 9",
          "ArrivalAirPort": "sample string 10",
          "DepartureDate": "2024-12-24T03:22:34.9023064+08:00",
          "FlightNo": "sample string 12",
          "CabinCode": "sample string 13"
        }
      ],
      "Authorizes": [
        {
          "OfficeNo": "sample string 1"
        },
        {
          "OfficeNo": "sample string 1"
        }
      ],
      "Passengers": [
        {
          "SerialNo": "sample string 1",
          "TicketNo": "sample string 2",
          "Name": "sample string 3",
          "CardType": 0,
          "PassengerType": 0,
          "CardNo": "sample string 4",
          "PhoneNumber": "sample string 5",
          "TravellerIdentity": {
            "IdCountry": "sample string 1",
            "TrCountry": "sample string 2",
            "Birthday": "2024-12-24T03:22:34.9023064+08:00",
            "TravellerSexType": 0,
            "ExpiryDate": "2024-12-24T03:22:34.9023064+08:00"
          }
        },
        {
          "SerialNo": "sample string 1",
          "TicketNo": "sample string 2",
          "Name": "sample string 3",
          "CardType": 0,
          "PassengerType": 0,
          "CardNo": "sample string 4",
          "PhoneNumber": "sample string 5",
          "TravellerIdentity": {
            "IdCountry": "sample string 1",
            "TrCountry": "sample string 2",
            "Birthday": "2024-12-24T03:22:34.9023064+08:00",
            "TravellerSexType": 0,
            "ExpiryDate": "2024-12-24T03:22:34.9023064+08:00"
          }
        }
      ]
    },
    "PATFares": [
      {
        "Sequence": 1,
        "CabinCode": "sample string 2",
        "CabinNote": "sample string 3",
        "Currency": "sample string 4",
        "PrintPrice": 5,
        "FuelTax": "sample string 6",
        "FareTax": "sample string 7",
        "TotalPrice": 8
      },
      {
        "Sequence": 1,
        "CabinCode": "sample string 2",
        "CabinNote": "sample string 3",
        "Currency": "sample string 4",
        "PrintPrice": 5,
        "FuelTax": "sample string 6",
        "FareTax": "sample string 7",
        "TotalPrice": 8
      }
    ]
  },
  "Request": {
    "ClientCode": "sample string 1",
    "PNR": "sample string 2"
  },
  "Account": {
    "AccountId": "sample string 1",
    "UserName": "sample string 2",
    "MacAddress": "sample string 6",
    "OfficeNo": "sample string 8",
    "ETermVID": "sample string 9",
    "ETermPID": "sample string 10",
    "IsNewVersion": true,
    "PhoneNumber": "sample string 12",
    "LayoutType": 1,
    "Group": {
      "GroupId": "sample string 1",
      "CompanyId": "sample string 2",
      "Proper": 0,
      "Name": "sample string 3",
      "Normal": true
    }
  },
  "DataSource": "sample string 1",
  "Expand": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "Responses": [
    {
      "Result": "sample string 1",
      "Command": "sample string 2"
    },
    {
      "Result": "sample string 1",
      "Command": "sample string 2"
    }
  ],
  "Succeed": true,
  "Message": "sample string 3"
}

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.IEPNR.PNR"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.IBPNR.PNR"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.OfficeNo"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.LimitedTime"

2024-12-24T03:22:34.9023064+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.TktlSerialNo"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.ContactNumber"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.FNContents[0]"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.FNContents[1]"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.ContentString"

sample string 5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Company.Zone"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Company.Name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[0].Sequence"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[0].ItineraryNo"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[0].DepartureTime"

2024-12-24T03:22:34.9023064+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[0].ArrivalTime"

2024-12-24T03:22:34.9023064+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[0].Status"

sample string 5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[0].DepartureTerminal"

sample string 6
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[0].ArrivalTerminal"

sample string 7
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[0].Carrier"

sample string 8
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[0].DepartureAirPort"

sample string 9
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[0].ArrivalAirPort"

sample string 10
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[0].DepartureDate"

2024-12-24T03:22:34.9023064+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[0].FlightNo"

sample string 12
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[0].CabinCode"

sample string 13
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[1].Sequence"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[1].ItineraryNo"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[1].DepartureTime"

2024-12-24T03:22:34.9023064+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[1].ArrivalTime"

2024-12-24T03:22:34.9023064+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[1].Status"

sample string 5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[1].DepartureTerminal"

sample string 6
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[1].ArrivalTerminal"

sample string 7
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[1].Carrier"

sample string 8
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[1].DepartureAirPort"

sample string 9
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[1].ArrivalAirPort"

sample string 10
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[1].DepartureDate"

2024-12-24T03:22:34.9023064+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[1].FlightNo"

sample string 12
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Segments[1].CabinCode"

sample string 13
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Authorizes[0].OfficeNo"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Authorizes[1].OfficeNo"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Passengers[0].SerialNo"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Passengers[0].TicketNo"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Passengers[0].Name"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Passengers[0].CardType"

NI
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Passengers[0].PassengerType"

CHR
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Passengers[0].CardNo"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Passengers[0].PhoneNumber"

sample string 5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Passengers[0].TravellerIdentity.IdCountry"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Passengers[0].TravellerIdentity.TrCountry"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Passengers[0].TravellerIdentity.Birthday"

2024-12-24T03:22:34.9023064+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Passengers[0].TravellerIdentity.TravellerSexType"

F
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Passengers[0].TravellerIdentity.ExpiryDate"

2024-12-24T03:22:34.9023064+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Passengers[1].SerialNo"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Passengers[1].TicketNo"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Passengers[1].Name"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Passengers[1].CardType"

NI
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Passengers[1].PassengerType"

CHR
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Passengers[1].CardNo"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Passengers[1].PhoneNumber"

sample string 5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Passengers[1].TravellerIdentity.IdCountry"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Passengers[1].TravellerIdentity.TrCountry"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Passengers[1].TravellerIdentity.Birthday"

2024-12-24T03:22:34.9023064+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Passengers[1].TravellerIdentity.TravellerSexType"

F
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.RTContent.Passengers[1].TravellerIdentity.ExpiryDate"

2024-12-24T03:22:34.9023064+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.PATFares[0].Sequence"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.PATFares[0].CabinCode"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.PATFares[0].CabinNote"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.PATFares[0].Currency"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.PATFares[0].PrintPrice"

5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.PATFares[0].FuelTax"

sample string 6
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.PATFares[0].FareTax"

sample string 7
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.PATFares[0].TotalPrice"

8
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.PATFares[1].Sequence"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.PATFares[1].CabinCode"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.PATFares[1].CabinNote"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.PATFares[1].Currency"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.PATFares[1].PrintPrice"

5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.PATFares[1].FuelTax"

sample string 6
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.PATFares[1].FareTax"

sample string 7
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PATContent.PATFares[1].TotalPrice"

8
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Request.ClientCode"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Request.PNR"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Account.AccountId"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Account.UserName"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Account.Password"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Account.EtermSID"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Account.HostAddress"

sample string 5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Account.MacAddress"

sample string 6
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Account.HostPort"

7
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Account.OfficeNo"

sample string 8
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Account.ETermVID"

sample string 9
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Account.ETermPID"

sample string 10
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Account.IsNewVersion"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Account.PhoneNumber"

sample string 12
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Account.LayoutType"

TCP
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Account.Group.GroupId"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Account.Group.CompanyId"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Account.Group.Proper"

WebApi
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Account.Group.Name"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Account.Group.Normal"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="DataSource"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Expand[0].Key"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Expand[0].Value"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Expand[1].Key"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Expand[1].Value"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Responses[0].Result"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Responses[0].Command"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Responses[1].Result"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Responses[1].Command"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Succeed"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Message"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e--