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

# Get v1stripesubscriptionpreview invoice



## OpenAPI

````yaml get /v1/stripe/subscription/preview-invoice
openapi: 3.0.0
info:
  title: helicone-api
  version: 1.0.0
  license:
    name: MIT
  contact: {}
servers:
  - url: https://api.helicone.ai/
  - url: http://localhost:8585/
security: []
paths:
  /v1/stripe/subscription/preview-invoice:
    get:
      tags:
        - Stripe
      operationId: PreviewInvoice
      parameters: []
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                properties:
                  evaluators_usage:
                    items:
                      $ref: '#/components/schemas/LLMUsage'
                    type: array
                  experiments_usage:
                    items:
                      $ref: '#/components/schemas/LLMUsage'
                    type: array
                  total:
                    type: number
                    format: double
                  tax:
                    type: number
                    format: double
                    nullable: true
                  subtotal:
                    type: number
                    format: double
                  discount:
                    properties:
                      coupon:
                        properties:
                          amount_off:
                            type: number
                            format: double
                            nullable: true
                          percent_off:
                            type: number
                            format: double
                            nullable: true
                          name:
                            type: string
                            nullable: true
                        required:
                          - amount_off
                          - percent_off
                          - name
                        type: object
                    required:
                      - coupon
                    type: object
                    nullable: true
                  lines:
                    properties:
                      data:
                        items:
                          properties:
                            description:
                              type: string
                              nullable: true
                            amount:
                              type: number
                              format: double
                              nullable: true
                            id:
                              type: string
                              nullable: true
                          required:
                            - description
                            - amount
                            - id
                          type: object
                        type: array
                    required:
                      - data
                    type: object
                    nullable: true
                  next_payment_attempt:
                    type: number
                    format: double
                    nullable: true
                  currency:
                    type: string
                    nullable: true
                required:
                  - evaluators_usage
                  - experiments_usage
                  - total
                  - tax
                  - subtotal
                  - discount
                  - lines
                  - next_payment_attempt
                  - currency
                type: object
                nullable: true
      security:
        - api_key: []
components:
  schemas:
    LLMUsage:
      properties:
        model:
          type: string
        provider:
          type: string
        prompt_tokens:
          type: number
          format: double
        completion_tokens:
          type: number
          format: double
        total_count:
          type: number
          format: double
        amount:
          type: number
          format: double
        description:
          type: string
        totalCost:
          properties:
            prompt_token:
              type: number
              format: double
            completion_token:
              type: number
              format: double
          required:
            - prompt_token
            - completion_token
          type: object
      required:
        - model
        - provider
        - prompt_tokens
        - completion_tokens
        - total_count
        - amount
        - description
        - totalCost
      type: object
      additionalProperties: false
  securitySchemes:
    api_key:
      type: apiKey
      name: Authorization
      in: header
      description: 'Bearer token authentication. Format: ''Bearer YOUR_API_KEY'''

````