Median

GET /billing/invoices

Updated Oct 1, 20261 minute read

List invoices

Owners and admins only. Newest first.

Part of Billing.

Parameters

NameInTypeRequiredDescription
limitqueryintegerNoInvoices per page.
cursorquerystringNoContinuation cursor from the previous page.

Responses

StatusDescription
200A page of invoices.
400The request is malformed, and the message names the field.
401The bearer token is missing, revoked, or expired.
403The token's person does not hold the role this needs.
429Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits.

200 body

FieldTypeRequiredDescription
pageobject[]Yes
page[].idstringNo
page[].statusstringNo
page[].amountPaidCentsintegerNo
page[].amountDueCentsintegerNo
page[].currencystringNo
page[].occurredAtnumberNo
page[].hostedUrlstring | nullNo
isDonebooleanYes
continueCursorstringYes

Example request

curl https://api.median.sh/v1/billing/invoices \
  -H "Authorization: Bearer $BEARER_AUTH"

Still need help?

    Esc