POST api/v1/SelfCheckin/QRCodePayQuery

查询扫码支付结果

请求信息(Request)

URI 参数

None.

Body 参数

HotelQrCodePayQuery
名称描述类型备注
Source

0:默认自助机订单支付查询 1:会员充值支付查询

integer

None.

HotelId

酒店id

integer

None.

PayType

支付类型

PayType

None.

TradeNo

对应OutTradeNo

string

None.

OutTradeId

支付单Id

integer

None.

UseType

支付用途

PayUseType

None.

请求格式

application/json, text/json

Sample:
{
  "Source": 1,
  "HotelId": 2,
  "PayType": 0,
  "TradeNo": "sample string 3",
  "OutTradeId": 4,
  "UseType": 0
}

application/xml, text/xml

Sample:
<HotelQrCodePayQuery xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.Application.DTOs">
  <HotelId>2</HotelId>
  <OutTradeId>4</OutTradeId>
  <PayType>Offline</PayType>
  <Source>1</Source>
  <TradeNo>sample string 3</TradeNo>
  <UseType>PmsOrder</UseType>
</HotelQrCodePayQuery>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'HotelQrCodePayQuery'.

响应信息(Response)

资源描述

RequestResultOfHotelQrPayResult
名称描述类型备注
Data

HotelQrPayResult

None.

Status

状态(0:成功,1:失败)

integer

None.

Message

导致失败的相关消息

string

None.

Total

集合总数,用于分页时使用

integer

None.

响应格式

application/json, text/json

Sample:
{
  "Data": {
    "OutTradeId": 1,
    "OrderId": "sample string 2",
    "RegOrderId": "sample string 3",
    "Amount": 4.0,
    "PayType": 0,
    "UseType": 0,
    "PostTimestamp": "sample string 5",
    "QRCodeUrl": "sample string 6",
    "TradeNo": "sample string 7",
    "State": "sample string 8",
    "PayTime": "2025-05-04T17:00:35.0118095+08:00",
    "PayTypeName": "线下支付",
    "Status": 9,
    "Message": "sample string 10"
  },
  "Status": 1,
  "Message": "sample string 2",
  "Total": 3
}

application/xml, text/xml

Sample:
<RequestResultOfHotelQrPayResult6NgmDdgv xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.Application">
  <Message>sample string 2</Message>
  <Status>1</Status>
  <Total>3</Total>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/WLife.Application.DTOs">
    <d2p1:Message>sample string 10</d2p1:Message>
    <d2p1:Status>9</d2p1:Status>
    <d2p1:Amount>4</d2p1:Amount>
    <d2p1:OrderId>sample string 2</d2p1:OrderId>
    <d2p1:OutTradeId>1</d2p1:OutTradeId>
    <d2p1:PayTime>2025-05-04T17:00:35.0118095+08:00</d2p1:PayTime>
    <d2p1:PayType>Offline</d2p1:PayType>
    <d2p1:PostTimestamp>sample string 5</d2p1:PostTimestamp>
    <d2p1:QRCodeUrl>sample string 6</d2p1:QRCodeUrl>
    <d2p1:RegOrderId>sample string 3</d2p1:RegOrderId>
    <d2p1:State>sample string 8</d2p1:State>
    <d2p1:TradeNo>sample string 7</d2p1:TradeNo>
    <d2p1:UseType>PmsOrder</d2p1:UseType>
  </Data>
</RequestResultOfHotelQrPayResult6NgmDdgv>