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

# List Compute Invoices

> List the invoices of a reservation at /api/v1/compute/reservations/{id}/invoices

## Overview

Lists a reservation's invoices, unpaid first; the read behind `morph compute invoices` and `morph compute pay`. Act on `state`: an invoice that is `due`, `past_due` or `returned` is paid on its `url`, in a browser. `scheduled` and `clearing` need nothing from you.

The first invoice of a reservation that is `awaiting_payment` is in this list. Pay it before the reservation's `holdUntil`, or the hold is released. Amounts are for organization admins, so this read requires an admin's key.


## OpenAPI

````yaml GET /api/v1/compute/reservations/{id}/invoices
openapi: 3.1.0
info:
  title: Morph API
  version: 1.2.0
  description: >-
    The Morph public API at api.morphllm.com: OpenAI- and Anthropic-compatible
    inference (chat completions, messages), Fast Apply code editing, Compact
    context compression, System One typed decisions, speech to text (audio
    transcription and translation), model listing, and dedicated endpoint
    management, agentic credit top-ups paid over x402, account usage and billing
    settings, and organization member budgets. Model ids, prices, and context
    windows are served live at https://www.morphllm.com/api/models/json.
  contact:
    name: Morph
    url: https://morphllm.com
    email: info@morphllm.com
  license:
    name: Proprietary
    url: https://morphllm.com/privacy/tos
servers:
  - url: https://api.morphllm.com
    description: Production
security: []
tags:
  - name: chat
    description: >-
      OpenAI- and Anthropic-compatible chat inference, including Fast Apply and
      WarpGrep models.
  - name: compact
    description: Context compression for long agent conversations.
  - name: systemone
    description: 'Typed decisions: a state in, a probability distribution per question out.'
  - name: audio
    description: >-
      Speech to text: transcription and translation of audio files,
      OpenAI-compatible.
  - name: models
    description: Model listing.
  - name: dedicated
    description: Dedicated endpoint discovery, status, and cancellation.
  - name: compute
    description: >-
      Dedicated compute: reserve whole GPU nodes by the month, manage SSH keys,
      give notice. Limited preview.
  - name: credits
    description: Agentic credit top-ups paid in USDC over x402.
  - name: account
    description: >-
      Usage and spend per day; billing settings: extra usage, spend limit and
      alert, auto-reload.
  - name: organization
    description: Organization member budgets.
  - name: telemetry
    description: Usage reporting hooks.
paths:
  /api/v1/compute/reservations/{id}/invoices:
    get:
      tags:
        - compute
      summary: List invoices of a reservation
      description: >-
        The reservation’s invoices, unpaid first, with where to pay each. The
        first invoice of a reservation that is `awaiting_payment` is here: pay
        it at its `url` before `holdUntil`. Amounts are for organization admins,
        so this read requires an admin’s key.
      operationId: listComputeInvoices
      parameters:
        - schema:
            type: string
            format: uuid
            description: Id of the reservation whose invoices to list.
            example: b81f2c40-7d9e-4a35-9c16-3f5a8e0d2b74
          required: true
          description: Identifies the reservation to list invoices for.
          name: id
          in: path
      responses:
        '200':
          description: The invoices.
          content:
            application/json:
              example:
                invoices:
                  - id: 4f0c2a2e-91d7-4c3b-b5a8-7e6d2f1c0a94
                    state: due
                    amountCents: 584000
                    outstandingCents: 584000
                    dueOn: '2027-01-04'
                    paidOn: null
                    method: bank_debit
                    autopay: null
                    lines:
                      - description: Jan 4 – Feb 3, 2027 · 8 GPUs
                        amountCents: 584000
                    reference: MORPH-4F0C2A2E
                    url: >-
                      https://www.morphllm.com/pay/compute/4f0c2a2e-91d7-4c3b-b5a8-7e6d2f1c0a94
              schema:
                $ref: '#/components/schemas/ComputeInvoiceList'
        '401':
          $ref: '#/components/responses/ComputeUnauthorized'
        '403':
          description: >-
            The account is outside the limited preview, the key is a personal
            key, or the key belongs to an organization member who is not an
            admin.
          content:
            application/json:
              example:
                error: >-
                  An organization admin must read invoices. Use an API key
                  created by an admin of this organization.
              schema:
                $ref: '#/components/schemas/ComputeError'
        '404':
          $ref: '#/components/responses/ComputeNotFound'
      security:
        - bearerAuth: []
components:
  schemas:
    ComputeInvoiceList:
      type: object
      properties:
        invoices:
          type: array
          items:
            $ref: '#/components/schemas/ComputeInvoice'
          description: >-
            Unpaid invoices first, oldest due first, then paid ones, newest
            payment first. Withdrawn invoices are left out.
          example:
            - id: 4f0c2a2e-91d7-4c3b-b5a8-7e6d2f1c0a94
              state: due
              amountCents: 584000
              outstandingCents: 584000
              dueOn: '2027-01-04'
              paidOn: null
              method: bank_debit
              autopay: null
              lines:
                - description: Jan 4 – Feb 3, 2027 · 8 GPUs
                  amountCents: 584000
              reference: MORPH-4F0C2A2E
              url: >-
                https://www.morphllm.com/pay/compute/4f0c2a2e-91d7-4c3b-b5a8-7e6d2f1c0a94
      required:
        - invoices
      description: The invoices of a reservation.
      example:
        invoices:
          - id: 4f0c2a2e-91d7-4c3b-b5a8-7e6d2f1c0a94
            state: due
            amountCents: 584000
            outstandingCents: 584000
            dueOn: '2027-01-04'
            paidOn: null
            method: bank_debit
            autopay: null
            lines:
              - description: Jan 4 – Feb 3, 2027 · 8 GPUs
                amountCents: 584000
            reference: MORPH-4F0C2A2E
            url: >-
              https://www.morphllm.com/pay/compute/4f0c2a2e-91d7-4c3b-b5a8-7e6d2f1c0a94
    ComputeError:
      type: object
      properties:
        error:
          type: string
          description: Why the request failed and what to change, as one or two sentences.
          example: >-
            Reservation not found. List yours with GET
            /api/v1/compute/reservations.
      required:
        - error
      description: Error body returned by the compute routes.
      example:
        error: >-
          Reservation not found. List yours with GET
          /api/v1/compute/reservations.
    ComputeInvoice:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Invoice id.
          example: 4f0c2a2e-91d7-4c3b-b5a8-7e6d2f1c0a94
        state:
          type: string
          enum:
            - scheduled
            - due
            - past_due
            - clearing
            - returned
            - paid
          description: >-
            The field to act on. `due` and `past_due`: pay it at `url`.
            `returned`: the bank returned the debit, so pay it again at `url`.
            `scheduled`: a saved bank account is debited on `autopay.debitOn`,
            nothing to do. `clearing`: a bank debit is under way, about 4
            business days. `paid`: settled.
          example: due
        amountCents:
          type: integer
          description: >-
            The invoice total in US cents, excluding tax. The example is
            illustrative.
          example: 584000
        outstandingCents:
          type: integer
          description: >-
            What is left to pay in US cents after the payments recorded on it. 0
            once paid.
          example: 584000
        dueOn:
          type: string
          description: Due date, as a UTC date.
          example: '2027-01-04'
        paidOn:
          type:
            - string
            - 'null'
          description: The UTC date the payment that settled it cleared. Null until paid.
          example: null
        method:
          type: string
          enum:
            - bank_debit
            - transfer
          description: >-
            `bank_debit`: paid by ACH debit from the invoice page. `transfer`:
            paid by ACH or wire to the bank account shown on the invoice page,
            with `reference` on the transfer.
          example: bank_debit
        autopay:
          type:
            - object
            - 'null'
          properties:
            bankLabel:
              type: string
              description: The saved bank account.
              example: Chase ••6789
            debitOn:
              type: string
              description: The UTC date it is debited.
              example: '2027-02-04'
          required:
            - bankLabel
            - debitOn
          description: >-
            Set only while `state` is `scheduled`: the saved bank account and
            the day it is debited.
          example: null
        lines:
          type: array
          items:
            type: object
            properties:
              description:
                type: string
                description: What the line bills.
                example: Jan 4 – Feb 3, 2027 · 8 GPUs
              amountCents:
                type: integer
                description: The line in US cents. Negative for a credit.
                example: 584000
            required:
              - description
              - amountCents
          description: What the invoice bills, one line per charge.
          example:
            - description: Jan 4 – Feb 3, 2027 · 8 GPUs
              amountCents: 584000
        reference:
          type: string
          description: What to write on a transfer so it is matched to this invoice.
          example: MORPH-4F0C2A2E
        url:
          type: string
          format: uri
          description: >-
            The invoice page: where an unpaid invoice is paid, and the record of
            a paid one. Open it in a browser.
          example: >-
            https://www.morphllm.com/pay/compute/4f0c2a2e-91d7-4c3b-b5a8-7e6d2f1c0a94
      required:
        - id
        - state
        - amountCents
        - outstandingCents
        - dueOn
        - paidOn
        - method
        - autopay
        - lines
        - reference
        - url
      description: One invoice of a reservation.
      example:
        id: 4f0c2a2e-91d7-4c3b-b5a8-7e6d2f1c0a94
        state: due
        amountCents: 584000
        outstandingCents: 584000
        dueOn: '2027-01-04'
        paidOn: null
        method: bank_debit
        autopay: null
        lines:
          - description: Jan 4 – Feb 3, 2027 · 8 GPUs
            amountCents: 584000
        reference: MORPH-4F0C2A2E
        url: >-
          https://www.morphllm.com/pay/compute/4f0c2a2e-91d7-4c3b-b5a8-7e6d2f1c0a94
  responses:
    ComputeUnauthorized:
      description: Missing or invalid Morph API key on a compute request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ComputeError'
          example:
            error: >-
              Missing or invalid API key. Send "Authorization: Bearer <key>"
              with a key from https://www.morphllm.com/dashboard/api-keys
    ComputeNotFound:
      description: >-
        No reservation with this id belongs to the key’s organization. Another
        organization’s reservation also returns 404, so existence is never
        leaked.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ComputeError'
          example:
            error: >-
              Reservation not found. List yours with GET
              /api/v1/compute/reservations.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: >-
        Morph API key, passed as `Authorization: Bearer sk-...`. Create keys at
        https://www.morphllm.com/dashboard/api-keys.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.