POST Api/Service/Order/ManualPurchase/{AutoPay}

手动指定数据源创建采购单

Request Information

URI Parameters

NameDescriptionTypeAdditional information
AutoPay

是否自动支付

boolean

Required

Body Parameters

请求模型

SpeedPower.Utility.Models.Project.Orders.Service.Automatic.AutoQuotedRequestModel
NameDescriptionTypeAdditional information
ProviderCode

数据源代码

string

None.

HavePurchase

是否含有自动采购功能

boolean

None.

AutoPurchase

是否可执行全自动采购

boolean

None.

SpecifyPurchase

是否可执行指定源自动采购

boolean

None.

IsShareToFlightNoReqeust

是否为主飞航班请求

boolean

None.

PurchaseSetting

自动化采购/询价设置项

SpeedPower.Utility.Models.Project.Orders.Service.Automatic.PurchaseSetting

None.

OperationTag

操作标签

SpeedPower.Utility.Models.Project.Orders.Service.Automatic.OperationTagModel

None.

OContacts

联系人列表

Collection of SpeedPower.Utility.Models.Project.Orders.Service.GetOContactModel

None.

PurchaseRoutes

采购路由列表

Collection of SpeedPower.Utility.Models.Project.Orders.Service.GetPurchaseRouteModel

None.

OPassengers

乘机人列表

Collection of SpeedPower.Utility.Models.Project.Orders.Service.ParentOPassengerModel

None.

OrderExpands

订单扩展参数列表

Collection of SpeedPower.Utility.Models.Project.Orders.Service.GetOrderExpandModel

None.

OrderPayments

订单收付款项列表

Collection of SpeedPower.Utility.Models.Project.Orders.Service.GetOrderPaymentModel

None.

OSegments

订单行程列表

Collection of SpeedPower.Utility.Models.Project.Orders.Service.GetOSegmentModel

None.

DataSources

订单数据来源项

SpeedPower.Utility.Models.Project.Orders.Service.GetDataSourceModel

None.

QuotationSources

订单政策来源项

SpeedPower.Utility.Models.Project.Orders.Service.GetQuotationSourceModel

None.

OrderInternalNumber

内部订单号

string

Required

String length: inclusive between 0 and 128

OrderSource

订单来源

SpeedPower.Utility.Models.Project.Orders.Enums.OrderSourceType

None.

InternalTime

订单创建时间

date

None.

Creater

创建人

string

Required

String length: inclusive between 0 and 128

ID

订单ID

globally unique identifier

None.

SiteId

站点ID

string

Required

String length: inclusive between 0 and 128

OrderExternalNumber

外部订单号

string

Required

String length: inclusive between 0 and 128

LatestTime

最后处理时间

date

None.

ExternalTime

外部订单创建时间

date

None.

Request Formats

application/json, text/json

Sample:
{
  "ProviderCode": "sample string 1",
  "HavePurchase": true,
  "AutoPurchase": true,
  "SpecifyPurchase": true,
  "IsShareToFlightNoReqeust": true,
  "PurchaseSetting": {
    "CarrierSetting": {
      "Time": "2024-12-24T03:10:08.463072+08:00",
      "ID": "a2e6bbb2-38d5-43e3-8cf3-fc461753f21a",
      "SiteSettingId": "sample string 3",
      "Carrier": "sample string 4",
      "Normal": true,
      "PurchaseTag": "sample string 6",
      "Status": true
    },
    "ProviderSetting": {
      "OrderProviderAutoPaySettings": {
        "Time": "2024-12-24T03:10:08.463072+08:00",
        "ID": "ecee2b8b-df9c-4e9a-b8ad-87b5a79b1615",
        "PaymentTag": "sample string 3",
        "SortType": 0,
        "UsedBalance": true
      },
      "OrderProviderExpandSettings": [
        {
          "ID": "469a6055-a0cf-43b5-8b82-bbd439a9eef8",
          "OrderProviderSettingId": "5350323b-a861-4979-8af2-72b186049808",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        },
        {
          "ID": "469a6055-a0cf-43b5-8b82-bbd439a9eef8",
          "OrderProviderSettingId": "5350323b-a861-4979-8af2-72b186049808",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        }
      ],
      "Time": "2024-12-24T03:10:08.463072+08:00",
      "ID": "17b5a28f-00ef-47f7-9e3d-8240f04c5df6",
      "OrderCarrierSettingId": "542c01e4-25b9-408e-bb1e-86cc46219365",
      "Sequence": 4,
      "ProviderCode": "sample string 5",
      "MatchCabin": true,
      "PriceChangeInterval": 7,
      "Status": true
    },
    "MemberSetting": {
      "PurchaseMemberConfigs": {
        "ValidBalance": 1.1,
        "UsedBalance": 2.1,
        "CurrentBalance": 3.1,
        "Time": "2024-12-24T03:10:08.463072+08:00",
        "ID": "1b6de688-5f93-4f51-882f-d4e6381afe82",
        "Password": "sample string 6",
        "MinBalance": 7.1,
        "MaxBalance": 8.1,
        "Remarks": "sample string 9"
      },
      "PurchaseMemberExpandSettings": [
        {
          "ID": "5f7ac81d-1327-44a2-83f7-c95144f3f0b3",
          "PurchaseMemberSettingId": "32c36718-412f-4890-8575-02a5f40e788a",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        },
        {
          "ID": "5f7ac81d-1327-44a2-83f7-c95144f3f0b3",
          "PurchaseMemberSettingId": "32c36718-412f-4890-8575-02a5f40e788a",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        }
      ],
      "CompanyId": "sample string 1",
      "LastUsedTime": "2024-12-24T03:10:08.463072+08:00",
      "Time": "2024-12-24T03:10:08.463072+08:00",
      "ID": "a0d1a709-7fd6-4175-85cb-941cd848fb09",
      "UsedStatus": 0,
      "ProviderCode": "sample string 4",
      "UserName": "sample string 5",
      "Password": "sample string 6",
      "ContactUser": "sample string 7",
      "ContactPhone": "sample string 8",
      "ContactEmail": "sample string 9",
      "KeepTime": 10,
      "Remarks": "sample string 11"
    }
  },
  "OperationTag": {
    "OrderId": "489dbeaa-403a-4f69-840c-80a6c84150a8",
    "Creater": "sample string 2"
  },
  "OContacts": [
    {
      "Time": "2024-12-24T03:10:08.463072+08:00",
      "ID": "3023eb09-580b-4b8b-8e74-de110a1330a0",
      "OrderId": "be446adb-5616-4f25-8839-9c9100cfa01d",
      "ContactUser": "sample string 4",
      "ContactPhone": "sample string 5"
    },
    {
      "Time": "2024-12-24T03:10:08.463072+08:00",
      "ID": "3023eb09-580b-4b8b-8e74-de110a1330a0",
      "OrderId": "be446adb-5616-4f25-8839-9c9100cfa01d",
      "ContactUser": "sample string 4",
      "ContactPhone": "sample string 5"
    }
  ],
  "PurchaseRoutes": [
    {
      "Creater": "sample string 1",
      "Time": "2024-12-24T03:10:08.463072+08:00",
      "ID": "23394254-7d69-4323-a385-757238289692",
      "OrderId": "31bd403c-0214-4b13-894d-5796739fef0a",
      "PurchaseTag": "sample string 5",
      "Remarks": "sample string 6"
    },
    {
      "Creater": "sample string 1",
      "Time": "2024-12-24T03:10:08.463072+08:00",
      "ID": "23394254-7d69-4323-a385-757238289692",
      "OrderId": "31bd403c-0214-4b13-894d-5796739fef0a",
      "PurchaseTag": "sample string 5",
      "Remarks": "sample string 6"
    }
  ],
  "OPassengers": [
    {
      "TicketNumbers": [
        {
          "RecordType": 0,
          "Creater": "sample string 1",
          "Time": "2024-12-24T03:10:08.463072+08:00",
          "ID": "19ced87b-d069-43ff-9913-b91d84c63762",
          "PassengerId": "4846da94-a755-4b45-a606-e8f08cdee98c",
          "TicketNumber": "sample string 5",
          "Posted": true,
          "Remarks": "sample string 7"
        },
        {
          "RecordType": 0,
          "Creater": "sample string 1",
          "Time": "2024-12-24T03:10:08.463072+08:00",
          "ID": "19ced87b-d069-43ff-9913-b91d84c63762",
          "PassengerId": "4846da94-a755-4b45-a606-e8f08cdee98c",
          "TicketNumber": "sample string 5",
          "Posted": true,
          "Remarks": "sample string 7"
        }
      ],
      "OTotalPrices": [
        {
          "Time": "2024-12-24T03:10:08.463072+08:00",
          "ID": "be663ab0-0a01-4523-bdb6-727d41412d79",
          "PassengerId": "6d042a78-e911-4ffa-b796-a24eaad1f1a4",
          "Sequence": 1,
          "SalePrice": 4.1,
          "PrintPrice": 5,
          "FareTax": 6,
          "FuelTax": 7,
          "CabinLevel": 0,
          "CabinCode": "sample string 8",
          "ChannelCabinCode": "sample string 9",
          "FixedCabinCode": "sample string 10"
        },
        {
          "Time": "2024-12-24T03:10:08.463072+08:00",
          "ID": "be663ab0-0a01-4523-bdb6-727d41412d79",
          "PassengerId": "6d042a78-e911-4ffa-b796-a24eaad1f1a4",
          "Sequence": 1,
          "SalePrice": 4.1,
          "PrintPrice": 5,
          "FareTax": 6,
          "FuelTax": 7,
          "CabinLevel": 0,
          "CabinCode": "sample string 8",
          "ChannelCabinCode": "sample string 9",
          "FixedCabinCode": "sample string 10"
        }
      ],
      "Time": "2024-12-24T03:10:08.463072+08:00",
      "ID": "045841c6-52bd-4a0d-91b0-7040235aa4ec",
      "OrderId": "80780d7f-ffc4-4eb4-bd03-7053dc6ca929",
      "Name": "sample string 4",
      "Birthday": "2024-12-24T03:10:08.463072+08:00",
      "CardType": 0,
      "CardNo": "sample string 5",
      "SexType": 0,
      "PassengerType": 0,
      "ContactPhone": "sample string 6"
    },
    {
      "TicketNumbers": [
        {
          "RecordType": 0,
          "Creater": "sample string 1",
          "Time": "2024-12-24T03:10:08.463072+08:00",
          "ID": "19ced87b-d069-43ff-9913-b91d84c63762",
          "PassengerId": "4846da94-a755-4b45-a606-e8f08cdee98c",
          "TicketNumber": "sample string 5",
          "Posted": true,
          "Remarks": "sample string 7"
        },
        {
          "RecordType": 0,
          "Creater": "sample string 1",
          "Time": "2024-12-24T03:10:08.463072+08:00",
          "ID": "19ced87b-d069-43ff-9913-b91d84c63762",
          "PassengerId": "4846da94-a755-4b45-a606-e8f08cdee98c",
          "TicketNumber": "sample string 5",
          "Posted": true,
          "Remarks": "sample string 7"
        }
      ],
      "OTotalPrices": [
        {
          "Time": "2024-12-24T03:10:08.463072+08:00",
          "ID": "be663ab0-0a01-4523-bdb6-727d41412d79",
          "PassengerId": "6d042a78-e911-4ffa-b796-a24eaad1f1a4",
          "Sequence": 1,
          "SalePrice": 4.1,
          "PrintPrice": 5,
          "FareTax": 6,
          "FuelTax": 7,
          "CabinLevel": 0,
          "CabinCode": "sample string 8",
          "ChannelCabinCode": "sample string 9",
          "FixedCabinCode": "sample string 10"
        },
        {
          "Time": "2024-12-24T03:10:08.463072+08:00",
          "ID": "be663ab0-0a01-4523-bdb6-727d41412d79",
          "PassengerId": "6d042a78-e911-4ffa-b796-a24eaad1f1a4",
          "Sequence": 1,
          "SalePrice": 4.1,
          "PrintPrice": 5,
          "FareTax": 6,
          "FuelTax": 7,
          "CabinLevel": 0,
          "CabinCode": "sample string 8",
          "ChannelCabinCode": "sample string 9",
          "FixedCabinCode": "sample string 10"
        }
      ],
      "Time": "2024-12-24T03:10:08.463072+08:00",
      "ID": "045841c6-52bd-4a0d-91b0-7040235aa4ec",
      "OrderId": "80780d7f-ffc4-4eb4-bd03-7053dc6ca929",
      "Name": "sample string 4",
      "Birthday": "2024-12-24T03:10:08.463072+08:00",
      "CardType": 0,
      "CardNo": "sample string 5",
      "SexType": 0,
      "PassengerType": 0,
      "ContactPhone": "sample string 6"
    }
  ],
  "OrderExpands": [
    {
      "ID": "c931b6a9-9e6d-4da0-944a-b9a27df88fd2",
      "OrderId": "6542ffa0-44f3-4ef0-ad77-2a72bcfa1fd6",
      "SettingKey": "sample string 3",
      "SettingValue": "sample string 4"
    },
    {
      "ID": "c931b6a9-9e6d-4da0-944a-b9a27df88fd2",
      "OrderId": "6542ffa0-44f3-4ef0-ad77-2a72bcfa1fd6",
      "SettingKey": "sample string 3",
      "SettingValue": "sample string 4"
    }
  ],
  "OrderPayments": [
    {
      "RecordType": 0,
      "Creater": "sample string 1",
      "Time": "2024-12-24T03:10:08.463072+08:00",
      "ID": "71001dcb-60e6-4c06-91ad-eda998194554",
      "OrderId": "7793ef17-58a9-4cb0-a48f-6d09bb4cc46c",
      "PaymentType": 0,
      "TotalPrice": 5.1,
      "TransactionId": "sample string 6",
      "Reconciled": true,
      "Remarks": "sample string 8"
    },
    {
      "RecordType": 0,
      "Creater": "sample string 1",
      "Time": "2024-12-24T03:10:08.463072+08:00",
      "ID": "71001dcb-60e6-4c06-91ad-eda998194554",
      "OrderId": "7793ef17-58a9-4cb0-a48f-6d09bb4cc46c",
      "PaymentType": 0,
      "TotalPrice": 5.1,
      "TransactionId": "sample string 6",
      "Reconciled": true,
      "Remarks": "sample string 8"
    }
  ],
  "OSegments": [
    {
      "Time": "2024-12-24T03:10:08.463072+08:00",
      "ID": "7761c420-1219-4e33-bb4d-65aba5ed5707",
      "OrderId": "730839d4-7ca8-4ecc-9ca4-eb5d82404da3",
      "Sequence": 4,
      "Carrier": "sample string 5",
      "DepartureAirport": "sample string 6",
      "ArrivalAirport": "sample string 7",
      "DepartureDate": "2024-12-24T03:10:08.463072+08:00",
      "ArrivalDate": "2024-12-24T03:10:08.463072+08:00",
      "FlightNo": "sample string 10",
      "CodeShare": true,
      "ShareToFlightNo": "sample string 12",
      "StopTimes": 13,
      "Meal": "sample string 14",
      "PlaneType": "sample string 15",
      "DepartureTerminal": "sample string 16",
      "ArrivalTerminal": "sample string 17"
    },
    {
      "Time": "2024-12-24T03:10:08.463072+08:00",
      "ID": "7761c420-1219-4e33-bb4d-65aba5ed5707",
      "OrderId": "730839d4-7ca8-4ecc-9ca4-eb5d82404da3",
      "Sequence": 4,
      "Carrier": "sample string 5",
      "DepartureAirport": "sample string 6",
      "ArrivalAirport": "sample string 7",
      "DepartureDate": "2024-12-24T03:10:08.463072+08:00",
      "ArrivalDate": "2024-12-24T03:10:08.463072+08:00",
      "FlightNo": "sample string 10",
      "CodeShare": true,
      "ShareToFlightNo": "sample string 12",
      "StopTimes": 13,
      "Meal": "sample string 14",
      "PlaneType": "sample string 15",
      "DepartureTerminal": "sample string 16",
      "ArrivalTerminal": "sample string 17"
    }
  ],
  "DataSources": {
    "ID": "6282cea8-a717-470e-9a8a-e5a58edf5dfc",
    "ProviderCode": "sample string 2",
    "PriceChangeInterval": 3
  },
  "QuotationSources": {
    "Time": "2024-12-24T03:10:08.463072+08:00",
    "ID": "8a48debc-f3d9-4d4e-be60-7b428537a8e1",
    "Remarks": "sample string 3",
    "QuotationId": "sample string 4",
    "ProductMark": "sample string 5",
    "Creater": "sample string 6"
  },
  "OrderInternalNumber": "sample string 6",
  "OrderSource": 0,
  "InternalTime": "2024-12-24T03:10:08.463072+08:00",
  "Creater": "sample string 8",
  "ID": "96b6f9bf-f702-4233-91b3-398ee3208a0e",
  "SiteId": "sample string 10",
  "OrderExternalNumber": "sample string 11",
  "LatestTime": "2024-12-24T03:10:08.463072+08:00",
  "ExternalTime": "2024-12-24T03:10:08.463072+08:00"
}

Response Information

Resource Description

手动指定数据源创建采购单

SpeedPower.Utility.Models.Helper.ResultMessage
NameDescriptionTypeAdditional information
Succeed

操作是否成功

boolean

None.

Message

操作消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Succeed": true,
  "Message": "sample string 2"
}