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": "d39de19d-ad82-40d9-b561-4390d03bba9b",
  "Confirmed": true,
  "LinkedId": "d7fdb870-e8d4-4fda-947a-c6c937109ab6",
  "SettingKey": "sample string 3",
  "SettingValue": "sample string 4",
  "PassengerIds": [
    "3763988d-28f4-488a-a22f-36f432255f3e",
    "a37f8150-02ca-4361-93f1-577a7c08ce37"
  ]
}

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": "e6c3f369-633a-446d-8125-e2c56a55df20",
    "LinkedId": "86540aee-6949-4932-9966-e24cbb58caea",
    "SettingKey": "sample string 3",
    "SettingValue": "sample string 4",
    "OPassengers": [
      {
        "TicketNumbers": [
          {
            "RecordType": 0,
            "Creater": "sample string 1",
            "Time": "2026-03-25T04:04:50.9253413+08:00",
            "ID": "47d9a861-8ab6-4fab-893b-785c12891012",
            "PassengerId": "c8d13a5b-0d39-4061-ac72-3d1a45cee3fd",
            "TicketNumber": "sample string 5",
            "Posted": true,
            "Remarks": "sample string 7"
          },
          {
            "RecordType": 0,
            "Creater": "sample string 1",
            "Time": "2026-03-25T04:04:50.9253413+08:00",
            "ID": "47d9a861-8ab6-4fab-893b-785c12891012",
            "PassengerId": "c8d13a5b-0d39-4061-ac72-3d1a45cee3fd",
            "TicketNumber": "sample string 5",
            "Posted": true,
            "Remarks": "sample string 7"
          }
        ],
        "OTotalPrices": [
          {
            "Time": "2026-03-25T04:04:50.9253413+08:00",
            "ID": "872f7d2e-fea6-463e-b7ee-08b62fb2ae83",
            "PassengerId": "86942f36-d12d-4383-987b-f1d171fbda99",
            "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-03-25T04:04:50.9253413+08:00",
            "ID": "872f7d2e-fea6-463e-b7ee-08b62fb2ae83",
            "PassengerId": "86942f36-d12d-4383-987b-f1d171fbda99",
            "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-03-25T04:04:50.9253413+08:00",
        "ID": "3f0848ad-aac0-4f07-85fe-5ac5430fc617",
        "OrderId": "183e5c5e-7a05-48f2-85e4-dec52b114dac",
        "Name": "sample string 4",
        "Birthday": "2026-03-25T04:04:50.9253413+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-03-25T04:04:50.9253413+08:00",
            "ID": "47d9a861-8ab6-4fab-893b-785c12891012",
            "PassengerId": "c8d13a5b-0d39-4061-ac72-3d1a45cee3fd",
            "TicketNumber": "sample string 5",
            "Posted": true,
            "Remarks": "sample string 7"
          },
          {
            "RecordType": 0,
            "Creater": "sample string 1",
            "Time": "2026-03-25T04:04:50.9253413+08:00",
            "ID": "47d9a861-8ab6-4fab-893b-785c12891012",
            "PassengerId": "c8d13a5b-0d39-4061-ac72-3d1a45cee3fd",
            "TicketNumber": "sample string 5",
            "Posted": true,
            "Remarks": "sample string 7"
          }
        ],
        "OTotalPrices": [
          {
            "Time": "2026-03-25T04:04:50.9253413+08:00",
            "ID": "872f7d2e-fea6-463e-b7ee-08b62fb2ae83",
            "PassengerId": "86942f36-d12d-4383-987b-f1d171fbda99",
            "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-03-25T04:04:50.9253413+08:00",
            "ID": "872f7d2e-fea6-463e-b7ee-08b62fb2ae83",
            "PassengerId": "86942f36-d12d-4383-987b-f1d171fbda99",
            "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-03-25T04:04:50.9253413+08:00",
        "ID": "3f0848ad-aac0-4f07-85fe-5ac5430fc617",
        "OrderId": "183e5c5e-7a05-48f2-85e4-dec52b114dac",
        "Name": "sample string 4",
        "Birthday": "2026-03-25T04:04:50.9253413+08:00",
        "CardType": 0,
        "CardNo": "sample string 5",
        "SexType": 0,
        "PassengerType": 0,
        "ContactPhone": "sample string 6"
      }
    ],
    "PaymentAccountSetting": {
      "AutoPaymentAccountConfigs": [
        {
          "ID": "001a516e-b378-4ad1-9eb9-640869f21f36",
          "AutoPaymentAccountSettingId": "48eee616-1878-4371-a877-aeaf28398a0a",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        },
        {
          "ID": "001a516e-b378-4ad1-9eb9-640869f21f36",
          "AutoPaymentAccountSettingId": "48eee616-1878-4371-a877-aeaf28398a0a",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        }
      ],
      "CompanyId": "sample string 1",
      "LastUsedTime": "2026-03-25T04:04:50.9253413+08:00",
      "Time": "2026-03-25T04:04:50.9253413+08:00",
      "ID": "b2b694a0-8501-42c4-9c72-f05e3982a0f3",
      "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": "2026-03-25T04:04:50.9253413+08:00",
        "ID": "26f430c4-a60c-4681-8a3c-f81fb7347eaa",
        "Password": "sample string 6",
        "MinBalance": 7.1,
        "MaxBalance": 8.1,
        "Remarks": "sample string 9"
      },
      "PurchaseMemberExpandSettings": [
        {
          "ID": "298a9cea-3851-45f8-b754-c58ac55dbbaf",
          "PurchaseMemberSettingId": "f509e6f3-ed3b-40e1-9046-ac5efc69cc65",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        },
        {
          "ID": "298a9cea-3851-45f8-b754-c58ac55dbbaf",
          "PurchaseMemberSettingId": "f509e6f3-ed3b-40e1-9046-ac5efc69cc65",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        }
      ],
      "CompanyId": "sample string 1",
      "LastUsedTime": "2026-03-25T04:04:50.9253413+08:00",
      "Time": "2026-03-25T04:04:50.9253413+08:00",
      "ID": "4e88631c-d9ac-4b95-b8d5-b0322c5da306",
      "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": "e60d6a9a-f963-441c-98aa-40dcb2334757",
      "Creater": "sample string 2"
    },
    "PurchaseIncludes": [
      {
        "ID": "31ad6229-03ec-49f0-b9cf-adbe7ebc107d",
        "PurchaseOrderId": "47b068ae-6be8-467e-9eba-7473628da9ce",
        "PassengerId": "65e4b14e-60b5-4d48-a5ee-92a5bd60ab3e",
        "TicketNumber": "sample string 4"
      },
      {
        "ID": "31ad6229-03ec-49f0-b9cf-adbe7ebc107d",
        "PurchaseOrderId": "47b068ae-6be8-467e-9eba-7473628da9ce",
        "PassengerId": "65e4b14e-60b5-4d48-a5ee-92a5bd60ab3e",
        "TicketNumber": "sample string 4"
      }
    ],
    "PurchaseMembers": [
      {
        "Time": "2026-03-25T04:04:50.9253413+08:00",
        "ID": "38181595-1860-4299-bf64-abd6afa98a7e",
        "PurchaseOrderId": "a828bbdf-8948-4440-8c7a-bdf544ee1941",
        "UserName": "sample string 4",
        "Password": "sample string 5",
        "ContactPhone": "sample string 6",
        "Remarks": "sample string 7",
        "MembersId": "sample string 8"
      },
      {
        "Time": "2026-03-25T04:04:50.9253413+08:00",
        "ID": "38181595-1860-4299-bf64-abd6afa98a7e",
        "PurchaseOrderId": "a828bbdf-8948-4440-8c7a-bdf544ee1941",
        "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": "2026-03-25T04:04:50.9253413+08:00",
        "ID": "eb2f6d32-3eb2-41f8-9fe9-edf228d9a8cc",
        "PurchaseOrderId": "0abb2c38-38ae-47e3-b5d5-4eb349b99c03",
        "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": "2026-03-25T04:04:50.9253413+08:00",
        "ID": "eb2f6d32-3eb2-41f8-9fe9-edf228d9a8cc",
        "PurchaseOrderId": "0abb2c38-38ae-47e3-b5d5-4eb349b99c03",
        "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": "2026-03-25T04:04:50.9253413+08:00",
          "ID": "a9f07369-082f-4272-9a55-d5bbd0a543fd",
          "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": "2026-03-25T04:04:50.9253413+08:00",
        "ID": "abedf28a-6199-4dee-94a7-6c51e12c44c7",
        "PurchaseOrderId": "b4c4c63e-abfc-48f2-a8c3-8a9c42e97ffc",
        "ApplyType": 0,
        "Remarks": "sample string 5",
        "CSegmentId": "c40b5619-6298-4931-89f4-10cfe30a8882",
        "LinkedId": "367e4e3b-95f9-4655-9e6f-1a3839a5edd8",
        "PassengerIds": "sample string 6"
      },
      {
        "PurchasePayments": {
          "RecordType": 0,
          "Creater": "sample string 1",
          "Time": "2026-03-25T04:04:50.9253413+08:00",
          "ID": "a9f07369-082f-4272-9a55-d5bbd0a543fd",
          "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": "2026-03-25T04:04:50.9253413+08:00",
        "ID": "abedf28a-6199-4dee-94a7-6c51e12c44c7",
        "PurchaseOrderId": "b4c4c63e-abfc-48f2-a8c3-8a9c42e97ffc",
        "ApplyType": 0,
        "Remarks": "sample string 5",
        "CSegmentId": "c40b5619-6298-4931-89f4-10cfe30a8882",
        "LinkedId": "367e4e3b-95f9-4655-9e6f-1a3839a5edd8",
        "PassengerIds": "sample string 6"
      }
    ],
    "RecordType": 0,
    "PaymentUri": "sample string 5",
    "Manual": true,
    "Creater": "sample string 6",
    "Time": "2026-03-25T04:04:50.9253413+08:00",
    "ID": "df58456a-1d16-431b-8350-e0cab1f63016",
    "OrderId": "ad09d6c7-03f3-4a7d-b007-9bd28eaa52c4",
    "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"
}