Home / Servers / Stripe API / post_invoices

Create an invoice

An MCP tool from the Stripe API server, hosted on mcp.hjlabs.in.

Create an invoice This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you finalize the invoice, which allows you to pay or send the invoice to your customers. [POST /v1/invoices]

Name on the gateway: stripe_api__post_invoices · may change things.

Parameters

NameTypeDescription
account_tax_idsarrayThe account tax IDs associated with the invoice. Only editable when the…
application_fee_amountintegerA fee in cents (or local equivalent) that will be applied to the invoice and…
auto_advancebooleanControls whether Stripe performs automatic collection of the invoice. If…
automatic_taxobjectSettings for automatic tax lookup for this invoice.
automatically_finalizes_atintegerThe time when this invoice should be scheduled to finalize (up to 5 years in…
collection_methodcharge_automatically | send_invoiceEither charge_automatically, or send_invoice. When charging automatically…
currencystringThe currency to create this invoice in. Defaults to that of customer if not…
custom_fieldsarrayA list of up to 4 custom fields to be displayed on the invoice.
customerstringThe ID of the customer to bill.
customer_accountstringThe ID of the account to bill.
days_until_dueintegerThe number of days from when the invoice is created until it is due. Valid…
default_payment_methodstringID of the default payment method for the invoice. It must belong to the…
default_sourcestringID of the default payment source for the invoice. It must belong to the…
default_tax_ratesarrayThe tax rates that will apply to any line item that does not have tax_rates set.
descriptionstringAn arbitrary string attached to the object. Often useful for displaying to…
discountsarrayThe coupons and promotion codes to redeem into discounts for the invoice. If…
due_dateintegerThe date on which payment for this invoice is due. Valid only for invoices…
effective_atintegerThe date when this invoice is in effect. Same as finalized_at unless…
expandarraySpecifies which fields in the response should be expanded.
footerstringFooter to be displayed on the invoice.
from_invoiceobjectRevise an existing invoice. The new invoice will be created in status=draft.…
issuerobjectThe connected account that issues the invoice. The invoice is presented with…
metadataobjectSet of key-value pairs that you can attach to an object. This can be useful…
numberstringSet the number for this invoice. If no number is present then a number will be…
on_behalf_ofstringThe account (if any) for which the funds of the invoice payment are intended.…
payment_settingsobjectConfiguration settings for the PaymentIntent that is generated when the…
pending_invoice_items_behaviorexclude | includeHow to handle pending invoice items on invoice creation. Defaults to exclude…
renderingobjectThe rendering-related settings that control how invoices render in…
shipping_costobjectSettings for the cost of shipping for this invoice.
shipping_detailsobjectShipping details for the invoice. The Invoice PDF will use the…
statement_descriptorstringExtra information about a charge for the customer's credit card statement. It…
subscriptionstringThe ID of the subscription to invoice, if any. If set, the created invoice…
transfer_dataobjectIf specified, the funds from the invoice will be transferred to the…

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",
  "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 an invoice tool with account_tax_ids set to ….

More from Stripe API