Actalink Docs
Acta billings/Subscription

Subscriptions

API to get the list of subscriptions created by the user.

GET
/api/subscriptions

Authorization

acta-session<token>

Session key to identify user session.

In: cookie

curl -X GET "http://localhost:4000/api/subscriptions" \
  -H "acta-session: <token>"

List of subscriptions created by the Merchant

{
  "data": [
    {
      "id": "107e4c06-ed29-44d2-8d1c-6091167f4823",
      "title": "Hooli Music",
      "status": "active",
      "linktree": "",
      "trialDays": 0,
      "createdAt": "2024-09-11T10:12:47.105Z",
      "userId": "971045d1-b671-4367-a74d-28f0627ae127",
      "paymentlink": {
        "id": "2464184b-fd6f-422a-8b06-e03cf5b9f62c",
        "title": "Hooli Music",
        "subscriptionId": "107e4c06-ed29-44d2-8d1c-6091167f4823",
        "createdAt": "2024-09-11T10:12:47.105Z",
        "validTill": "2024-09-11T10:12:47.105Z"
      },
      "plans": [
        {
          "id": "4570201a-d35a-4d05-ad1c-9f717440ea2d",
          "name": "plan1",
          "price": 1,
          "frequency": "month",
          "volume": 12,
          "subscriptionId": "107e4c06-ed29-44d2-8d1c-6091167f4823",
          "subscribersCount": {
            "activeCount": 0,
            "cancelledCount": 0,
            "failedCount": 0,
            "completeCount": 0
          }
        }
      ],
      "receivers": [
        {
          "receiverId": "a7188cdb-d28a-48f3-9938-7f5d0453ed51",
          "address": "0xEBFa37194fA74bA3e8195446948FC3B9c72E08AB",
          "networkId": 137,
          "subscriptionId": "107e4c06-ed29-44d2-8d1c-6091167f4823"
        }
      ],
      "tokens": [
        {
          "id": 2,
          "address": "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",
          "symbol": "USDC",
          "name": "USDC",
          "decimals": 6,
          "chainId": 137,
          "logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",
          "coingeckoId": "usd-coin"
        }
      ],
      "subscribersCount": {
        "activeCount": 0,
        "cancelledCount": 0,
        "failedCount": 0,
        "completeCount": 0
      }
    }
  ]
}