GET
/
plans
/
{plan_id}
curl --request GET \
  --url https://api.live.paisr.tech/{version}/plans/{plan_id} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "id": "pln_123456",
    "title": "Premium Service",
    "summary": "Get started with using our premium service.",
    "type": "standard",
    "currency": "SRD",
    "created_at": "2023-11-07T05:31:56Z",
    "options": [
      {
        "id": "plo_123456",
        "description": "Monthly",
        "active": true,
        "unit_price": 9.99,
        "billing_interval": 30,
        "trial_period": 0,
        "attributes": {},
        "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

plan_id
string
required

The Plan ID.

Response

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