SnozeDevelopers
API referenceBilling

Read the detailed billing record for a workspace

Returns the expanded billing detail behind the subscription summary. Requires a Clerk session and the `billing:read` workspace permission.

GET
/v1/workspaces/{workspaceId}/billing/detail

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

Path Parameters

workspaceId*string

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X GET 'https://api.snoze.dev/v1/workspaces/string/billing/detail'
Example Response
{  "data": {    "invoices": [      {        "id": "string",        "createdAt": "string",        "amountCents": 0,        "currency": "string",        "status": "string",        "paid": true,        "invoiceUrl": "string",        "description": "string",        "invoiceNumber": "string",        "reason": "string",        "lines": [          {            "label": "string",            "amountCents": 0          }        ]      }    ],    "paymentMethod": {      "type": "card",      "brand": "string",      "last4": "string",      "expMonth": 0,      "expYear": 0    },    "invoicesUnavailable": true,    "invoicesHasMore": true,    "paymentMethodUnavailable": true,    "accountCredit": {      "amountCents": 0,      "currency": "string"    }  }}