Skip to content

查询订阅计划列表

接口信息

GET /subscription/plan/list

请求参数

参数名类型必填参与签名说明
merchantIdString商户号
statusString计划状态:ACTIVE / INACTIVE
signString签名

响应参数

返回订阅计划列表数组,每个元素字段与创建订阅计划响应的 data 对象相同。

请求示例

json
{
  "merchantId": "MERCHANT_001",
  "status": "ACTIVE",
  "sign": "calculated_signature"
}

响应示例

json
{
  "rtn_code": "0000",
  "success": true,
  "data": [
    {
      "planId": "PLAN_MERCHANT001_20241021001",
      "planName": "Basic Monthly Plan",
      "price": 9.99,
      "currency": "USD",
      "cycleType": "MONTHLY",
      "cycleLength": 1,
      "status": "ACTIVE",
      "currentSubscriptions": 42,
      "createTime": "2024-10-21 10:00:00"
    }
  ]
}

Codrimpay