Home / Servers / Stripe API / post_invoices_invoice_pay

Pay an invoice

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

Pay an invoice Stripe automatically creates and then attempts to collect payment on invoices for customers on subscriptions according to your subscriptions settings . However, if you’d like to attempt payment on… [POST /v1/invoices/{invoice}/pay]

Name on the gateway: stripe_api__post_invoices_invoice_pay · may change things.

Parameters

NameTypeDescription
invoice requiredstringinvoice parameter
expandarraySpecifies which fields in the response should be expanded.
forgivebooleanIn cases where the source used to pay the invoice has insufficient funds…
mandatestringID of the mandate to be used for this invoice. It must correspond to the…
off_sessionbooleanIndicates if a customer is on or off-session while an invoice payment is…
paid_out_of_bandbooleanBoolean representing whether an invoice is paid outside of Stripe. This will…
payment_methodstringA PaymentMethod to be charged. The PaymentMethod must be the ID of a…
sourcestringA payment source to be charged. The source must be the ID of a source…

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_invoice_pay",
  "arguments": {
    "invoice": "…"
  }
}

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

More from Stripe API