Get Plan
Retrieve a plan by plan ID or plan code.
-H "x-api-key: your_secret_key"GET {{host}}/v1/plans/{id}Path Parameters
| Field | Data Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Plan ID or plan code, for example PLN_abc123. |
{
"status": true,
"message": "Success",
"code": 200,
"data": {
"id": "4c4a6413-3f0f-4bc6-97d8-c8f1a8516361",
"name": "Starter",
"description": "Monthly starter subscription",
"interval": "monthly",
"amount": 5000,
"code": "PLN_abc123",
"mode": "live",
"isActive": true,
"subscriptions": [],
"createdAt": "2026-05-20T10:15:00.000Z"
}
}Updated about 7 hours ago
