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

NameTypeDescription
idempotency_keystringA unique string that identifies this CreatePaymentLinkRequest request. If you…
descriptionstringA description of the payment link. You provide this optional description that…
quick_payobjectDescribes an ad hoc item and price for which to generate a quick pay checkout…
orderobjectDescribes the Order for which to create a checkout link. For more information…
checkout_optionsobjectDescribes optional fields to add to the resulting checkout page. For more…
pre_populated_dataobjectDescribes fields to prepopulate in the resulting checkout page. For more…
payment_notestringA 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:

call_tool arguments
{
  "name": "square_api__create_payment_link",
  "arguments": {}
}

Or connect the Square API server directly, which lists 308 tools including this one:

Run in your terminal
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 ….

More from Square API