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

NameTypeDescription
automatic_taxobjectSettings for automatic tax lookup for this invoice preview.
currencystringThe currency to preview this invoice in. Defaults to that of customer if not…
customerstringThe identifier of the customer whose upcoming invoice you're retrieving. If…
customer_accountstringThe identifier of the account representing the customer whose upcoming invoice…
customer_detailsobjectDetails about the customer you want to invoice or overrides for an existing…
discountsarrayThe coupons to redeem into discounts for the invoice preview. If not…
expandarraySpecifies which fields in the response should be expanded.
invoice_itemsarrayList of invoice items to add or update in the upcoming invoice preview (up to…
issuerobjectThe connected account that issues the invoice. The invoice is presented with…
on_behalf_ofstringThe account (if any) for which the funds of the invoice payment are intended.…
preview_modenext | recurringCustomizes the types of values to include when calculating the invoice.…
schedulestringThe identifier of the schedule whose upcoming invoice you'd like to retrieve.…
schedule_detailsobjectThe schedule creation or modification params to apply as a preview. Cannot be…
subscriptionstringThe identifier of the subscription for which you'd like to retrieve the…
subscription_detailsobjectThe 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:

call_tool arguments
{
  "name": "stripe_api__post_invoices_create_preview",
  "arguments": {}
}

Or connect the Stripe API server directly, which lists 606 tools including this one:

Run in your terminal
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 ….

More from Stripe API