# Hermoso: create_stripe_payment_link · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/workspace/create_stripe_payment_link/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Workspace & account](https://hermoso.ai/docs/reference/workspace/) / create_stripe_payment_link

# `create_stripe_payment_link`

create stripe payment link

Area: Stripe, the full surface · [Workspace & account](https://hermoso.ai/docs/reference/workspace/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/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

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[].priceId` required `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](https://hermoso.ai/docs/credits/).

## Related tools

- [get_stripe_payment_link_revenue](https://hermoso.ai/docs/reference/workspace/get_stripe_payment_link_revenue/) stripe payment link revenue
- [connect_connector](https://hermoso.ai/docs/reference/workspace/connect_connector/) Connect a paste-a-key account
- [create_stripe_price](https://hermoso.ai/docs/reference/workspace/create_stripe_price/) create stripe price
- [create_stripe_coupon](https://hermoso.ai/docs/reference/workspace/create_stripe_coupon/) create stripe coupon
- [create_stripe_product](https://hermoso.ai/docs/reference/workspace/create_stripe_product/) create stripe product
- [create_stripe_customer](https://hermoso.ai/docs/reference/workspace/create_stripe_customer/) create stripe customer
- [list_stripe_coupons](https://hermoso.ai/docs/reference/workspace/list_stripe_coupons/) list stripe coupons
- [create_stripe_subscription](https://hermoso.ai/docs/reference/workspace/create_stripe_subscription/) create stripe subscription
- [list_stripe_refunds](https://hermoso.ai/docs/reference/workspace/list_stripe_refunds/) list stripe refunds
- [cancel_stripe_subscription](https://hermoso.ai/docs/reference/workspace/cancel_stripe_subscription/) cancel stripe subscription

[All 143 Workspace & account tools](https://hermoso.ai/docs/reference/workspace/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
