Home / Servers / Square API / pay_order

PayOrder

An MCP tool from the Square API server, hosted on mcp.hjlabs.in.

PayOrder Pay for an order using one or more approved payments or settle an order with a total of 0. The total of the payment_ids listed in the request must be equal to the order total. Orders with a total… [POST /v2/orders/{order_id}/pay]

Name on the gateway: square_api__pay_order · may change things.

Parameters

NameTypeDescription
order_id requiredstringThe ID of the order being paid.
idempotency_key requiredstringA value you specify that uniquely identifies this request among requests you…
order_versionintegerThe version of the order being paid. If not supplied, the latest version will…
payment_idsarrayThe IDs of the payments to collect. The payment total must match the order…

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__pay_order",
  "arguments": {
    "order_id": "…",
    "idempotency_key": "…"
  }
}

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 payorder tool with order_id set to ….

More from Square API