List plans

Lists all available subscription plans for a shop. By default returns only active plans. Use the status filter to include archived or deprecated plans.

GET
/sdk/plans

Query Parameters

status?string

Filter by status: "active", "archived", "deprecated" (defaults to active only)

Response Body

application/json

application/json

curl -X GET "https://example.com/sdk/plans"
{  "plans": [    {      "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?