Download OpenAPI specification:
Memberships as multi-seat plans. Responses are JSON:API 1.1 documents in the PHP APIs' shapes, served as application/vnd.api+json: a single resource is { data } alone; a collection is { links, data, meta } with the page counts directly under meta; an error document is { errors }, each error as Dusk renders it: { status, title, source?, detail }. Three departures from the spec, all the PHP APIs': a collection's previous-page link is previous, not prev; an error's status is an integer; and its source is the field's name as a plain string (dot notation when nested), not an object. Write requests (POST, PATCH) send a flat JSON object of attributes as application/json (charset=utf-8 allowed), not a JSON:API document; the id is the URL's on PATCH and server-generated on POST. The request id is the X-Request-Id response header; no body carries it.
Call with a member's X-Auth-Token. Reads the caller's own Subscriptions API customer with the default token and their X-USER-ID forwarded as X-User-ID; no token registry read. A member with no customer there yet still passes, since the API answered. Says whether a customer exists, never any of its data. This is not the path a member's real calls take: those resolve a client first.
{- "data": {
- "type": "health",
- "id": "subscriptions-member",
- "attributes": {
- "status": "ok",
- "environment": "string",
- "message": "The Subscriptions API found a customer for this member."
}
}
}Call with a client's X-Api-Token. Presents the Subscriptions API token this API holds for the caller's X-Authorized-Client on a one-row products read. Says whether the client has a token of its own or uses the default, never which token. A pass proves the token is valid and unexpired, not that it carries the claims the client needs. A fault in the client's token configuration answers 500. The member path is GET /health/subscriptions/member.
{- "data": {
- "type": "health",
- "id": "subscriptions-client",
- "attributes": {
- "status": "ok",
- "environment": "string",
- "message": "Token registry row found for this client; the Subscriptions API accepted its token."
}
}
}Client audiences see active rows only; the admin audience sees every row, inactive and retired included, and may filter by status.
| page[number] | integer [ 1 .. 1000 ] Default: 1 Example: page[number]=1 |
| page[size] | integer [ 1 .. 100 ] Default: 25 Example: page[size]=25 |
| filter[status] | string Enum: "inactive" "active" "retired" Example: filter[status]=active |
| sort | string^-?(name|createdAt|updatedAt)(,-?(name|create... Example: sort=-createdAt |
{- "links": {
- "self": "string",
- "first": "string",
- "previous": "string",
- "next": "string",
- "last": "string"
}, - "data": [
- {
- "type": "planTypes",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "attributes": {
- "name": "Family",
- "seatCap": 3,
- "status": "active",
- "createdAt": "2026-09-14T12:00:00.000Z",
- "updatedAt": "2026-09-14T12:00:00.000Z"
}
}
], - "meta": {
- "total": 0,
- "count": 0,
- "perPage": 0,
- "currentPage": 0,
- "totalPages": 0
}
}The row is created inactive: it is not orderable and not in the client collection until it is activated. Its name must not belong to any non-retired plan type, inactive or active.
| name required | string [ 1 .. 120 ] characters |
| seatCap required | integer or null >= 1 Maximum seats a plan of this type may hold. null = unbounded. |
{- "name": "Family",
- "seatCap": 4
}{- "data": {
- "type": "planTypes",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "attributes": {
- "name": "Family",
- "seatCap": 3,
- "status": "active",
- "createdAt": "2026-09-14T12:00:00.000Z",
- "updatedAt": "2026-09-14T12:00:00.000Z"
}
}
}Returns an inactive or retired row too, to every audience: a plan bought under a retired type must still resolve it.
| id required | string <uuid> Example: 0192a9c4-7b2e-7c3d-9e4f-1a2b3c4d5e6f |
{- "data": {
- "type": "planTypes",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "attributes": {
- "name": "Family",
- "seatCap": 3,
- "status": "active",
- "createdAt": "2026-09-14T12:00:00.000Z",
- "updatedAt": "2026-09-14T12:00:00.000Z"
}
}
}An inactive or active plan type takes edits; its status moves only through the activate and retire actions, and a retired plan type takes no edits: it is a 422. A new name must not belong to another non-retired plan type.
| id required | string <uuid> Example: 0192a9c4-7b2e-7c3d-9e4f-1a2b3c4d5e6f |
| name | string [ 1 .. 120 ] characters |
| seatCap | integer or null >= 1 Maximum seats a plan of this type may hold. null = unbounded. |
{- "seatCap": 5
}{- "data": {
- "type": "planTypes",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "attributes": {
- "name": "Family",
- "seatCap": 3,
- "status": "active",
- "createdAt": "2026-09-14T12:00:00.000Z",
- "updatedAt": "2026-09-14T12:00:00.000Z"
}
}
}An inactive or active plan type can retire. Retired is final: the row stays readable by id, leaves the client collection, and is never re-activated. Takes no request body; anything sent is ignored.
| id required | string <uuid> Example: 0192a9c4-7b2e-7c3d-9e4f-1a2b3c4d5e6f |
{- "data": {
- "type": "planTypes",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "attributes": {
- "name": "Family",
- "seatCap": 3,
- "status": "active",
- "createdAt": "2026-09-14T12:00:00.000Z",
- "updatedAt": "2026-09-14T12:00:00.000Z"
}
}
}Makes an inactive plan type active, and so orderable and visible to the client audience. An active row is already active and a retired one is final, so both are a 422. The name needs no check: an inactive row already holds it. Takes no request body; anything sent is ignored.
| id required | string <uuid> Example: 0192a9c4-7b2e-7c3d-9e4f-1a2b3c4d5e6f |
{- "data": {
- "type": "planTypes",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "attributes": {
- "name": "Family",
- "seatCap": 3,
- "status": "active",
- "createdAt": "2026-09-14T12:00:00.000Z",
- "updatedAt": "2026-09-14T12:00:00.000Z"
}
}
}