Skip to main content
GET
List invoices of a reservation

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.

Authorizations

Authorization
string
header
required

Morph API key, passed as Authorization: Bearer sk-.... Create keys at https://www.morphllm.com/dashboard/api-keys.

Path Parameters

id
string<uuid>
required

Identifies the reservation to list invoices for. Id of the reservation whose invoices to list.

Example:

"b81f2c40-7d9e-4a35-9c16-3f5a8e0d2b74"

Response

The invoices.

The invoices of a reservation.

invoices
object[]
required

Unpaid invoices first, oldest due first, then paid ones, newest payment first. Withdrawn invoices are left out.

Example: