Home / Servers / Stripe API / post_payment_links

Create a payment link

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

Create a payment link Creates a payment link. [POST /v1/payment_links]

Name on the gateway: stripe_api__post_payment_links · may change things.

Parameters

NameTypeDescription
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.
currencystringThree-letter ISO currency code, in lowercase. Must be a supported currency and…
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_items requiredarrayThe line items representing what is being sold. Each line item represents an…
managed_paymentsobjectSettings for Managed Payments for this Payment Link and resulting…
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. If no value is…
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",
  "arguments": {
    "line_items": []
  }
}

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

More from Stripe API