GET
/
organizations
/
{organization}
/
invoices
/
{id}
Get an invoice
curl --request GET \
  --url https://api.planetscale.com/v1/organizations/{organization}/invoices/{id} \
  --header 'Authorization: <api-key>'
{
  "id": "<string>",
  "total": 123,
  "billing_period_start": "<string>",
  "billing_period_end": "<string>"
}

Authorizations

Authorization
string
header
required

Path Parameters

organization
string
required

The name of the organization

id
string
required

The ID of the invoice

Response

Returns an invoice

id
string
required

The ID of the invoice

total
number
required

The total amount of the invoice

billing_period_start
string
required

Start of the billing period

billing_period_end
string
required

End of the billing period