Subscriptions: List

Request

GET https://api../stores/{storeId}/subscriptions

Parameters:

Parameters
searchstring
Search for ids or values in the metadata field.
statusstring
Filter by subscription status. One of unverified, unconfirmed, canceled, unpaid, suspended, current or completed
modestring
Filter by processing mode. live or test.

Headers:

Authorization: Bearer {secret}.{jwt}

Body:

curl --request GET \
--url https://api../stores/5820d348-15d1-11e7-8e4b-27dd220b033f \
--header 'Authorization: Bearer {secret}.{jwt}'

Response

Code: 200

Headers:

Content-Type: application/json

Body:

{
  "items": [
    {
      "id": "3a1b484a-18c6-11e7-9914-4bf2088a90c6",
      "merchant_id": "371f512c-18c6-11e7-b12b-53d631f886c5",
      "store_id": "37ff5664-18c6-11e7-8221-ff4914d76afc",
      "amount": 26101,
      "currency": "JPY",
      "amount_formatted": 26101,
      "period": "annually",
      "status": "cancelled",
      "metadata": {},
      "mode": "test",
      "created_on": 1491262531554
    },
    {
      "id": "3a1b8bac-18c6-11e7-b12b-7334ac0032c1",
      "merchant_id": "371f512c-18c6-11e7-b12b-53d631f886c5",
      "store_id": "37ff5664-18c6-11e7-8221-ff4914d76afc",
      "amount": 25499,
      "currency": "JPY",
      "amount_formatted": 25499,
      "period": "annually",
      "status": "cancelled",
      "metadata": {},
      "mode": "test",
      "created_on": 1491262531556
    },
    {
      "id": "3a1d2d5e-18c6-11e7-a49f-cb748a690623",
      "merchant_id": "371f512c-18c6-11e7-b12b-53d631f886c5",
      "store_id": "37ff5664-18c6-11e7-8221-ff4914d76afc",
      "amount": 49634,
      "currency": "JPY",
      "amount_formatted": 49634,
      "period": "weekly",
      "status": "unverified",
      "metadata": {},
      "mode": "test",
      "created_on": 1491262531566
    },
    ...
    {
      "id": "aaadee6a-18e3-11e7-a461-e3b078a7dc52",
      "merchant_id": "371f512c-18c6-11e7-b12b-53d631f886c5",
      "store_id": "37ff5664-18c6-11e7-8221-ff4914d76afc",
      "amount": 1250,
      "currency": "USD",
      "amount_formatted": 12.5,
      "period": "daily",
      "status": "unverified",
      "metadata": {
        "ServiceId": 78435694
      },
      "mode": "test",
      "created_on": 1491275175825
    }
  ],
  "has_more": false
}