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": "a5651057-4dc4-41ac-87ed-ea2d1817ef98",
  "Confirmed": true,
  "LinkedId": "e72f939d-4d3c-4635-ba5d-02bf7b6ddcec",
  "SettingKey": "sample string 3",
  "SettingValue": "sample string 4",
  "PassengerIds": [
    "fdfbf57d-8600-4334-8951-0ba89cd16b1d",
    "37ce7773-9dfa-452c-8d79-91f20f7b5293"
  ]
}

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": "4a780ee1-db18-43b7-a602-1643ecbd5e43",
    "LinkedId": "5eac9a1f-857d-47b0-98e7-32dfe41a31f4",
    "SettingKey": "sample string 3",
    "SettingValue": "sample string 4",
    "OPassengers": [
      {
        "TicketNumbers": [
          {
            "RecordType": 0,
            "Creater": "sample string 1",
            "Time": "2026-09-24T06:23:47.9909267+08:00",
            "ID": "63b324a3-49ef-47e9-8c14-530196352230",
            "PassengerId": "d6341e87-317c-474c-86a5-fcaffd759adb",
            "TicketNumber": "sample string 5",
            "Posted": true,
            "Remarks": "sample string 7"
          },
          {
            "RecordType": 0,
            "Creater": "sample string 1",
            "Time": "2026-09-24T06:23:47.9909267+08:00",
            "ID": "63b324a3-49ef-47e9-8c14-530196352230",
            "PassengerId": "d6341e87-317c-474c-86a5-fcaffd759adb",
            "TicketNumber": "sample string 5",
            "Posted": true,
            "Remarks": "sample string 7"
          }
        ],
        "OTotalPrices": [
          {
            "Time": "2026-09-24T06:23:47.9909267+08:00",
            "ID": "e0aa11b9-bf04-4aa0-8012-28d85a349c22",
            "PassengerId": "67d43468-d538-4203-8b34-a91ee2df9ee3",
            "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-09-24T06:23:47.9909267+08:00",
            "ID": "e0aa11b9-bf04-4aa0-8012-28d85a349c22",
            "PassengerId": "67d43468-d538-4203-8b34-a91ee2df9ee3",
            "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-09-24T06:23:47.9909267+08:00",
        "ID": "4f7604a3-3cac-494d-85e0-9a1b6fec1987",
        "OrderId": "5bac3038-c17c-4640-b5f0-f39e4ac59dc7",
        "Name": "sample string 4",
        "Birthday": "2026-09-24T06:23:47.9909267+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-09-24T06:23:47.9909267+08:00",
            "ID": "63b324a3-49ef-47e9-8c14-530196352230",
            "PassengerId": "d6341e87-317c-474c-86a5-fcaffd759adb",
            "TicketNumber": "sample string 5",
            "Posted": true,
            "Remarks": "sample string 7"
          },
          {
            "RecordType": 0,
            "Creater": "sample string 1",
            "Time": "2026-09-24T06:23:47.9909267+08:00",
            "ID": "63b324a3-49ef-47e9-8c14-530196352230",
            "PassengerId": "d6341e87-317c-474c-86a5-fcaffd759adb",
            "TicketNumber": "sample string 5",
            "Posted": true,
            "Remarks": "sample string 7"
          }
        ],
        "OTotalPrices": [
          {
            "Time": "2026-09-24T06:23:47.9909267+08:00",
            "ID": "e0aa11b9-bf04-4aa0-8012-28d85a349c22",
            "PassengerId": "67d43468-d538-4203-8b34-a91ee2df9ee3",
            "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-09-24T06:23:47.9909267+08:00",
            "ID": "e0aa11b9-bf04-4aa0-8012-28d85a349c22",
            "PassengerId": "67d43468-d538-4203-8b34-a91ee2df9ee3",
            "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-09-24T06:23:47.9909267+08:00",
        "ID": "4f7604a3-3cac-494d-85e0-9a1b6fec1987",
        "OrderId": "5bac3038-c17c-4640-b5f0-f39e4ac59dc7",
        "Name": "sample string 4",
        "Birthday": "2026-09-24T06:23:47.9909267+08:00",
        "CardType": 0,
        "CardNo": "sample string 5",
        "SexType": 0,
        "PassengerType": 0,
        "ContactPhone": "sample string 6"
      }
    ],
    "PaymentAccountSetting": {
      "AutoPaymentAccountConfigs": [
        {
          "ID": "9c31c79b-c0f1-46c2-8d56-5c51aa48aecc",
          "AutoPaymentAccountSettingId": "fae0f518-aeb4-464d-814d-18836278e853",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        },
        {
          "ID": "9c31c79b-c0f1-46c2-8d56-5c51aa48aecc",
          "AutoPaymentAccountSettingId": "fae0f518-aeb4-464d-814d-18836278e853",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        }
      ],
      "CompanyId": "sample string 1",
      "LastUsedTime": "2026-09-24T06:23:47.9909267+08:00",
      "Time": "2026-09-24T06:23:47.9909267+08:00",
      "ID": "63a00edb-6658-4d21-876a-6553a706f175",
      "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-09-24T06:23:47.9909267+08:00",
        "ID": "ad596761-079a-4860-99f9-5540cc1f0606",
        "Password": "sample string 6",
        "MinBalance": 7.1,
        "MaxBalance": 8.1,
        "Remarks": "sample string 9"
      },
      "PurchaseMemberExpandSettings": [
        {
          "ID": "41b8cd06-40d2-4424-ac37-f6f357ade8b3",
          "PurchaseMemberSettingId": "af0c1849-878e-412c-b05e-8e3150baaf92",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        },
        {
          "ID": "41b8cd06-40d2-4424-ac37-f6f357ade8b3",
          "PurchaseMemberSettingId": "af0c1849-878e-412c-b05e-8e3150baaf92",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        }
      ],
      "CompanyId": "sample string 1",
      "LastUsedTime": "2026-09-24T06:23:47.9909267+08:00",
      "Time": "2026-09-24T06:23:47.9909267+08:00",
      "ID": "cbdddea5-40a3-4f64-9f9f-db36d890d131",
      "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": "4d2b83ba-60cb-44b9-8dd8-34b8e69b8df5",
      "Creater": "sample string 2"
    },
    "PurchaseIncludes": [
      {
        "ID": "1e60c87c-982e-4eba-8963-359be0d2e7e6",
        "PurchaseOrderId": "a8026c68-c2a9-4600-8ec5-009a3d334fa9",
        "PassengerId": "9ae7cab2-f7c1-4097-90bd-e25f0360b279",
        "TicketNumber": "sample string 4"
      },
      {
        "ID": "1e60c87c-982e-4eba-8963-359be0d2e7e6",
        "PurchaseOrderId": "a8026c68-c2a9-4600-8ec5-009a3d334fa9",
        "PassengerId": "9ae7cab2-f7c1-4097-90bd-e25f0360b279",
        "TicketNumber": "sample string 4"
      }
    ],
    "PurchaseMembers": [
      {
        "Time": "2026-09-24T06:23:47.9909267+08:00",
        "ID": "2a490f16-3e14-494d-8f3b-5db9b3498ff3",
        "PurchaseOrderId": "366caafb-3eb2-4447-95da-514dab0d3994",
        "UserName": "sample string 4",
        "Password": "sample string 5",
        "ContactPhone": "sample string 6",
        "Remarks": "sample string 7",
        "MembersId": "sample string 8"
      },
      {
        "Time": "2026-09-24T06:23:47.9909267+08:00",
        "ID": "2a490f16-3e14-494d-8f3b-5db9b3498ff3",
        "PurchaseOrderId": "366caafb-3eb2-4447-95da-514dab0d3994",
        "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-09-24T06:23:47.9909267+08:00",
        "ID": "79e9a7e3-cfca-4b24-94c9-9a329f32b372",
        "PurchaseOrderId": "e0fd273f-fe55-41b2-a65d-72cf8f3d312c",
        "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-09-24T06:23:47.9909267+08:00",
        "ID": "79e9a7e3-cfca-4b24-94c9-9a329f32b372",
        "PurchaseOrderId": "e0fd273f-fe55-41b2-a65d-72cf8f3d312c",
        "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-09-24T06:23:47.9909267+08:00",
          "ID": "e01f7ee2-d224-4787-8d7d-e029577fae4d",
          "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-09-24T06:23:47.9909267+08:00",
        "ID": "ef371fc3-a946-4937-99b1-9f6c400e86ff",
        "PurchaseOrderId": "7a1403b9-2950-4112-923b-f3e5d6fb9541",
        "ApplyType": 0,
        "Remarks": "sample string 5",
        "CSegmentId": "55244e6c-680e-48ab-a88e-5934057a3199",
        "LinkedId": "9ad1d868-5caf-43d4-80d2-a558e19f6c9a",
        "PassengerIds": "sample string 6"
      },
      {
        "PurchasePayments": {
          "RecordType": 0,
          "Creater": "sample string 1",
          "Time": "2026-09-24T06:23:47.9909267+08:00",
          "ID": "e01f7ee2-d224-4787-8d7d-e029577fae4d",
          "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-09-24T06:23:47.9909267+08:00",
        "ID": "ef371fc3-a946-4937-99b1-9f6c400e86ff",
        "PurchaseOrderId": "7a1403b9-2950-4112-923b-f3e5d6fb9541",
        "ApplyType": 0,
        "Remarks": "sample string 5",
        "CSegmentId": "55244e6c-680e-48ab-a88e-5934057a3199",
        "LinkedId": "9ad1d868-5caf-43d4-80d2-a558e19f6c9a",
        "PassengerIds": "sample string 6"
      }
    ],
    "RecordType": 0,
    "PaymentUri": "sample string 5",
    "Manual": true,
    "Creater": "sample string 6",
    "Time": "2026-09-24T06:23:47.9909267+08:00",
    "ID": "a74ff42f-5d6a-42b4-b247-32b8621aaf1b",
    "OrderId": "829feaf9-79a1-4c79-94a0-448fa1347c09",
    "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"
}