GET
/
subscriptions
/
{subscription_id}
curl --request GET \
  --url https://api.live.paisr.tech/{version}/subscriptions/{subscription_id} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "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": "paid",
    "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",
    "cancelled": true,
    "cancelled_at": "2023-11-07T05:31:56Z",
    "created_at": "2023-11-07T05:31:56Z",
    "line_items": [
      {
        "id": "stm_123456",
        "title": "Premium Service - Monthly",
        "quantity": 1,
        "option": {
          "id": "plo_123456",
          "plan_id": "pln_123456",
          "available": true,
          "unit_price": 9.99
        },
        "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.

Path Parameters

subscription_id
string
required

The Subscription ID.

Response

200
application/json
Successfully retrieved subscription details.
success
boolean
default:true
data
object