Get plan by ID
Retrieves a subscription plan by its unique identifier. Returns full plan details including pricing, billing period, and trial configuration.
curl -X GET "https://test-api.stash.gg/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"
}{
"code": 0,
"message": "string",
"details": [
{
"@type": "string",
"property1": null,
"property2": null
}
]
}How is this guide?
Get payment event by ID GET
Retrieves payment details by ID. Returns information about items, pricing, and payment status. This is a server-side endpoint and should not be called from the client.
Get plan by code GET
Retrieves a subscription plan by its code (e.g., 'monthly_premium'). Plan codes are unique within a segment.