GET
/
subscriptions
curl --request GET \
  --url https://api.live.paisr.tech/{version}/subscriptions \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "subscriptions": [
      {
        "id": "sub_123456",
        "customer": {
          "id": "cus_123456",
          "name": "Jane Smith",
          "email": "jane@example.com",
          "billing_details": null,
          "shipping_details": null
        },
        "payment_method": {
          "id": "pmt_123456",
          "type": "wallet",
          "provider": "Paisr Pay"
        },
        "status": "active",
        "currency": "SRD",
        "auto_renew": true,
        "trial_start": "2023-11-07T05:31:56Z",
        "trial_end": "2023-11-07T05:31:56Z",
        "billing_interval": 30,
        "billing_start": "2023-11-07T05:31:56Z",
        "billing_end": "2023-11-07T05:31:56Z",
        "last_renew_at": "2023-11-07T05:31:56Z",
        "next_renew_at": "2023-11-07T05:31:56Z",
        "created_at": "2023-11-07T05:31:56Z"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

resource_id
string

The ID of the resource you want to filter based on. (e.g. Customer or Payment method ID's)

currency
string

The currency you want to filter based on.

status
enum<string>
Available options:
pending,
expired,
trial,
active,
requires-action,
cancelled
Example:

"active"

Response

200
application/json
Successfully retrieved the list of subscriptions.
success
boolean
Example:

true

data
object