> ## Documentation Index
> Fetch the complete documentation index at: https://docs.marzipan.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Subscriptions

> Get all active and inactive subscriptions for the authenticated user, including subscription details and renewal dates.



## OpenAPI

````yaml api-reference/openapi.json get /account/subscriptions
openapi: 3.0.0
info:
  title: Marzipan API
  version: 1.0.0
servers:
  - url: https://api.marzipan.co/v1
security:
  - tenantAuth: []
tags:
  - name: Account
    description: >-
      Account management endpoints including registration, login, and user
      details
  - name: Carts
    description: Shopping cart management endpoints
  - name: Products
    description: Product catalog and search endpoints
  - name: Subscriptions
    description: Subscription management and renewal endpoints
  - name: CMS
    description: Content management system endpoints
  - name: Messaging
    description: Message and communication endpoints
  - name: Search
    description: Search functionality endpoints
paths:
  /account/subscriptions:
    parameters: []
    get:
      tags:
        - Account
      summary: Subscriptions
      description: >-
        Get all active and inactive subscriptions for the authenticated user,
        including subscription details and renewal dates.
      parameters: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        subscriptionType:
                          type: string
                        name:
                          type: string
                        productId:
                          type: string
                        price:
                          type: string
                        status:
                          type: string
                        startDate:
                          type: string
                        endDate:
                          type: string
                        renewalDate:
                          type: string
                        billingInterval:
                          type: integer
              example:
                data:
                  - id: 1224f9ef-8caf-4564-9474-023f95819949
                    subscriptionType: variable
                    name: Discovery Club
                    productId: 084b80ef-d16d-4531-a25f-40b7ff4c744b
                    price: £9.99
                    status: active
                    startDate: '2024-10-07T12:12:58.000000Z'
                    endDate: '2030-10-07T12:12:58.000000Z'
                    renewalDate: '2025-01-07T12:12:58.000000Z'
                    billingInterval: 3
                  - id: feb40b5e-bde2-4494-a547-12f6ab368ca9
                    subscriptionType: variable
                    name: Premium Wine Selection
                    productId: 0b0210cb-5180-49b8-81f0-82ea693fcc37
                    price: £24.99
                    status: active
                    startDate: '2025-05-05T15:31:18.000000Z'
                    endDate: '2031-05-05T15:31:18.000000Z'
                    renewalDate: '2025-09-05T15:31:18.000000Z'
                    billingInterval: 1
        '401':
          description: Unauthenticated
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
              example:
                message: string
      security:
        - accountAuth: []
components:
  securitySchemes:
    tenantAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is your API token.
      bearerFormat: JWT
    accountAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is the account token returned from the `Login` endpoint.

````