POST api/ApplePay/QueryOrderForUUid

Request Information

URI Parameters

None.

Body Parameters

QueryOrderReq
NameDescriptionTypeAdditional information
ReceiptData

凭据信息

string

None.

ReceiptType

环境,1是测试环境,0是正式环境,不传则为0

integer

None.

UnionId

用户编码

string

None.

Uuid

苹果的标识

string

None.

ProductId

产品编号

integer

None.

Token

令牌,唯一标识,主要用来验权

string

None.

ChannalId

渠道号

string

None.

Version

外部版本

string

None.

language

语言

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ReceiptData": "sample string 1",
  "ReceiptType": 2,
  "UnionId": "sample string 3",
  "Uuid": "sample string 4",
  "ProductId": 5,
  "Token": "sample string 6",
  "ChannalId": "sample string 7",
  "Version": "sample string 8",
  "language": "sample string 9"
}

application/xml, text/xml

Sample:
<QueryOrderReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">
  <ChannalId>sample string 7</ChannalId>
  <ProductId>5</ProductId>
  <Token>sample string 6</Token>
  <Version>sample string 8</Version>
  <language>sample string 9</language>
  <ReceiptData>sample string 1</ReceiptData>
  <ReceiptType>2</ReceiptType>
  <UnionId>sample string 3</UnionId>
  <Uuid>sample string 4</Uuid>
</QueryOrderReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

QueryOrderRes
NameDescriptionTypeAdditional information
QueryResult

查询的具体内容

string

None.

UnionId

用户唯一值

string

None.

Message

消息

string

None.

Status

状态,默认情况下,1为成功。0为失败。99为权限验证失败。

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "QueryResult": "sample string 1",
  "UnionId": "sample string 2",
  "Message": "sample string 3",
  "Status": 4
}

application/xml, text/xml

Sample:
<QueryOrderRes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">
  <Message>sample string 3</Message>
  <Status>4</Status>
  <QueryResult>sample string 1</QueryResult>
  <UnionId>sample string 2</UnionId>
</QueryOrderRes>