资源包相关接口
更新时间:2023-11-24
获取用户资源包列表
接口描述
本接口用于获取用户资源包列表
请求结构
> POST https://tms-api.baidu.com/v1/tms/openapi/trademarks
> Authorization: authorization string
> Host: tms-api.baidu.com
> x-bce-console-rpc-id: e69c8fff-166b-4c82-87c1-7aa3ba309d5c
> x-bce-date: 2020-04-27T02:43:18Z
{
"pageNo": 1,
"pageSize": 10,
"status": null,
"condition": "",
"order": "",
"orderBy": ""
}
参数名称 | 类型 | 是否必需 | 描述 |
---|---|---|---|
pageNo | integer | 页码,默认为 1 | |
pageSize | integer | 页大小,默认为 10 | |
status | string | 待支付 NEED_PURCHASE, 已取消 CANCELED, 使用中 USING, 已确认 CONFIRMED, 已完成 FINISHED; | |
condition | string | 条件筛选,填写 AVAILABLE :筛选可用资源包 |
|
order | string | 排序方式asc-正序 desc-倒序 默认倒序 desc | |
orderBy | string | 排序列 更新时间-updateTime 权益失效日期-expireTime 默认更新时间 |
响应结果
< Cache-Control: no-cache
< Content-Length: 0
< Date: Mon, 27 Apr 2020 11:48:34 GMT
< Server: BWS
< x-bce-request-id: de3f0c3e-86f6-43e7-b1bd-35a837f4b84f
{
"data": [
{
"resourcePackId": "TRP-LenpD4qVNGm",
"name": "快速注册包年10件套餐",
"count": 9,
"countUsage": 1,
"expireTime": "2022-09-25T15:59:59.000+0000",
"updateTime": "2022-04-02T06:07:16.000+0000",
"orderId": "42fcf0676685478d9eccf2ec1b6822e2",
"associationId": "42fcf0676685478d9eccf2ec1b6822e2",
"source": "PURCHASE",
"status": "FINISHED"
},
{
"resourcePackId": "TRP-cjHRTzkuT2b",
"name": "快速注册包年1件套餐",
"count": 1,
"countUsage": 0,
"expireTime": "2023-03-15T05:00:16.000+0000",
"updateTime": "2022-03-24T13:06:46.000+0000",
"orderId": "ae43867cf1b244d3b4588a76f12fbd3d",
"associationId": "ae43867cf1b244d3b4588a76f12fbd3d",
"source": "PURCHASE",
"status": "FINISHED"
}
],
"pageNo": 1,
"pageSize": 10,
"totalCount": 2
}
参数名称 | 类型 | 描述 |
---|---|---|
data | array | 资源包信息 |
→ resourcePackId | string | 资源包ID |
→ name | string | 套餐名称 |
→ count | integer | 资源包总数量 |
→ countUsage | integer | 资源包已使用数量 |
→ expireTime | string | 资源包过期时间 |
→ updateTime | string | 资源包更新时间 |
→ orderId | string | 关联资源ID |
→ associationId | string | 关联资源ID |
→ source | string | 来源 TRANSFER-赠送 PURCHASE-购买 |
→ status | string | 资源包状态 NEED_PURCHASE, CANCELED, USING, CONFIRMED, FINISHED; |
pageNo | integer | 页码 |
pageSize | integer | 页大小 |
totalCount | integer | 资源包总数 |