Inspect one configured subscription
Read subscription details
GET /api/v1/admin/subscriptions/{id}
Read one configured catalog choice in a publication Plan. A membership links a reader to that choice; this returns configuration, not a membership, payment or access decision.
Before you call
Allowed roles: readonly, manager, support, admin, partner; root is also permitted. Send the assigned token, publication key and a known nonzero subscription ID. Service accounts cannot use this route, including those with full_access. Keep privileged calls in trusted server code.
The caller must be active; their current publication relationship, when present, must not be locked or suspended. Choose the intended catalog choice from your records. Inactive/private choices can be read without being currently selectable.
The outer choice’s Plan must belong to the publication. Next or downgrade references can belong to another publication; inspect their context separately.
Request
No body, filter, pagination or sort input is consumed.
| Input | Location / type | Meaning |
|---|---|---|
| resource | Required header, publication public-key string | Selects the publication for the choice’s Plan. Not a numeric resource ID or private secret. |
| token | Required header, existing eligible token string | ADMIN_TOKEN in examples. |
| id | Required digits-only path value; use a known nonzero ID | Catalog subscription ID, not Plan ID, reader ID or membership relationship-row ID. Zero can fail without a uniform operation-specific JSON error. |
Response fields and nested Plan
HTTP 200 returns the general subscription fields at the top level, without items or paginator. The immediate plan uses the expanded Plan with lightweight choices.
| Returned object | Fields and limits |
|---|---|
| General subscription | Catalog IDs, text, price/currency/period, activation/privacy/renewal/trial settings and extra follow the linked definition. Catalog units are unspecified; no currency conversion. |
| plan | The linked definition lists 14 fields: id/title/slug/description, full_access/predictive settings/can_own_teams/priority/private/active/extra/public and subscriptions. No Plan timestamps, resource_id or settings. |
| plan.subscriptions[] | Only id, title, price, currency and period. These lightweight choices can be private/inactive; no reader data or recursive full subscription. |
| next_subscription / downgrade_subscription | Their general/public fields with compact Plans. Nested objects stop at the limits in the general subscription definition; the immediate-Plan expansion is not repeated. |
| created_at / updated_at / country_vat | Conditional Admin fields on the subscription, not Plan. Country VAT includes a conditional country object. No tax calculation or payment-mode change. |
The Plan adds no taxonomy/content-type rules, extras counts or team_subscriptions. No reader profile or membership dates are added. Missing related records can fail processing instead of returning empty/null data.
Example: Inspect a private, inactive configured choice
Examples use fictional subscription 3001 and Plan 5001 with illustrative excerpts. Requests use cURL, Node.js 18+ fetch in an ES module (.mjs), and Python 3 urllib. Set WALLKIT_API_BASE to scheme and host only, plus existing RESOURCE_KEY and ADMIN_TOKEN.
Assume the choice’s Plan belongs to this publication. Private/inactive state does not prevent this configuration read.
curl "${WALLKIT_API_BASE}/api/v1/admin/subscriptions/3001" \
-X GET \
-H "resource: ${RESOURCE_KEY}" \
-H "token: ${ADMIN_TOKEN}"
const url = new URL(`${process.env.WALLKIT_API_BASE}/api/v1/admin/subscriptions/3001`);
const response = await fetch(url, {
method: "GET",
headers: {"resource": process.env.RESOURCE_KEY, "token": process.env.ADMIN_TOKEN}
});
console.log(response.status, await response.json());
import os, json
from urllib.request import Request, urlopen
from urllib.error import HTTPError
url = os.environ["WALLKIT_API_BASE"] + "/api/v1/admin/subscriptions/3001"
request = Request(
url,
headers={"resource": os.environ["RESOURCE_KEY"], "token": os.environ["ADMIN_TOKEN"]},
method="GET"
)
try:
with urlopen(request) as response:
print(response.status, json.load(response))
except HTTPError as error:
print(error.code, json.load(error))
HTTP 200 response excerpt:
{
"id": 3001,
"title": "Example subscription",
"plan_id": 5001,
"price": 1200,
"currency": "USD",
"active": false,
"private": true,
"public": false,
"plan": {
"id": 5001,
"title": "Example Plan",
"active": true,
"private": false,
"public": true,
"subscriptions": [
{
"id": 3001,
"title": "Example subscription",
"price": 1200,
"currency": "USD",
"period": "1 month"
}
]
},
"next_subscription": null,
"downgrade_subscription": null
}
The lightweight nested choice is present without active/private flags. The outer choice shows those stored settings. Neither establishes purchase availability or reader access.
The choice is missing or outside the selected publication
HTTP 404 response:
{
"error": "subscription_not_found",
"error_description": "Subscription not found",
"req_guid": "example-request"
}
Check the intended catalog ID and publication. This does not establish whether the subscription exists elsewhere.
Recovery
| HTTP status | API code / response shape | Cause | Next action |
|---|---|---|---|
| 404 | subscription_not_found | No subscription matches the ID and selected publication through its Plan. | Check the known catalog subscription ID and publication public key against intended records. |
| Varies / no guaranteed JSON | Zero ID or incorrect method reaches a generic exception path | No dedicated invalid_id response is established for this detail. | Use GET and a known nonzero subscription ID; do not assume the Plan-detail error contract applies. |
| Varies / no guaranteed JSON | Missing related record, query/response-format or transport failure | The response format can vary; do not treat a failed request as an empty catalog. | Retain any request reference and ask the integration operator to inspect the failure and related catalog data. |
See shared errors. Use plan_id to inspect Plan rules and linked choices, or page through subscriptions.