Logoelepay
Subscriptions

List subscriptions

定期課金を一覧で取得します。

GET
/subscriptions
Customer ID
開始時間(エポックミリ秒)、指定した時間以降に作成されたデータを取得します
format: int64
終了時間(エポックミリ秒)、指定した時間以前に作成されたデータを取得します
format: int64
定期課金ステータス
最大件数
value ≤ 100 · default: 20
検索開始位置
default: 0

Response Body

application/json

OK

TypeScript Definitions

Use the response body type in TypeScript.

curl -X GET "https://api.elepay.io/subscriptions"
{
  "total": 0,
  "subscriptions": [
    {
      "id": "string",
      "appId": "string",
      "object": "subscription",
      "liveMode": true,
      "customerId": "string",
      "customer": {
        "id": "string",
        "object": "customer",
        "liveMode": true,
        "defaultSource": "string",
        "name": "string",
        "description": "string",
        "email": "string",
        "phone": "string",
        "remark": "string",
        "operator": "string",
        "status": "active",
        "metadata": {},
        "updateTime": 0
      },
      "nextChargeTime": 0,
      "isCharging": true,
      "chargedPeriods": 0,
      "metadata": {},
      "status": "new",
      "createTime": 0,
      "updateTime": 0
    }
  ]
}