Home / Servers / Stripe API / post_invoices_invoice_attach_payment

Attach a payment to an Invoice

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

Attach a payment to an Invoice Attaches a PaymentIntent or an Out of Band Payment to the invoice, adding it to the list of payments . For the PaymentIntent, when the PaymentIntent’s status changes to succeeded , the payment is… [POST /v1/invoices/{invoice}/attach_payment]

Name on the gateway: stripe_api__post_invoices_invoice_attach_payment · may change things.

Parameters

NameTypeDescription
invoice requiredstringinvoice parameter
expandarraySpecifies which fields in the response should be expanded.
payment_intentstringThe ID of the PaymentIntent to attach to the invoice.
payment_recordstringThe ID of the PaymentRecord to attach to the invoice.

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_attach_payment",
  "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 attach a payment to an invoice tool with invoice set to ….

More from Stripe API