Home / Servers / Square API / create_payment_link
CreatePaymentLink
An MCP tool from the Square API server, hosted on mcp.hjlabs.in.
CreatePaymentLink Creates a Square-hosted checkout page. Applications can share the resulting payment link with their buyer to pay for goods and services. [POST /v2/online-checkout/payment-links]
Name on the gateway: square_api__create_payment_link · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
idempotency_key | string | A unique string that identifies this CreatePaymentLinkRequest request. If you… |
description | string | A description of the payment link. You provide this optional description that… |
quick_pay | object | Describes an ad hoc item and price for which to generate a quick pay checkout… |
order | object | Describes the Order for which to create a checkout link. For more information… |
checkout_options | object | Describes optional fields to add to the resulting checkout page. For more… |
pre_populated_data | object | Describes fields to prepopulate in the resulting checkout page. For more… |
payment_note | string | A note for the payment. After processing the payment, Square adds this note to… |
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": "square_api__create_payment_link",
"arguments": {}
}Or connect the Square API server directly, which lists 308 tools including this one:
claude mcp add --transport http hj-square-api https://mcp.hjlabs.in/mcp/square-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the createpaymentlink tool with idempotency_key set to ….