POST Api/Service/Order/AddIntactPurchaseOrder
增加采购单完整项
Request Information
URI Parameters
None.
Body Parameters
设置参数
SpeedPower.Utility.Models.Project.Orders.Service.IntactPurchaseOrderModel| Name | Description | Type | Additional information |
|---|---|---|---|
| PurchaseIncludes |
采购单包含乘客列表 |
Collection of SpeedPower.Utility.Models.Project.Orders.Service.AddPurchaseIncludeModel |
Required |
| PurchaseMembers |
采购单采购账户列表 |
Collection of SpeedPower.Utility.Models.Project.Orders.Service.AddPurchaseMemberModel |
None. |
| PurchasePayables |
采购单付款项列表 |
Collection of SpeedPower.Utility.Models.Project.Orders.Service.AddPurchasePayableModel |
None. |
| OrderId |
父级ID |
globally unique identifier |
None. |
| PurchaseOrderNumber |
采购订单号 |
string |
Required String length: inclusive between 0 and 50 |
| PurchaseOrderType |
采购单类型 |
SpeedPower.Utility.Models.Project.Orders.Enums.PurchaseOrderType |
None. |
| TotalPrice |
采购总价 |
decimal number |
None. |
| PlatName |
采购平台名称 |
string |
Required String length: inclusive between 0 and 50 |
| PurchaseTag |
采购路由标识 |
string |
String length: inclusive between 0 and 20 |
| ProviderCode |
采购数据源标识 |
string |
String length: inclusive between 0 and 20 |
| CabinLevel |
采购舱位级别 |
SpeedPower.Utility.Models.Service.Eterms.Enums.CabinLevelType |
None. |
| CabinCode |
采购舱位 |
string |
Required String length: inclusive between 0 and 3 |
| ProductRules |
采购产品规则 |
string |
None. |
| Remarks |
备注内容 |
string |
String length: inclusive between 0 and 500 |
Request Formats
application/json, text/json
Sample:
{
"PurchaseIncludes": [
{
"PurchaseOrderId": "d278a8b5-cbc7-46d8-a320-da472987d4d2",
"PassengerId": "b0ec10b1-9dd7-48a7-89c2-161824ad7ceb",
"TicketNumber": "sample string 3"
},
{
"PurchaseOrderId": "d278a8b5-cbc7-46d8-a320-da472987d4d2",
"PassengerId": "b0ec10b1-9dd7-48a7-89c2-161824ad7ceb",
"TicketNumber": "sample string 3"
}
],
"PurchaseMembers": [
{
"PurchaseOrderId": "0ab0b6d4-6211-477b-be80-6c61f8d5bc21",
"UserName": "sample string 2",
"Password": "sample string 3",
"ContactPhone": "sample string 4",
"Remarks": "sample string 5",
"MembersId": "sample string 6"
},
{
"PurchaseOrderId": "0ab0b6d4-6211-477b-be80-6c61f8d5bc21",
"UserName": "sample string 2",
"Password": "sample string 3",
"ContactPhone": "sample string 4",
"Remarks": "sample string 5",
"MembersId": "sample string 6"
}
],
"PurchasePayables": [
{
"PurchaseOrderId": "61ad87bc-9840-4901-b9d5-86b335996715",
"PayPrice": 2.1,
"PaymentTag": "sample string 3",
"PaymentCode": "sample string 4",
"PaymentAccount": "sample string 5",
"TransactionId": "sample string 6",
"Reconciled": true,
"Remarks": "sample string 8"
},
{
"PurchaseOrderId": "61ad87bc-9840-4901-b9d5-86b335996715",
"PayPrice": 2.1,
"PaymentTag": "sample string 3",
"PaymentCode": "sample string 4",
"PaymentAccount": "sample string 5",
"TransactionId": "sample string 6",
"Reconciled": true,
"Remarks": "sample string 8"
}
],
"OrderId": "2eebd7fd-c8c1-4dbc-a805-c544a9156169",
"PurchaseOrderNumber": "sample string 2",
"PurchaseOrderType": 0,
"TotalPrice": 3.1,
"PlatName": "sample string 4",
"PurchaseTag": "sample string 5",
"ProviderCode": "sample string 6",
"CabinLevel": 0,
"CabinCode": "sample string 7",
"ProductRules": "sample string 8",
"Remarks": "sample string 9"
}
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"
}