---
title: "Preview next invoice"
method: GET
path: "/workspaces/{workspace_id}/subscription/preview-invoice"
tags: ["Stripe Subscriptions"]
---

# Preview next invoice

`GET /workspaces/{workspace_id}/subscription/preview-invoice`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/workspaces/{workspace_id}/subscription/preview-invoice`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

Preview the next invoice for the workspace using Stripe Invoice.create_preview. Optionally preview invoice with addons (connectors, storage, user seats).

## Path parameters

- `workspace_id` integer, required: Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.

## Query parameters

- `connector_ids` string, nullable
- `additional_storage_gb` integer, nullable
- `additional_user_seats` integer, nullable
- `plan_id` integer, nullable
- `storage_gb` integer, nullable

## Response `200`

Request fulfilled, document follows

- object

## Other responses

- `400`: Bad request syntax or unsupported method

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/fe078afe239b?raw)
