Skip to main content
GET
/
api
/
workspace
/
{workspaceId}
/
billing
Get billing overview
curl --request GET \
  --url https://app.alana.shopping/api/workspace/{workspaceId}/billing \
  --header 'Authorization: Bearer <token>'
{
  "plan": "pro",
  "status": "active",
  "current_period_start": "2024-02-15T00:00:00Z",
  "current_period_end": "2024-03-15T00:00:00Z",
  "amount_due": 99.99,
  "currency": "USD",
  "card_last_four": "4242"
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Obtain a token via the authentication endpoint and include it in the Authorization header: Authorization: Bearer <token>

Path Parameters

workspaceId
string
required

The workspace ID

Response

Billing overview retrieved successfully

plan
enum<string>
Available options:
standard,
pro,
business,
enterprise
status
enum<string>
Available options:
active,
past_due,
canceled
current_period_start
string<date-time>
current_period_end
string<date-time>
amount_due
number<float>
currency
string
default:USD
card_last_four
string | null