POST Api/Service/Order/ManualPurchaseRefund

手动采购单退票询价/确认

Request Information

URI Parameters

None.

Body Parameters

请求模型

SpeedPower.Utility.Models.Project.Orders.Service.Automatic.ManualPurchaseRefundRequestModel
NameDescriptionTypeAdditional information
PurchaseId

采购单ID

globally unique identifier

None.

Confirmed

是否为确认退票操作

boolean

None.

LinkedId

退票单关联ID

globally unique identifier

None.

SettingKey

数据源扩展Key

string

Required

String length: inclusive between 0 and 500

SettingValue

数据源扩展Value

string

Required

PassengerIds

乘机人选择项(为空列表则默认为所有当前采购单乘客)

Collection of globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "PurchaseId": "fb2c4ed9-1b18-4dcc-ae96-8a2b0539e56e",
  "Confirmed": true,
  "LinkedId": "a244559c-410f-48d1-8f41-0b75fec0a534",
  "SettingKey": "sample string 3",
  "SettingValue": "sample string 4",
  "PassengerIds": [
    "cfb9102a-9cda-4678-a5e0-12cd0f129811",
    "d29db6ac-8c68-416c-81f9-f5569f22ab53"
  ]
}

Response Information

Resource Description

手动采购单退票询价/确认

SpeedPower.Utility.Models.Project.Orders.Service.Automatic.AutoPurchaseRefundResponseModel
NameDescriptionTypeAdditional information
ErrorType

错误类型(可为NULL)

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

None.

Request

请求模型返回

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

None.

PurchaseRefundPayment

财务信息

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

None.

Succeed

操作是否成功

boolean

None.

Message

操作消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorType": 0,
  "Request": {
    "Confirmed": true,
    "FollowupId": "96b21fd2-2ed6-4da2-8f02-3153719ac2cd",
    "LinkedId": "5d8465f5-7cf3-4154-a8ae-d85fc241f64a",
    "SettingKey": "sample string 3",
    "SettingValue": "sample string 4",
    "OPassengers": [
      {
        "TicketNumbers": [
          {
            "RecordType": 0,
            "Creater": "sample string 1",
            "Time": "2025-09-14T16:46:03.8153265+08:00",
            "ID": "73481ba7-acc7-4981-86be-8f6ac0ea4439",
            "PassengerId": "b125bdf3-c700-4084-b311-342fc0ec058e",
            "TicketNumber": "sample string 5",
            "Posted": true,
            "Remarks": "sample string 7"
          },
          {
            "RecordType": 0,
            "Creater": "sample string 1",
            "Time": "2025-09-14T16:46:03.8153265+08:00",
            "ID": "73481ba7-acc7-4981-86be-8f6ac0ea4439",
            "PassengerId": "b125bdf3-c700-4084-b311-342fc0ec058e",
            "TicketNumber": "sample string 5",
            "Posted": true,
            "Remarks": "sample string 7"
          }
        ],
        "OTotalPrices": [
          {
            "Time": "2025-09-14T16:46:03.8153265+08:00",
            "ID": "74972ba2-e2fa-467a-b471-85687e3ab1f3",
            "PassengerId": "2142a386-375e-4023-94a4-77a431735dc5",
            "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": "2025-09-14T16:46:03.8153265+08:00",
            "ID": "74972ba2-e2fa-467a-b471-85687e3ab1f3",
            "PassengerId": "2142a386-375e-4023-94a4-77a431735dc5",
            "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": "2025-09-14T16:46:03.8153265+08:00",
        "ID": "9c50daab-1cba-4093-9251-436e10de954d",
        "OrderId": "f30d1314-6016-440c-b0b3-9f3beb8f3e8b",
        "Name": "sample string 4",
        "Birthday": "2025-09-14T16:46:03.8153265+08:00",
        "CardType": 0,
        "CardNo": "sample string 5",
        "SexType": 0,
        "PassengerType": 0,
        "ContactPhone": "sample string 6"
      },
      {
        "TicketNumbers": [
          {
            "RecordType": 0,
            "Creater": "sample string 1",
            "Time": "2025-09-14T16:46:03.8153265+08:00",
            "ID": "73481ba7-acc7-4981-86be-8f6ac0ea4439",
            "PassengerId": "b125bdf3-c700-4084-b311-342fc0ec058e",
            "TicketNumber": "sample string 5",
            "Posted": true,
            "Remarks": "sample string 7"
          },
          {
            "RecordType": 0,
            "Creater": "sample string 1",
            "Time": "2025-09-14T16:46:03.8153265+08:00",
            "ID": "73481ba7-acc7-4981-86be-8f6ac0ea4439",
            "PassengerId": "b125bdf3-c700-4084-b311-342fc0ec058e",
            "TicketNumber": "sample string 5",
            "Posted": true,
            "Remarks": "sample string 7"
          }
        ],
        "OTotalPrices": [
          {
            "Time": "2025-09-14T16:46:03.8153265+08:00",
            "ID": "74972ba2-e2fa-467a-b471-85687e3ab1f3",
            "PassengerId": "2142a386-375e-4023-94a4-77a431735dc5",
            "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": "2025-09-14T16:46:03.8153265+08:00",
            "ID": "74972ba2-e2fa-467a-b471-85687e3ab1f3",
            "PassengerId": "2142a386-375e-4023-94a4-77a431735dc5",
            "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": "2025-09-14T16:46:03.8153265+08:00",
        "ID": "9c50daab-1cba-4093-9251-436e10de954d",
        "OrderId": "f30d1314-6016-440c-b0b3-9f3beb8f3e8b",
        "Name": "sample string 4",
        "Birthday": "2025-09-14T16:46:03.8153265+08:00",
        "CardType": 0,
        "CardNo": "sample string 5",
        "SexType": 0,
        "PassengerType": 0,
        "ContactPhone": "sample string 6"
      }
    ],
    "PaymentAccountSetting": {
      "AutoPaymentAccountConfigs": [
        {
          "ID": "e2330b56-ad8d-4c3d-a6d0-ee3e716d0671",
          "AutoPaymentAccountSettingId": "d9d462f8-037e-4f27-8f7c-c73b44307285",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        },
        {
          "ID": "e2330b56-ad8d-4c3d-a6d0-ee3e716d0671",
          "AutoPaymentAccountSettingId": "d9d462f8-037e-4f27-8f7c-c73b44307285",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        }
      ],
      "CompanyId": "sample string 1",
      "LastUsedTime": "2025-09-14T16:46:03.8153265+08:00",
      "Time": "2025-09-14T16:46:03.8153265+08:00",
      "ID": "aa1ad9e4-aa46-477f-9e07-c4af6bbbaad4",
      "Sequence": 4,
      "PaymentTag": "sample string 5",
      "PaymentCode": "sample string 6",
      "Status": true,
      "Remarks": "sample string 8"
    },
    "MemberSetting": {
      "PurchaseMemberConfigs": {
        "ValidBalance": 1.1,
        "UsedBalance": 2.1,
        "CurrentBalance": 3.1,
        "Time": "2025-09-14T16:46:03.8153265+08:00",
        "ID": "fa093530-7238-4801-a2d4-11d279f00fd0",
        "Password": "sample string 6",
        "MinBalance": 7.1,
        "MaxBalance": 8.1,
        "Remarks": "sample string 9"
      },
      "PurchaseMemberExpandSettings": [
        {
          "ID": "c9bcf917-8de3-4dfa-a769-6a481b8725b2",
          "PurchaseMemberSettingId": "24f2deda-70a9-4798-8389-b9cb389abb80",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        },
        {
          "ID": "c9bcf917-8de3-4dfa-a769-6a481b8725b2",
          "PurchaseMemberSettingId": "24f2deda-70a9-4798-8389-b9cb389abb80",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        }
      ],
      "CompanyId": "sample string 1",
      "LastUsedTime": "2025-09-14T16:46:03.8153265+08:00",
      "Time": "2025-09-14T16:46:03.8153265+08:00",
      "ID": "06e14ecb-a47f-471d-bda6-be52910413b0",
      "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": "f7a96006-9128-4dbe-9e08-324e2572a76e",
      "Creater": "sample string 2"
    },
    "PurchaseIncludes": [
      {
        "ID": "1d8032bd-a1fa-4487-b4dd-b5158321a773",
        "PurchaseOrderId": "68526149-04ed-452e-8694-8fe281f77725",
        "PassengerId": "6ea7b98e-06ab-49d7-8ff7-3ecc00f1ee18",
        "TicketNumber": "sample string 4"
      },
      {
        "ID": "1d8032bd-a1fa-4487-b4dd-b5158321a773",
        "PurchaseOrderId": "68526149-04ed-452e-8694-8fe281f77725",
        "PassengerId": "6ea7b98e-06ab-49d7-8ff7-3ecc00f1ee18",
        "TicketNumber": "sample string 4"
      }
    ],
    "PurchaseMembers": [
      {
        "Time": "2025-09-14T16:46:03.8153265+08:00",
        "ID": "f4dcfc4a-ce21-482e-a269-2e153ae2a8a8",
        "PurchaseOrderId": "56a38f0b-169d-479e-9c05-36038650d8ba",
        "UserName": "sample string 4",
        "Password": "sample string 5",
        "ContactPhone": "sample string 6",
        "Remarks": "sample string 7",
        "MembersId": "sample string 8"
      },
      {
        "Time": "2025-09-14T16:46:03.8153265+08:00",
        "ID": "f4dcfc4a-ce21-482e-a269-2e153ae2a8a8",
        "PurchaseOrderId": "56a38f0b-169d-479e-9c05-36038650d8ba",
        "UserName": "sample string 4",
        "Password": "sample string 5",
        "ContactPhone": "sample string 6",
        "Remarks": "sample string 7",
        "MembersId": "sample string 8"
      }
    ],
    "PurchasePayables": [
      {
        "RecordType": 0,
        "Creater": "sample string 1",
        "Time": "2025-09-14T16:46:03.8153265+08:00",
        "ID": "f95ddea4-82a0-480d-ab00-bb28613a9009",
        "PurchaseOrderId": "6ae8923e-338e-4d2e-bbf4-978a2f5c38c7",
        "PayPrice": 5.1,
        "PaymentTag": "sample string 6",
        "PaymentCode": "sample string 7",
        "PaymentAccount": "sample string 8",
        "TransactionId": "sample string 9",
        "Reconciled": true,
        "Remarks": "sample string 11"
      },
      {
        "RecordType": 0,
        "Creater": "sample string 1",
        "Time": "2025-09-14T16:46:03.8153265+08:00",
        "ID": "f95ddea4-82a0-480d-ab00-bb28613a9009",
        "PurchaseOrderId": "6ae8923e-338e-4d2e-bbf4-978a2f5c38c7",
        "PayPrice": 5.1,
        "PaymentTag": "sample string 6",
        "PaymentCode": "sample string 7",
        "PaymentAccount": "sample string 8",
        "TransactionId": "sample string 9",
        "Reconciled": true,
        "Remarks": "sample string 11"
      }
    ],
    "PurchaseFollowups": [
      {
        "PurchasePayments": {
          "RecordType": 0,
          "Creater": "sample string 1",
          "Time": "2025-09-14T16:46:03.8153265+08:00",
          "ID": "196f0ac8-2bd7-498a-b376-8619dffc8a20",
          "ClaimlPrice": 4.1,
          "ServicePrice": 5.1,
          "Confirmed": true,
          "Reconciled": true,
          "TransactionId": "sample string 8",
          "Remarks": "sample string 9"
        },
        "RecordType": 0,
        "ApplyStatus": 0,
        "Creater": "sample string 1",
        "Time": "2025-09-14T16:46:03.8153265+08:00",
        "ID": "38e247e5-d151-4d2f-be30-be2a3c6740aa",
        "PurchaseOrderId": "ea4a0c50-c8bd-48f7-a9fd-6345c341c2c8",
        "ApplyType": 0,
        "Remarks": "sample string 5",
        "CSegmentId": "8bb3c804-2af8-4035-88b8-3d5aee1dfbf2",
        "LinkedId": "a117b385-1059-42cc-a280-6840f9c5881c",
        "PassengerIds": "sample string 6"
      },
      {
        "PurchasePayments": {
          "RecordType": 0,
          "Creater": "sample string 1",
          "Time": "2025-09-14T16:46:03.8153265+08:00",
          "ID": "196f0ac8-2bd7-498a-b376-8619dffc8a20",
          "ClaimlPrice": 4.1,
          "ServicePrice": 5.1,
          "Confirmed": true,
          "Reconciled": true,
          "TransactionId": "sample string 8",
          "Remarks": "sample string 9"
        },
        "RecordType": 0,
        "ApplyStatus": 0,
        "Creater": "sample string 1",
        "Time": "2025-09-14T16:46:03.8153265+08:00",
        "ID": "38e247e5-d151-4d2f-be30-be2a3c6740aa",
        "PurchaseOrderId": "ea4a0c50-c8bd-48f7-a9fd-6345c341c2c8",
        "ApplyType": 0,
        "Remarks": "sample string 5",
        "CSegmentId": "8bb3c804-2af8-4035-88b8-3d5aee1dfbf2",
        "LinkedId": "a117b385-1059-42cc-a280-6840f9c5881c",
        "PassengerIds": "sample string 6"
      }
    ],
    "RecordType": 0,
    "PaymentUri": "sample string 5",
    "Manual": true,
    "Creater": "sample string 6",
    "Time": "2025-09-14T16:46:03.8153265+08:00",
    "ID": "13c5f335-8e8d-4207-a7a3-83878a8ca4cb",
    "OrderId": "ffc6b441-178d-4919-842b-1679997d938a",
    "PurchaseOrderNumber": "sample string 10",
    "PurchaseOrderType": 0,
    "TotalPrice": 11.1,
    "PlatName": "sample string 12",
    "PurchaseTag": "sample string 13",
    "ProviderCode": "sample string 14",
    "CabinLevel": 0,
    "CabinCode": "sample string 15",
    "ProductRules": "sample string 16",
    "Remarks": "sample string 17"
  },
  "PurchaseRefundPayment": {
    "ClaimlPrice": 1.1,
    "ServicePrice": 2.1,
    "TransactionId": "sample string 3",
    "Remarks": "sample string 4"
  },
  "Succeed": true,
  "Message": "sample string 2"
}