Home / Servers / Stripe API / post_payment_links_payment_link

Update a payment link

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

Update a payment link Updates a payment link. [POST /v1/payment_links/{payment_link}]

Name on the gateway: stripe_api__post_payment_links_payment_link · may change things.

Parameters

NameTypeDescription
payment_link requiredstringpayment_link parameter
activebooleanWhether the payment link's url is active. If false, customers visiting the URL…
after_completionobjectBehavior after the purchase is complete.
allow_promotion_codesbooleanEnables user redeemable promotion codes.
application_fee_amountintegerThe amount of the application fee (if any) that will be requested to be…
application_fee_percentnumberA non-negative decimal between 0 and 100, with at most two decimal places.…
automatic_taxobjectConfiguration for automatic tax collection.
billing_address_collectionauto | requiredConfiguration for collecting the customer's billing address. Defaults to auto.
consent_collectionobjectConfigure fields to gather active consent from customers.
custom_fieldsarrayCollect additional information from your customer using custom fields. Up to 3…
custom_textobjectDisplay additional text for your customers using custom text. You can't set…
customer_creationalways | if_requiredConfigures whether checkout sessions created by this payment link create a…
expandarraySpecifies which fields in the response should be expanded.
inactive_messagestringThe custom message to be displayed to a customer when a payment link is no…
invoice_creationobjectGenerate a post-purchase Invoice for one-time payments.
line_itemsarrayThe line items representing what is being sold. Each line item represents an…
metadataobjectSet of key-value pairs that you can attach to an object. This can be useful…
name_collectionobjectControls settings applied for collecting the customer's name.
on_behalf_ofstringThe account on behalf of which to charge.
optional_itemsarrayA list of optional items the customer can add to their order at checkout. Use…
payment_intent_dataobjectA subset of parameters to be passed to PaymentIntent creation for Checkout…
payment_method_collectionalways | if_requiredSpecify whether Checkout should collect a payment method. When set to…
payment_method_optionsobjectPayment-method-specific configuration.
payment_method_typesarrayThe list of payment method types that customers can use. Pass an empty string…
phone_number_collectionobjectControls phone number collection settings during checkout. We recommend that…
restrictionsobjectSettings that restrict the usage of a payment link.
shipping_address_collectionobjectConfiguration for collecting the customer's shipping address.
shipping_optionsarrayThe shipping rate options to apply to checkout sessions created by this…
submit_typeauto | book | donate | pay | subscribeDescribes the type of transaction being performed in order to customize…
subscription_dataobjectWhen creating a subscription, the specified configuration data will be used.…
tax_id_collectionobjectControls tax ID collection during checkout.
transfer_dataobjectThe account (if any) the payments will be attributed to for tax reporting, and…

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_payment_links_payment_link",
  "arguments": {
    "payment_link": "…"
  }
}

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 update a payment link tool with payment_link set to ….

More from Stripe API