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

# List billing cycles

> Returns all billing cycles for a subscription, ordered by period start descending.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/subscriptions/{uuid}/cycles
openapi: 3.0.0
info:
  title: PlugToPay API
  description: API to make payments easy in multiple gateways.
  version: 1.0.0
servers:
  - url: http://localhost:7701
    description: Test Server
security: []
paths:
  /api/v1/subscriptions/{uuid}/cycles:
    get:
      tags:
        - Subscriptions
      summary: List billing cycles
      description: >-
        Returns all billing cycles for a subscription, ordered by period start
        descending.
      operationId: 7fd277a00a2c2bf87e085a883819ed21
      parameters:
        - $ref: '#/components/parameters/XClientId'
        - name: uuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: List of billing cycles
          content:
            application/json:
              schema:
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/SubscriptionCycle'
                type: object
        '401':
          description: Unauthorized — Invalid API Key
        '404':
          description: Subscription not found
      security:
        - ApiKeyAuth: []
components:
  parameters:
    XClientId:
      name: x-client-id
      in: header
      description: Client identifier for the company in the request.
      required: true
      schema:
        type: string
        example: client_abc123
  schemas:
    SubscriptionCycle:
      properties:
        id:
          type: string
          format: uuid
        subscription_id:
          type: string
          format: uuid
          nullable: true
        period_start:
          type: string
          format: date-time
          nullable: true
        period_end:
          type: string
          format: date-time
          nullable: true
        amount:
          description: Billed amount in cents
          type: integer
          example: 2990
        discount_amount:
          type: integer
          example: 500
          nullable: true
        status:
          type: string
          enum:
            - pending
            - paid
            - failed
            - skipped
          example: paid
        due_at:
          type: string
          format: date-time
          nullable: true
        paid_at:
          type: string
          format: date-time
          nullable: true
        failed_at:
          type: string
          format: date-time
          nullable: true
        retry_count:
          type: integer
          example: 0
        next_retry_at:
          type: string
          format: date-time
          nullable: true
        gateway_transaction_id:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
      type: object
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      description: Company API key. Send in the X-API-Key header.
      name: X-API-Key
      in: header

````