Skip to content

list-subscriptions

Method: GET
Path: /subscriptions

Tags: Subscriptions

Summary

List all subscriptions

Description

List all subscriptions

TypeScript Definition

typescript
"list-subscriptions": {
        parameters: {
            query?: never;
            header?: never;
            path?: never;
            cookie?: never;
        };
        requestBody?: never;
        responses: {
            /** @description OK */
            200: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "application/json": {
                        message: string;
                        success: boolean;
                        content: {
                            subscriptions: components["schemas"]["Subscription"][];
                            pagination: components["schemas"]["Pagination"];
                        };
                    };
                };
            };
            400: components["responses"]["BadRequest"];
            401: components["responses"]["Unauthorized"];
            404: components["responses"]["NotFound"];
        };
    };

Component References

ReferenceResolves To
components["schemas"]["Subscription"]Subscription
components["schemas"]["Pagination"]Pagination
components["responses"]["BadRequest"]BadRequest
components["responses"]["Unauthorized"]Unauthorized
components["responses"]["NotFound"]NotFound

Responses

200

OK

400

Bad request

401

Not authorized for given operation on the Resource

404

Requested resource not found

OpenAPI Definition

json
{
  "tags": [
    "Subscriptions"
  ],
  "operationId": "list-subscriptions",
  "summary": "List all subscriptions",
  "description": "List all subscriptions",
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/storefront/operations/list-subscriptions",
    "description": "API reference for the list-subscriptions operation"
  },
  "responses": {
    "200": {
      "description": "OK",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "message",
              "success",
              "content"
            ],
            "properties": {
              "message": {
                "type": "string"
              },
              "success": {
                "type": "boolean"
              },
              "content": {
                "properties": {
                  "subscriptions": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Subscription"
                    }
                  },
                  "pagination": {
                    "$ref": "#/components/schemas/Pagination"
                  }
                },
                "required": [
                  "subscriptions",
                  "pagination"
                ],
                "type": "object"
              }
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/BadRequest"
    },
    "401": {
      "$ref": "#/components/responses/Unauthorized"
    },
    "404": {
      "$ref": "#/components/responses/NotFound"
    }
  },
  "x-speakeasy-group": "subscriptions",
  "x-speakeasy-ignore": true,
  "x-speakeasy-name-override": "listSubscriptions"
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: