# Preview a plan’s expected payments `GET /api/v1/subscriptions/expected-payments-preview` Previews the expected payment schedule configured on a plan. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Subscriptions → Write and Payments → Write**. ## Query parameters - `plan_id` (integer, required) — ID of the plan. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --get \ --url "https://api.asdincloud.com/api/v1/subscriptions/expected-payments-preview" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --data-urlencode "plan_id=13" ``` ## Response **200 OK** Returns the plan amount, currency, and proposed payments with no assigned IDs. Example with fictional data and selected fields. ```json { "status": "success", "data": { "plan_id": 13, "plan_amount": 18000, "currency": "EUR", "amount_paid": 0, "expected_payments": [ { "id": null, "due_at_ts": 1795996800, "amount": 18000, "tsu": null } ] } } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `400` — A plan ID is required. - `404` — The requested record was not found.