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": "0e0e7668-a3bb-45b4-8f69-6e39c9f84924",
  "Confirmed": true,
  "LinkedId": "f462facb-808a-4474-b471-dff885e62519",
  "SettingKey": "sample string 3",
  "SettingValue": "sample string 4",
  "PassengerIds": [
    "9bcba1f0-b3f8-474e-b5be-7f12bdb8a511",
    "bd515b01-6d35-4570-857f-44392db586e1"
  ]
}

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": "d959ba23-bb8b-4edd-a0fd-1e01acecddc0",
    "LinkedId": "61e690cb-64c1-4ba3-864c-ecd8cc228ab8",
    "SettingKey": "sample string 3",
    "SettingValue": "sample string 4",
    "OPassengers": [
      {
        "TicketNumbers": [
          {
            "RecordType": 0,
            "Creater": "sample string 1",
            "Time": "2025-07-01T13:13:25.4992715+08:00",
            "ID": "b8ba7d9c-8eb0-474a-b0e4-b55bb50a6316",
            "PassengerId": "a47872bd-7436-4738-b174-877603b6607f",
            "TicketNumber": "sample string 5",
            "Posted": true,
            "Remarks": "sample string 7"
          },
          {
            "RecordType": 0,
            "Creater": "sample string 1",
            "Time": "2025-07-01T13:13:25.4992715+08:00",
            "ID": "b8ba7d9c-8eb0-474a-b0e4-b55bb50a6316",
            "PassengerId": "a47872bd-7436-4738-b174-877603b6607f",
            "TicketNumber": "sample string 5",
            "Posted": true,
            "Remarks": "sample string 7"
          }
        ],
        "OTotalPrices": [
          {
            "Time": "2025-07-01T13:13:25.4992715+08:00",
            "ID": "134b55a0-8ba3-4419-b1af-68b7bedd0dab",
            "PassengerId": "4a52e537-1c0c-42e3-8332-1e61429256e1",
            "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-07-01T13:13:25.4992715+08:00",
            "ID": "134b55a0-8ba3-4419-b1af-68b7bedd0dab",
            "PassengerId": "4a52e537-1c0c-42e3-8332-1e61429256e1",
            "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-07-01T13:13:25.4992715+08:00",
        "ID": "0f68d790-daf4-429e-8d7c-b801737f2530",
        "OrderId": "c241d55d-c05b-431f-ac1d-10ec49ff4c27",
        "Name": "sample string 4",
        "Birthday": "2025-07-01T13:13:25.4992715+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-07-01T13:13:25.4992715+08:00",
            "ID": "b8ba7d9c-8eb0-474a-b0e4-b55bb50a6316",
            "PassengerId": "a47872bd-7436-4738-b174-877603b6607f",
            "TicketNumber": "sample string 5",
            "Posted": true,
            "Remarks": "sample string 7"
          },
          {
            "RecordType": 0,
            "Creater": "sample string 1",
            "Time": "2025-07-01T13:13:25.4992715+08:00",
            "ID": "b8ba7d9c-8eb0-474a-b0e4-b55bb50a6316",
            "PassengerId": "a47872bd-7436-4738-b174-877603b6607f",
            "TicketNumber": "sample string 5",
            "Posted": true,
            "Remarks": "sample string 7"
          }
        ],
        "OTotalPrices": [
          {
            "Time": "2025-07-01T13:13:25.4992715+08:00",
            "ID": "134b55a0-8ba3-4419-b1af-68b7bedd0dab",
            "PassengerId": "4a52e537-1c0c-42e3-8332-1e61429256e1",
            "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-07-01T13:13:25.4992715+08:00",
            "ID": "134b55a0-8ba3-4419-b1af-68b7bedd0dab",
            "PassengerId": "4a52e537-1c0c-42e3-8332-1e61429256e1",
            "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-07-01T13:13:25.4992715+08:00",
        "ID": "0f68d790-daf4-429e-8d7c-b801737f2530",
        "OrderId": "c241d55d-c05b-431f-ac1d-10ec49ff4c27",
        "Name": "sample string 4",
        "Birthday": "2025-07-01T13:13:25.4992715+08:00",
        "CardType": 0,
        "CardNo": "sample string 5",
        "SexType": 0,
        "PassengerType": 0,
        "ContactPhone": "sample string 6"
      }
    ],
    "PaymentAccountSetting": {
      "AutoPaymentAccountConfigs": [
        {
          "ID": "9654d15a-d7c9-47c3-bf7f-ace254a4a4df",
          "AutoPaymentAccountSettingId": "80b340f3-ae6c-4e1b-8279-14786160d960",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        },
        {
          "ID": "9654d15a-d7c9-47c3-bf7f-ace254a4a4df",
          "AutoPaymentAccountSettingId": "80b340f3-ae6c-4e1b-8279-14786160d960",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        }
      ],
      "CompanyId": "sample string 1",
      "LastUsedTime": "2025-07-01T13:13:25.4992715+08:00",
      "Time": "2025-07-01T13:13:25.4992715+08:00",
      "ID": "8a26aae2-ea1b-44b0-8266-4b12bcd285e2",
      "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-07-01T13:13:25.4992715+08:00",
        "ID": "7787ec25-2d5c-47c8-bc26-8b41f84802d9",
        "Password": "sample string 6",
        "MinBalance": 7.1,
        "MaxBalance": 8.1,
        "Remarks": "sample string 9"
      },
      "PurchaseMemberExpandSettings": [
        {
          "ID": "6b476c83-e50a-486c-820e-d9fc04383538",
          "PurchaseMemberSettingId": "c9690709-7617-4bdc-b7fa-67c39901d93d",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        },
        {
          "ID": "6b476c83-e50a-486c-820e-d9fc04383538",
          "PurchaseMemberSettingId": "c9690709-7617-4bdc-b7fa-67c39901d93d",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        }
      ],
      "CompanyId": "sample string 1",
      "LastUsedTime": "2025-07-01T13:13:25.4992715+08:00",
      "Time": "2025-07-01T13:13:25.4992715+08:00",
      "ID": "59bb4a74-8984-4aec-a6a2-df61e94b0ae0",
      "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": "186451a0-6c98-49d2-ac4e-cc2f2b9ee15b",
      "Creater": "sample string 2"
    },
    "PurchaseIncludes": [
      {
        "ID": "53745de4-eb4a-498a-9b04-5e55fd9e6488",
        "PurchaseOrderId": "e9322c51-e37d-4385-b327-07bc717367d2",
        "PassengerId": "0ee6a81d-bc09-4765-9e5a-a1d54680c18e",
        "TicketNumber": "sample string 4"
      },
      {
        "ID": "53745de4-eb4a-498a-9b04-5e55fd9e6488",
        "PurchaseOrderId": "e9322c51-e37d-4385-b327-07bc717367d2",
        "PassengerId": "0ee6a81d-bc09-4765-9e5a-a1d54680c18e",
        "TicketNumber": "sample string 4"
      }
    ],
    "PurchaseMembers": [
      {
        "Time": "2025-07-01T13:13:25.4992715+08:00",
        "ID": "f8ccd173-ea48-4c6b-a144-9f553e6cc3a0",
        "PurchaseOrderId": "167eecae-bc78-4ca9-bbc6-a11285b37fbd",
        "UserName": "sample string 4",
        "Password": "sample string 5",
        "ContactPhone": "sample string 6",
        "Remarks": "sample string 7",
        "MembersId": "sample string 8"
      },
      {
        "Time": "2025-07-01T13:13:25.4992715+08:00",
        "ID": "f8ccd173-ea48-4c6b-a144-9f553e6cc3a0",
        "PurchaseOrderId": "167eecae-bc78-4ca9-bbc6-a11285b37fbd",
        "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-07-01T13:13:25.4992715+08:00",
        "ID": "3345a5e5-5b12-4746-acbe-d0173ef4c781",
        "PurchaseOrderId": "fdf4419e-4b2f-496a-a294-56ab43c6ec2e",
        "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-07-01T13:13:25.4992715+08:00",
        "ID": "3345a5e5-5b12-4746-acbe-d0173ef4c781",
        "PurchaseOrderId": "fdf4419e-4b2f-496a-a294-56ab43c6ec2e",
        "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-07-01T13:13:25.4992715+08:00",
          "ID": "5679c80c-7d18-4aed-a30d-6b84011aec6a",
          "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-07-01T13:13:25.4992715+08:00",
        "ID": "84c4bc28-3629-4ae6-9132-32b8dfe418ac",
        "PurchaseOrderId": "8a119935-fd64-476c-8e0d-7487bdee6d2f",
        "ApplyType": 0,
        "Remarks": "sample string 5",
        "CSegmentId": "5f7038a6-095d-4b7b-b343-25de710891bd",
        "LinkedId": "eb08dd4a-c4a0-4caa-94f3-1ab0be6b6951",
        "PassengerIds": "sample string 6"
      },
      {
        "PurchasePayments": {
          "RecordType": 0,
          "Creater": "sample string 1",
          "Time": "2025-07-01T13:13:25.4992715+08:00",
          "ID": "5679c80c-7d18-4aed-a30d-6b84011aec6a",
          "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-07-01T13:13:25.4992715+08:00",
        "ID": "84c4bc28-3629-4ae6-9132-32b8dfe418ac",
        "PurchaseOrderId": "8a119935-fd64-476c-8e0d-7487bdee6d2f",
        "ApplyType": 0,
        "Remarks": "sample string 5",
        "CSegmentId": "5f7038a6-095d-4b7b-b343-25de710891bd",
        "LinkedId": "eb08dd4a-c4a0-4caa-94f3-1ab0be6b6951",
        "PassengerIds": "sample string 6"
      }
    ],
    "RecordType": 0,
    "PaymentUri": "sample string 5",
    "Manual": true,
    "Creater": "sample string 6",
    "Time": "2025-07-01T13:13:25.4992715+08:00",
    "ID": "4a5ef59a-f23e-4892-b56b-5e7e67d95488",
    "OrderId": "1b71aebe-05ee-40d8-8692-594a13aad5fd",
    "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"
}