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": "ecda3d58-1875-46ed-8d52-255907579efe",
  "Confirmed": true,
  "LinkedId": "1c5f3359-80d9-44e2-9c17-276918cc45df",
  "SettingKey": "sample string 3",
  "SettingValue": "sample string 4",
  "PassengerIds": [
    "6cc99b64-a88b-49e2-85b0-ce10e7fdfe20",
    "b6823e66-4275-4bce-9f60-4c93be55b8c0"
  ]
}

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": "361e2301-e189-4b06-bf2c-336fc5faf658",
    "LinkedId": "87e27f65-e035-4209-8480-060c0c3e37a4",
    "SettingKey": "sample string 3",
    "SettingValue": "sample string 4",
    "OPassengers": [
      {
        "TicketNumbers": [
          {
            "RecordType": 0,
            "Creater": "sample string 1",
            "Time": "2025-11-01T21:46:49.207708+08:00",
            "ID": "17d9a5ad-fff0-4310-a964-bd6687081ce8",
            "PassengerId": "8df3665e-3948-48ca-b3fe-bdecb99ded2e",
            "TicketNumber": "sample string 5",
            "Posted": true,
            "Remarks": "sample string 7"
          },
          {
            "RecordType": 0,
            "Creater": "sample string 1",
            "Time": "2025-11-01T21:46:49.207708+08:00",
            "ID": "17d9a5ad-fff0-4310-a964-bd6687081ce8",
            "PassengerId": "8df3665e-3948-48ca-b3fe-bdecb99ded2e",
            "TicketNumber": "sample string 5",
            "Posted": true,
            "Remarks": "sample string 7"
          }
        ],
        "OTotalPrices": [
          {
            "Time": "2025-11-01T21:46:49.207708+08:00",
            "ID": "1777fc14-f4f4-4961-9d64-26d347ebf148",
            "PassengerId": "c5073952-2910-4a96-8bb0-27c842a681d1",
            "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-11-01T21:46:49.207708+08:00",
            "ID": "1777fc14-f4f4-4961-9d64-26d347ebf148",
            "PassengerId": "c5073952-2910-4a96-8bb0-27c842a681d1",
            "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-11-01T21:46:49.207708+08:00",
        "ID": "3ded8293-319a-47b7-92da-da0dba590dee",
        "OrderId": "1dab98c0-0e6f-4975-96b9-9a04282dd8da",
        "Name": "sample string 4",
        "Birthday": "2025-11-01T21:46:49.207708+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-11-01T21:46:49.207708+08:00",
            "ID": "17d9a5ad-fff0-4310-a964-bd6687081ce8",
            "PassengerId": "8df3665e-3948-48ca-b3fe-bdecb99ded2e",
            "TicketNumber": "sample string 5",
            "Posted": true,
            "Remarks": "sample string 7"
          },
          {
            "RecordType": 0,
            "Creater": "sample string 1",
            "Time": "2025-11-01T21:46:49.207708+08:00",
            "ID": "17d9a5ad-fff0-4310-a964-bd6687081ce8",
            "PassengerId": "8df3665e-3948-48ca-b3fe-bdecb99ded2e",
            "TicketNumber": "sample string 5",
            "Posted": true,
            "Remarks": "sample string 7"
          }
        ],
        "OTotalPrices": [
          {
            "Time": "2025-11-01T21:46:49.207708+08:00",
            "ID": "1777fc14-f4f4-4961-9d64-26d347ebf148",
            "PassengerId": "c5073952-2910-4a96-8bb0-27c842a681d1",
            "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-11-01T21:46:49.207708+08:00",
            "ID": "1777fc14-f4f4-4961-9d64-26d347ebf148",
            "PassengerId": "c5073952-2910-4a96-8bb0-27c842a681d1",
            "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-11-01T21:46:49.207708+08:00",
        "ID": "3ded8293-319a-47b7-92da-da0dba590dee",
        "OrderId": "1dab98c0-0e6f-4975-96b9-9a04282dd8da",
        "Name": "sample string 4",
        "Birthday": "2025-11-01T21:46:49.207708+08:00",
        "CardType": 0,
        "CardNo": "sample string 5",
        "SexType": 0,
        "PassengerType": 0,
        "ContactPhone": "sample string 6"
      }
    ],
    "PaymentAccountSetting": {
      "AutoPaymentAccountConfigs": [
        {
          "ID": "4b766605-fabc-45ea-ade6-7b17ff4ff253",
          "AutoPaymentAccountSettingId": "1113d7c7-021a-47fe-aee0-c2868b0d745c",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        },
        {
          "ID": "4b766605-fabc-45ea-ade6-7b17ff4ff253",
          "AutoPaymentAccountSettingId": "1113d7c7-021a-47fe-aee0-c2868b0d745c",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        }
      ],
      "CompanyId": "sample string 1",
      "LastUsedTime": "2025-11-01T21:46:49.207708+08:00",
      "Time": "2025-11-01T21:46:49.207708+08:00",
      "ID": "12b70b06-ac9e-4e3d-9ebd-e95884a855eb",
      "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-11-01T21:46:49.207708+08:00",
        "ID": "8d028998-b4e1-4bd1-9dc9-2c354bd4fb04",
        "Password": "sample string 6",
        "MinBalance": 7.1,
        "MaxBalance": 8.1,
        "Remarks": "sample string 9"
      },
      "PurchaseMemberExpandSettings": [
        {
          "ID": "d6b16052-2a82-44dc-b5d4-01f5d1657ec7",
          "PurchaseMemberSettingId": "7560e328-1097-4d03-91db-f6d2d1428127",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        },
        {
          "ID": "d6b16052-2a82-44dc-b5d4-01f5d1657ec7",
          "PurchaseMemberSettingId": "7560e328-1097-4d03-91db-f6d2d1428127",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        }
      ],
      "CompanyId": "sample string 1",
      "LastUsedTime": "2025-11-01T21:46:49.207708+08:00",
      "Time": "2025-11-01T21:46:49.207708+08:00",
      "ID": "73139789-ba7d-4b20-93d6-6d949a66b956",
      "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": "c3ee3e3e-6b4e-49c7-92fb-34bc4dd4b685",
      "Creater": "sample string 2"
    },
    "PurchaseIncludes": [
      {
        "ID": "7c32a441-d5b1-4648-b76a-e825a5b2011b",
        "PurchaseOrderId": "fc0d57d1-8974-4a48-b15a-3f39f7ec1827",
        "PassengerId": "469d7ff1-e2d0-41d8-af69-6146098d29e9",
        "TicketNumber": "sample string 4"
      },
      {
        "ID": "7c32a441-d5b1-4648-b76a-e825a5b2011b",
        "PurchaseOrderId": "fc0d57d1-8974-4a48-b15a-3f39f7ec1827",
        "PassengerId": "469d7ff1-e2d0-41d8-af69-6146098d29e9",
        "TicketNumber": "sample string 4"
      }
    ],
    "PurchaseMembers": [
      {
        "Time": "2025-11-01T21:46:49.207708+08:00",
        "ID": "7a510f6a-4ad7-4e58-82a2-837e3a3916e8",
        "PurchaseOrderId": "584d1ab6-5fb1-4f8d-9c11-392b1df41cf0",
        "UserName": "sample string 4",
        "Password": "sample string 5",
        "ContactPhone": "sample string 6",
        "Remarks": "sample string 7",
        "MembersId": "sample string 8"
      },
      {
        "Time": "2025-11-01T21:46:49.207708+08:00",
        "ID": "7a510f6a-4ad7-4e58-82a2-837e3a3916e8",
        "PurchaseOrderId": "584d1ab6-5fb1-4f8d-9c11-392b1df41cf0",
        "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-11-01T21:46:49.207708+08:00",
        "ID": "3e2fcebf-a901-4b66-b25f-4996eae1b563",
        "PurchaseOrderId": "dd824c92-a9d0-45fb-a847-600ddaed2ea8",
        "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-11-01T21:46:49.207708+08:00",
        "ID": "3e2fcebf-a901-4b66-b25f-4996eae1b563",
        "PurchaseOrderId": "dd824c92-a9d0-45fb-a847-600ddaed2ea8",
        "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-11-01T21:46:49.207708+08:00",
          "ID": "8b9ce9f0-ac15-4f6e-a632-9fc79e81263b",
          "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-11-01T21:46:49.207708+08:00",
        "ID": "5c6c6a28-cafa-4f4a-918d-f577d55e20a4",
        "PurchaseOrderId": "5c1f2828-7c4d-42f2-9d6a-c86af713d09f",
        "ApplyType": 0,
        "Remarks": "sample string 5",
        "CSegmentId": "a4be7760-018e-4828-b824-6c1627208313",
        "LinkedId": "9acdd68f-bc08-4522-986c-b0ff3c50d115",
        "PassengerIds": "sample string 6"
      },
      {
        "PurchasePayments": {
          "RecordType": 0,
          "Creater": "sample string 1",
          "Time": "2025-11-01T21:46:49.207708+08:00",
          "ID": "8b9ce9f0-ac15-4f6e-a632-9fc79e81263b",
          "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-11-01T21:46:49.207708+08:00",
        "ID": "5c6c6a28-cafa-4f4a-918d-f577d55e20a4",
        "PurchaseOrderId": "5c1f2828-7c4d-42f2-9d6a-c86af713d09f",
        "ApplyType": 0,
        "Remarks": "sample string 5",
        "CSegmentId": "a4be7760-018e-4828-b824-6c1627208313",
        "LinkedId": "9acdd68f-bc08-4522-986c-b0ff3c50d115",
        "PassengerIds": "sample string 6"
      }
    ],
    "RecordType": 0,
    "PaymentUri": "sample string 5",
    "Manual": true,
    "Creater": "sample string 6",
    "Time": "2025-11-01T21:46:49.207708+08:00",
    "ID": "755f4294-9f23-4b24-85f2-4fffb9ae9a93",
    "OrderId": "fbbade8e-fc6d-4877-8054-a866a8df3142",
    "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"
}