hermosodocs

create_stripe_payment_link

create stripe payment link

Area: Stripe, the full surface · Workspace & account. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
priceIdstringone price — the shorthand for a single line item
quantitynumberquantity of priceId, e.g. 2
lineItemsobject[]several prices at once; use instead of priceId
lineItems[].priceIdrequiredstringprice id, price_...
lineItems[].quantitynumberquantity of this price in the link
afterCompletionUrlstringURL the buyer is sent to after paying
allowPromotionCodesbooleanshow the promotion-code box at checkout
referenceIdstringletters, digits, dashes, underscores (up to 200) — tags the returned taggedUrl for one ad; Stripe stores it on each purchase
utmobjectUTM values on the taggedUrl (letters, digits, dashes, underscores, up to 150 each); Stripe passes them to the after-payment redirect only
utm.sourcestringUTM source on the tagged URL; letters, digits, dashes and underscores, up to 150
utm.mediumstringUTM medium on the tagged URL; letters, digits, dashes and underscores, up to 150
utm.campaignstringUTM campaign on the tagged URL; letters, digits, dashes and underscores, up to 150
utm.contentstringUTM content on the tagged URL; letters, digits, dashes and underscores, up to 150
utm.termstringUTM term on the tagged URL; letters, digits, dashes and underscores, up to 150
metadataobjectkey/value metadata stored on the payment link
confirmbooleantrue 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.

All 143 Workspace & account tools · tools.json