Home / Servers / Stripe API / post_invoices_create_preview
Create a preview invoice
An MCP tool from the Stripe API server, hosted on mcp.hjlabs.in.
Create a preview invoice At any time, you can preview the upcoming invoice for a subscription or subscription schedule. This will show you all the charges that are pending, including subscription renewal charges, invoice… [POST /v1/invoices/create_preview]
Name on the gateway: stripe_api__post_invoices_create_preview · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
automatic_tax | object | Settings for automatic tax lookup for this invoice preview. |
currency | string | The currency to preview this invoice in. Defaults to that of customer if not… |
customer | string | The identifier of the customer whose upcoming invoice you're retrieving. If… |
customer_account | string | The identifier of the account representing the customer whose upcoming invoice… |
customer_details | object | Details about the customer you want to invoice or overrides for an existing… |
discounts | array | The coupons to redeem into discounts for the invoice preview. If not… |
expand | array | Specifies which fields in the response should be expanded. |
invoice_items | array | List of invoice items to add or update in the upcoming invoice preview (up to… |
issuer | object | The connected account that issues the invoice. The invoice is presented with… |
on_behalf_of | string | The account (if any) for which the funds of the invoice payment are intended.… |
preview_mode | next | recurring | Customizes the types of values to include when calculating the invoice.… |
schedule | string | The identifier of the schedule whose upcoming invoice you'd like to retrieve.… |
schedule_details | object | The schedule creation or modification params to apply as a preview. Cannot be… |
subscription | string | The identifier of the subscription for which you'd like to retrieve the… |
subscription_details | object | The subscription creation or modification params to apply as a preview. Cannot… |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "stripe_api__post_invoices_create_preview",
"arguments": {}
}Or connect the Stripe API server directly, which lists 606 tools including this one:
claude mcp add --transport http hj-stripe-api https://mcp.hjlabs.in/mcp/stripe-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the create a preview invoice tool with automatic_tax set to ….