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
| Name | Type | Description |
|---|---|---|
after_completion | object | Behavior after the purchase is complete. |
allow_promotion_codes | boolean | Enables user redeemable promotion codes. |
application_fee_amount | integer | The amount of the application fee (if any) that will be requested to be… |
application_fee_percent | number | A non-negative decimal between 0 and 100, with at most two decimal places.… |
automatic_tax | object | Configuration for automatic tax collection. |
billing_address_collection | auto | required | Configuration for collecting the customer's billing address. Defaults to auto. |
consent_collection | object | Configure fields to gather active consent from customers. |
currency | string | Three-letter ISO currency code, in lowercase. Must be a supported currency and… |
custom_fields | array | Collect additional information from your customer using custom fields. Up to 3… |
custom_text | object | Display additional text for your customers using custom text. You can't set… |
customer_creation | always | if_required | Configures whether checkout sessions created by this payment link create a… |
expand | array | Specifies which fields in the response should be expanded. |
inactive_message | string | The custom message to be displayed to a customer when a payment link is no… |
invoice_creation | object | Generate a post-purchase Invoice for one-time payments. |
line_items required | array | The line items representing what is being sold. Each line item represents an… |
managed_payments | object | Settings for Managed Payments for this Payment Link and resulting… |
metadata | object | Set of key-value pairs that you can attach to an object. This can be useful… |
name_collection | object | Controls settings applied for collecting the customer's name. |
on_behalf_of | string | The account on behalf of which to charge. |
optional_items | array | A list of optional items the customer can add to their order at checkout. Use… |
payment_intent_data | object | A subset of parameters to be passed to PaymentIntent creation for Checkout… |
payment_method_collection | always | if_required | Specify whether Checkout should collect a payment method. When set to… |
payment_method_options | object | Payment-method-specific configuration. |
payment_method_types | array | The list of payment method types that customers can use. If no value is… |
phone_number_collection | object | Controls phone number collection settings during checkout. We recommend that… |
restrictions | object | Settings that restrict the usage of a payment link. |
shipping_address_collection | object | Configuration for collecting the customer's shipping address. |
shipping_options | array | The shipping rate options to apply to checkout sessions created by this… |
submit_type | auto | book | donate | pay | subscribe | Describes the type of transaction being performed in order to customize… |
subscription_data | object | When creating a subscription, the specified configuration data will be used.… |
tax_id_collection | object | Controls tax ID collection during checkout. |
transfer_data | object | The 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:
{
"name": "stripe_api__post_payment_links",
"arguments": {
"line_items": []
}
}Or connect the Stripe API server directly, which lists 606 tools including this one:
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 ….