Skip to content
Median
Esc
↑↓navigate↵open⌘Jpreview

List invoices

Owners and admins only. Newest first.

GET/billing/invoices
Authorization
AuthorizationBearer token · headerrequired
`MEDIAN_KEY` from Settings under API, or an MCP OAuth access token. A key acts as the organization; a token acts as the person who approved it.
Query parameters
limitinteger
Invoices per page.
min 1 · max 100 · default: 25
cursorstring
Continuation cursor from the previous page.
Responses
200A page of invoices.
pageobject[]required
Show properties
Array of object
idstring
statusstring
amountPaidCentsinteger
amountDueCentsinteger
currencystring
occurredAtnumber
hostedUrlstring | null
isDonebooleanrequired
continueCursorstringrequired
400The request is malformed, and the message names the field.
errorobject
Show properties
codestring
messagestring
401The bearer token is missing, revoked, or expired.
errorobject
Show properties
codestring
messagestring
403The token's person does not hold the role this needs.
errorobject
Show properties
codestring
messagestring
429Too many requests. Wait the seconds in `Retry-After`. Limits depend on the plan. See [rate limits](/api/errors-and-limits#rate-limits).
errorobject
Show properties
codestring
messagestring
Request
curl -X GET "https://api.median.sh/v1/billing/invoices" \
  -H "Authorization: Bearer YOUR_TOKEN"
Response
{
  "page": [
    {
      "id": "string",
      "status": "string",
      "amountPaidCents": 0,
      "amountDueCents": 0,
      "currency": "string",
      "occurredAt": 0,
      "hostedUrl": "string"
    }
  ],
  "isDone": true,
  "continueCursor": "string"
}