Get plan by ID

Retrieves a subscription plan by its unique identifier. Returns full plan details including pricing, billing period, and trial configuration.

GET
/sdk/plans/{planId}

Path Parameters

planId*string

Response Body

application/json

application/json

curl -X GET "https://example.com/sdk/plans/string"
{  "id": "string",  "segmentId": "string",  "code": "string",  "name": "string",  "description": "string",  "billingPeriodValue": "string",  "billingPeriodUnit": "string",  "prices": [    {      "currency": "string",      "amountCents": "string"    }  ],  "trialPeriodValue": "string",  "trialPeriodUnit": "string",  "benefitsJson": "string",  "status": "string",  "availableFrom": "2019-08-24T14:15:22Z",  "availableUntil": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}

How is this guide?