POST Api/Service/Order/ManualPurchase/{AutoPay}
手动指定数据源创建采购单
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| AutoPay |
是否自动支付 |
boolean |
Required |
Body Parameters
请求模型
SpeedPower.Utility.Models.Project.Orders.Service.Automatic.AutoQuotedRequestModel| Name | Description | Type | Additional 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": "2026-11-09T23:48:26.18522+08:00",
"ID": "9e57abf0-cd18-4154-a056-d7a9adacb494",
"SiteSettingId": "sample string 3",
"Carrier": "sample string 4",
"Normal": true,
"PurchaseTag": "sample string 6",
"Status": true
},
"ProviderSetting": {
"OrderProviderAutoPaySettings": {
"Time": "2026-11-09T23:48:26.18522+08:00",
"ID": "954083ab-0d72-4749-8e2a-e54fbbd9c214",
"PaymentTag": "sample string 3",
"SortType": 0,
"UsedBalance": true
},
"OrderProviderExpandSettings": [
{
"ID": "6dc89d15-1e46-41d6-87fa-79f34ceb74e2",
"OrderProviderSettingId": "ed4b7dc9-0f4e-4793-98f1-29328c3ae6e4",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "6dc89d15-1e46-41d6-87fa-79f34ceb74e2",
"OrderProviderSettingId": "ed4b7dc9-0f4e-4793-98f1-29328c3ae6e4",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"Time": "2026-11-09T23:48:26.18522+08:00",
"ID": "8a8cbc87-aa08-49b1-9a1a-0d90a9b845b1",
"OrderCarrierSettingId": "19c31461-e4b1-4d75-89c8-99fe392fb3a9",
"Sequence": 4,
"ProviderCode": "sample string 5",
"MatchCabin": true,
"PriceChangeInterval": 7,
"Status": true
},
"MemberSetting": {
"PurchaseMemberConfigs": {
"ValidBalance": 1.1,
"UsedBalance": 2.1,
"CurrentBalance": 3.1,
"Time": "2026-11-09T23:48:26.18522+08:00",
"ID": "4d0ff58e-a14b-47da-b6d4-925fcaa6bafa",
"Password": "sample string 6",
"MinBalance": 7.1,
"MaxBalance": 8.1,
"Remarks": "sample string 9"
},
"PurchaseMemberExpandSettings": [
{
"ID": "fc0623db-e15e-4890-830f-96b3d074f3e2",
"PurchaseMemberSettingId": "efa12a4e-9f74-4af0-a824-f3f053047c6b",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "fc0623db-e15e-4890-830f-96b3d074f3e2",
"PurchaseMemberSettingId": "efa12a4e-9f74-4af0-a824-f3f053047c6b",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"CompanyId": "sample string 1",
"LastUsedTime": "2026-11-09T23:48:26.18522+08:00",
"Time": "2026-11-09T23:48:26.18522+08:00",
"ID": "6ff57d2c-a6e1-48bd-a967-285c6fd17f60",
"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": "864468cd-c173-4c86-92f4-6a2c90fc72ea",
"Creater": "sample string 2"
},
"OContacts": [
{
"Time": "2026-11-09T23:48:26.18522+08:00",
"ID": "84b11f3a-f603-49ca-8fbc-131ff63c77d4",
"OrderId": "a74945ef-9ab7-4581-a843-422dcab72f42",
"ContactUser": "sample string 4",
"ContactPhone": "sample string 5"
},
{
"Time": "2026-11-09T23:48:26.18522+08:00",
"ID": "84b11f3a-f603-49ca-8fbc-131ff63c77d4",
"OrderId": "a74945ef-9ab7-4581-a843-422dcab72f42",
"ContactUser": "sample string 4",
"ContactPhone": "sample string 5"
}
],
"PurchaseRoutes": [
{
"Creater": "sample string 1",
"Time": "2026-11-09T23:48:26.18522+08:00",
"ID": "1321226d-4747-4904-9c7b-391a8dec4597",
"OrderId": "e080ec9f-0a6c-4d71-9f3a-7bfe4f7090b9",
"PurchaseTag": "sample string 5",
"Remarks": "sample string 6"
},
{
"Creater": "sample string 1",
"Time": "2026-11-09T23:48:26.18522+08:00",
"ID": "1321226d-4747-4904-9c7b-391a8dec4597",
"OrderId": "e080ec9f-0a6c-4d71-9f3a-7bfe4f7090b9",
"PurchaseTag": "sample string 5",
"Remarks": "sample string 6"
}
],
"OPassengers": [
{
"TicketNumbers": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-11-09T23:48:26.18522+08:00",
"ID": "01786523-f4dc-4bf9-a888-d668ffaf44da",
"PassengerId": "aa633421-45f9-40d6-9aca-6325ae2ff762",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-11-09T23:48:26.18522+08:00",
"ID": "01786523-f4dc-4bf9-a888-d668ffaf44da",
"PassengerId": "aa633421-45f9-40d6-9aca-6325ae2ff762",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2026-11-09T23:48:26.18522+08:00",
"ID": "2c33bc2b-f28c-49ec-a471-f4cf1d71fa9d",
"PassengerId": "b1f0b69e-a0ae-4b1e-a0f2-940e0777e81c",
"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": "2026-11-09T23:48:26.18522+08:00",
"ID": "2c33bc2b-f28c-49ec-a471-f4cf1d71fa9d",
"PassengerId": "b1f0b69e-a0ae-4b1e-a0f2-940e0777e81c",
"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": "2026-11-09T23:48:26.18522+08:00",
"ID": "5e02cb34-33db-4344-a13d-1075aa6734b4",
"OrderId": "f268c5ea-45bb-405e-b081-58ff53ba37d2",
"Name": "sample string 4",
"Birthday": "2026-11-09T23:48:26.18522+08:00",
"CardType": 0,
"CardNo": "sample string 5",
"SexType": 0,
"PassengerType": 0,
"ContactPhone": "sample string 6"
},
{
"TicketNumbers": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-11-09T23:48:26.18522+08:00",
"ID": "01786523-f4dc-4bf9-a888-d668ffaf44da",
"PassengerId": "aa633421-45f9-40d6-9aca-6325ae2ff762",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-11-09T23:48:26.18522+08:00",
"ID": "01786523-f4dc-4bf9-a888-d668ffaf44da",
"PassengerId": "aa633421-45f9-40d6-9aca-6325ae2ff762",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2026-11-09T23:48:26.18522+08:00",
"ID": "2c33bc2b-f28c-49ec-a471-f4cf1d71fa9d",
"PassengerId": "b1f0b69e-a0ae-4b1e-a0f2-940e0777e81c",
"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": "2026-11-09T23:48:26.18522+08:00",
"ID": "2c33bc2b-f28c-49ec-a471-f4cf1d71fa9d",
"PassengerId": "b1f0b69e-a0ae-4b1e-a0f2-940e0777e81c",
"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": "2026-11-09T23:48:26.18522+08:00",
"ID": "5e02cb34-33db-4344-a13d-1075aa6734b4",
"OrderId": "f268c5ea-45bb-405e-b081-58ff53ba37d2",
"Name": "sample string 4",
"Birthday": "2026-11-09T23:48:26.18522+08:00",
"CardType": 0,
"CardNo": "sample string 5",
"SexType": 0,
"PassengerType": 0,
"ContactPhone": "sample string 6"
}
],
"OrderExpands": [
{
"ID": "b9bd60e9-f8a6-4d3e-ac42-5aac6ca75ff2",
"OrderId": "88897b48-293a-44d8-8301-18d995a4d729",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "b9bd60e9-f8a6-4d3e-ac42-5aac6ca75ff2",
"OrderId": "88897b48-293a-44d8-8301-18d995a4d729",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"OrderPayments": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-11-09T23:48:26.18522+08:00",
"ID": "94e9168d-89fc-413d-a70d-52c1cfcd32df",
"OrderId": "d9251f20-f75b-40b0-b3e4-1376f8cc88a6",
"PaymentType": 0,
"TotalPrice": 5.1,
"TransactionId": "sample string 6",
"Reconciled": true,
"Remarks": "sample string 8"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-11-09T23:48:26.18522+08:00",
"ID": "94e9168d-89fc-413d-a70d-52c1cfcd32df",
"OrderId": "d9251f20-f75b-40b0-b3e4-1376f8cc88a6",
"PaymentType": 0,
"TotalPrice": 5.1,
"TransactionId": "sample string 6",
"Reconciled": true,
"Remarks": "sample string 8"
}
],
"OSegments": [
{
"Time": "2026-11-09T23:48:26.18522+08:00",
"ID": "f1f2c4c7-d938-459d-b754-591629004004",
"OrderId": "ae52517b-341d-477a-b0c8-08cbf3c930a2",
"Sequence": 4,
"Carrier": "sample string 5",
"DepartureAirport": "sample string 6",
"ArrivalAirport": "sample string 7",
"DepartureDate": "2026-11-09T23:48:26.18522+08:00",
"ArrivalDate": "2026-11-09T23:48:26.18522+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": "2026-11-09T23:48:26.18522+08:00",
"ID": "f1f2c4c7-d938-459d-b754-591629004004",
"OrderId": "ae52517b-341d-477a-b0c8-08cbf3c930a2",
"Sequence": 4,
"Carrier": "sample string 5",
"DepartureAirport": "sample string 6",
"ArrivalAirport": "sample string 7",
"DepartureDate": "2026-11-09T23:48:26.18522+08:00",
"ArrivalDate": "2026-11-09T23:48:26.18522+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": "28b567b9-751a-419f-920e-790287b6379d",
"ProviderCode": "sample string 2",
"PriceChangeInterval": 3
},
"QuotationSources": {
"Time": "2026-11-09T23:48:26.18522+08:00",
"ID": "e1173efe-1a3f-495e-b4d5-a185f28fdc25",
"Remarks": "sample string 3",
"QuotationId": "sample string 4",
"ProductMark": "sample string 5",
"Creater": "sample string 6"
},
"OrderInternalNumber": "sample string 6",
"OrderSource": 0,
"InternalTime": "2026-11-09T23:48:26.18522+08:00",
"Creater": "sample string 8",
"ID": "2062b10f-ee74-42a5-955a-599c07791a6a",
"SiteId": "sample string 10",
"OrderExternalNumber": "sample string 11",
"LatestTime": "2026-11-09T23:48:26.18522+08:00",
"ExternalTime": "2026-11-09T23:48:26.18522+08:00"
}
Response Information
Resource Description
手动指定数据源创建采购单
SpeedPower.Utility.Models.Helper.ResultMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Succeed |
操作是否成功 |
boolean |
None. |
| Message |
操作消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Succeed": true,
"Message": "sample string 2"
}