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

执行FD程序

Request Information

URI Parameters

NameDescriptionTypeAdditional information
GroupId

组ID

string

Required

Body Parameters

请求模型

SpeedPower.Utility.Models.Service.Eterms.Service.FD.FDRequestModel
NameDescriptionTypeAdditional information
Departure

出发地

string

Required

String length: inclusive between 3 and 3

Arrival

到达地

string

Required

String length: inclusive between 3 and 3

Carrier

航空公司

string

String length: inclusive between 2 and 2

DepartureDate

出发日期

string

Data type: Date

Request Formats

application/json, text/json

Sample:
{
  "Departure": "sample string 1",
  "Arrival": "sample string 2",
  "Carrier": "sample string 3",
  "DepartureDate": "sample string 4"
}

multipart/form-data

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

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

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

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="DepartureDate"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

执行FD程序

SpeedPower.Utility.Models.Service.Eterms.Service.FD.FDResponseModel
NameDescriptionTypeAdditional information
Freight

结果信息

SpeedPower.Utility.Models.Service.Eterms.Service.FD.Freight

None.

Request

SpeedPower.Utility.Models.Service.Eterms.Service.FD.FDRequestModel

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:
{
  "Freight": {
    "Departure": "sample string 1",
    "Arrival": "sample string 2",
    "Date": "2024-12-24T02:48:15.2561886+08:00",
    "Currency": "sample string 4",
    "Distance": 5,
    "Bodies": [
      {
        "Carrier": "sample string 1",
        "CabinCode": "sample string 2",
        "ParentCode": "sample string 3",
        "PrintPrice": 4,
        "CabinLevel": 0,
        "IssueDate": "2024-12-24T02:48:15.2561886+08:00",
        "ExpiryDate": "2024-12-24T02:48:15.2561886+08:00",
        "Notes": "sample string 7"
      },
      {
        "Carrier": "sample string 1",
        "CabinCode": "sample string 2",
        "ParentCode": "sample string 3",
        "PrintPrice": 4,
        "CabinLevel": 0,
        "IssueDate": "2024-12-24T02:48:15.2561886+08:00",
        "ExpiryDate": "2024-12-24T02:48:15.2561886+08:00",
        "Notes": "sample string 7"
      }
    ]
  },
  "Request": {
    "Departure": "sample string 1",
    "Arrival": "sample string 2",
    "Carrier": "sample string 3",
    "DepartureDate": "sample string 4"
  },
  "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="Freight.Departure"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Freight.Arrival"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Freight.Date"

2024-12-24T02:48:15.2561886+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Freight.Currency"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Freight.Distance"

5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Freight.Bodies[0].Carrier"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Freight.Bodies[0].CabinCode"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Freight.Bodies[0].ParentCode"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Freight.Bodies[0].PrintPrice"

4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Freight.Bodies[0].CabinLevel"

F
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Freight.Bodies[0].IssueDate"

2024-12-24T02:48:15.2561886+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Freight.Bodies[0].ExpiryDate"

2024-12-24T02:48:15.2561886+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Freight.Bodies[0].Notes"

sample string 7
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Freight.Bodies[1].Carrier"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Freight.Bodies[1].CabinCode"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Freight.Bodies[1].ParentCode"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Freight.Bodies[1].PrintPrice"

4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Freight.Bodies[1].CabinLevel"

F
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Freight.Bodies[1].IssueDate"

2024-12-24T02:48:15.2561886+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Freight.Bodies[1].ExpiryDate"

2024-12-24T02:48:15.2561886+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Freight.Bodies[1].Notes"

sample string 7
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Request.Departure"

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

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Request.Carrier"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Request.DepartureDate"

sample string 4
--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--