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

# List contract named schedules

> List contract-level named schedules for a customer, optionally scoped to a single contract.



## OpenAPI

````yaml /openapi.json post /v1/contracts/listNamedSchedules
openapi: 3.0.1
info:
  title: Metronome
  version: 1.0.0
servers:
  - url: https://api.metronome.com
    description: Production server
security:
  - bearerAuth: []
tags:
  - name: Webhooks
    description: >-
      Inspect webhook delivery history, notification payloads, and retry
      attempts for the last 30 days. See the [Webhooks
      guide](/guides/platform-configuration/webhooks/webhook-types) for
      notification types and delivery behavior.
  - name: Customers
    description: >-
      [Customers](https://docs.metronome.com/provisioning/create-customers/) in
      Metronome represent your users for all billing and reporting. Use these
      endpoints to create, retrieve, update, and archive customers and their
      billing configuration.
  - name: Billable metrics
    description: >-
      [Billable
      metrics](https://docs.metronome.com/understanding-metronome/how-metronome-works#billable-metrics)
      in Metronome represent the various consumption components that Metronome
      meters and aggregates.
  - name: Usage
    description: >-
      [Usage
      events](https://docs.metronome.com/connecting-metronome/send-usage-data/)
      are the basis for billable metrics. Use these endpoints to send usage
      events to Metronome and retrieve aggregated event data.
  - name: Products
    description: Products are the items that customers purchase.
  - name: Rate cards
    description: Rate cards are used to define default pricing for products.
  - name: Contracts
    description: >-
      A contract defines a customer’s products, pricing, discounts, commitments,
      and more. Use these endpoints to create and update contracts data.
  - name: Credits and commits
    description: Credits and commits are used to manage customer balances.
  - name: Invoices
    description: >-
      [Invoices](https://docs.metronome.com/invoicing/) reflect how much a
      customer spent during a period, which is the basis for billing. Metronome
      automatically generates invoices based upon your pricing, packaging, and
      usage events. Use these endpoints to retrieve invoices.
  - name: Alerts
    description: >-
      [Alerts](https://docs.metronome.com/connecting-metronome/alerts/) monitor
      customer spending, balances, and other billing factors. Use these
      endpoints to create, retrieve, and archive customer alerts. To view sample
      alert payloads by alert type, navigate
      [here.](https://docs.metronome.com/manage-product-access/create-manage-alerts/#webhook-notifications)
  - name: Custom fields
    description: >-
      [Custom fields](https://docs.metronome.com/integrations/custom-fields/)
      enable adding additional data to Metronome entities. Use these endpoints
      to create, retrieve, update, and delete custom fields.
  - name: Security
    description: >-
      [Security](https://docs.metronome.com/developer-resources/security/)
      endpoints allow you to retrieve security-related data.
  - name: Settings
    description: >-
      Use these endpoints to configure a billing API key, a webhook secret, or
      invoice finalization behavior.
  - name: Named schedules
    description: >-
      Named schedules are used for storing custom data that can change over
      time. Named schedules are often used in custom pricing logic.
paths:
  /v1/contracts/listNamedSchedules:
    post:
      tags:
        - Named schedules
      summary: List contract named schedules
      description: >-
        List contract-level named schedules for a customer, optionally scoped to
        a single contract.
      operationId: listContractsNamedSchedules-v1
      requestBody:
        description: >-
          Specify which customer and optional filters to use when listing
          contract named schedules.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListContractsNamedSchedulesPayload'
            example:
              customer_id: 9b85c1c1-5238-4f2a-a409-61412905e1e1
              schedule_name: reserved-instance
              properties:
                sku: A100
              covering_date: '2026-01-15T00:00:00Z'
              limit: 10
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListContractsNamedSchedulesPage'
              example:
                data:
                  - contract_id: d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc
                    schedule_name: reserved-instance
                    properties:
                      sku: A100
                    segments:
                      - starting_at: '2026-01-01T00:00:00Z'
                        ending_before: '2026-07-01T00:00:00Z'
                        value: 50
                      - starting_at: '2026-07-01T00:00:00Z'
                        value: 80
                  - contract_id: 74d99eeb-b8c3-4f13-a7ef-fcf5f01686d6
                    schedule_name: reserved-instance
                    properties:
                      sku: A100
                    segments:
                      - starting_at: '2026-06-01T00:00:00Z'
                        value: 30
                next_page: null
components:
  schemas:
    ListContractsNamedSchedulesPayload:
      type: object
      required:
        - customer_id
      properties:
        customer_id:
          type: string
          format: uuid
          description: ID of the customer to list contract named schedules for
        contract_id:
          type: string
          format: uuid
          description: Optional ID of a contract to scope the results to a single contract
        schedule_name:
          type: string
          description: Optional filter to scope the results to a single schedule name
        properties:
          type: object
          additionalProperties:
            type: string
          description: >-
            Optional key-value filters. A schedule matches when it contains at
            least this subset of properties.
        covering_date:
          type: string
          format: date-time
          description: >-
            If provided, result contains at most one segment covering this date
            for each schedule.
        limit:
          type: integer
          description: Maximum number of named schedules to return.
        next_page:
          type: string
          description: >-
            Cursor for pagination. Use the value from a previous response's
            next_page.
    ListContractsNamedSchedulesPage:
      type: object
      required:
        - data
        - next_page
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/CustomerContractNamedSchedule'
        next_page:
          type: string
          nullable: true
          description: Cursor for the next page of results.
    CustomerContractNamedSchedule:
      type: object
      required:
        - contract_id
        - schedule_name
        - segments
      properties:
        contract_id:
          type: string
          format: uuid
          description: ID of the contract this named schedule belongs to.
        schedule_name:
          type: string
          description: Name of the schedule.
        properties:
          type: object
          additionalProperties:
            type: string
          description: Properties on this named schedule.
        segments:
          type: array
          items:
            type: object
            required:
              - starting_at
              - value
            properties:
              value: {}
              starting_at:
                type: string
                format: date-time
              ending_before:
                type: string
                format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````