订阅订单查询
用于获取订阅数据,以及查询订阅订单详情。
Content-Type: application/json; charset=UTF-8 ❌
Content-Type: application/json ✅
请求参数
POST
名称 | 类型 | 长度 | 必填 | 签名 | 描述 |
---|---|---|---|---|---|
merchantNo | String | 20 | Yes | Yes | 商户号。商户注册时,OnerWay 会为商户创建商户号 |
contractId | String | / | Yes | Yes | 订阅合同ID |
sign | String | / | Yes | No | 签名字符串,请参阅签名接口 |
响应参数
名称 | 类型 | 签名 | 描述 |
---|---|---|---|
respCode | String | No | 来自 Onerway 的响应码 |
respMsg | String | No | 来自 Onerway 的响应信息 |
data | Map | No | 响应数据。请参阅对象 Data |
Data
名称 | 类型 | 描述 |
---|---|---|
contractId | Integer | 订阅合同ID |
merchantNo | Integer | 商户号 |
merchantCustomerId | String | 商户客户号 |
products | String | 商品信息 |
orderAmount | Number | 每期的总金额 |
orderCurrency | String | 每期的总金额币种 |
expireDate | String | 过期时间 |
frequencyType | String | 频率类型,请参阅 |
frequencyPoint | Integer | 频率数 |
cycleCount | Integer | 订阅循环期数 1~100 |
notificationEmail | String | 邮件通知 email |
billingCycleAnchor | String | 下一期扣款时间节点 |
dataStatus | String | 订阅合同状态,请参阅 |
subscriptionStatus | String | 订阅状态,请参阅 |
createTime | String | 首次订阅创建时间 |
tokenId | String | 订阅 token 信息 |
订阅订单查询请求示例
POST
根据 合同ID 查询订阅:
json
{
"contractId": "1855041133621940224",
"merchantNo": "800209",
"sign": "f4764dc3c6ebdb481f1bbde2bf77085f781bfc1d71210fa0d99527b5c66c5202"
}
1
2
3
4
5
2
3
4
5
json
{
"respCode": "20000",
"respMsg": "Success",
"data": {
"contractId": "1855041133621940224",
"merchantNo": "800209",
"merchantCustomerId": "787c6235-c030-4edf-bac4-86485de63397",
"products": "[{\"name\":\"Plus-Year\",\"price\":\"180.00\",\"num\":\"1\",\"currency\":\"USD\"}]",
"orderAmount": "180.00",
"orderCurrency": "USD",
"expireDate": "2124-11-09",
"frequencyType": "D",
"frequencyPoint": 365,
"cycleCount": null,
"notificationEmail": null,
"billingCycleAnchor": null,
"dataStatus": "1",
"subscriptionStatus": "active",
"createTime": "2024-11-09 08:14:06",
"tokenId": "24dd360d464054a74e167cbe06235772f5c5c82ff6a12cddf5e9d05861638ae4"
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22