create_stripe_payment_link
create stripe payment link
Description
Create a shareable Stripe Payment Link: for ONE price pass priceId (price_…) with an optional quantity; for several pass lineItems: [{priceId, quantity}]. Optionally redirect to afterCompletionUrl when paid. allowPromotionCodes:true shows the promotion-code box at checkout — needed for any 'use code X' ad. referenceId and utm return a taggedUrl: put THAT URL in the ad, and get_stripe_payment_link_revenue (groupBy reference) then counts that ad's purchases. Returns the URL. LIVE key: confirm:true after showing the preview. Idempotent on its arguments. Needs Stripe connected (Connectors > Stripe, or connect_connector).
Parameters
| Parameter | Type | Description |
|---|---|---|
priceId | string | one price — the shorthand for a single line item |
quantity | number | quantity of priceId, e.g. 2 |
lineItems | object[] | several prices at once; use instead of priceId |
lineItems[].priceIdrequired | string | price id, price_... |
lineItems[].quantity | number | quantity of this price in the link |
afterCompletionUrl | string | URL the buyer is sent to after paying |
allowPromotionCodes | boolean | show the promotion-code box at checkout |
referenceId | string | letters, digits, dashes, underscores (up to 200) — tags the returned taggedUrl for one ad; Stripe stores it on each purchase |
utm | object | UTM values on the taggedUrl (letters, digits, dashes, underscores, up to 150 each); Stripe passes them to the after-payment redirect only |
utm.source | string | UTM source on the tagged URL; letters, digits, dashes and underscores, up to 150 |
utm.medium | string | UTM medium on the tagged URL; letters, digits, dashes and underscores, up to 150 |
utm.campaign | string | UTM campaign on the tagged URL; letters, digits, dashes and underscores, up to 150 |
utm.content | string | UTM content on the tagged URL; letters, digits, dashes and underscores, up to 150 |
utm.term | string | UTM term on the tagged URL; letters, digits, dashes and underscores, up to 150 |
metadata | object | key/value metadata stored on the payment link |
confirm | boolean | true on a live key, after the user approves the preview |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/create_stripe_payment_link.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_stripe_payment_link","arguments":{}}}
CLI
hermoso call create_stripe_payment_link --json '{}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
get_stripe_payment_link_revenuestripe payment link revenueconnect_connectorConnect a paste-a-key accountcreate_stripe_pricecreate stripe pricecreate_stripe_couponcreate stripe couponcreate_stripe_productcreate stripe productcreate_stripe_customercreate stripe customerlist_stripe_couponslist stripe couponscreate_stripe_subscriptioncreate stripe subscriptionlist_stripe_refundslist stripe refundscancel_stripe_subscriptioncancel stripe subscription