Home / Servers / Square API / publish_invoice
PublishInvoice
An MCP tool from the Square API server, hosted on mcp.hjlabs.in.
PublishInvoice Publishes the specified draft invoice. After an invoice is published, Square follows up based on the invoice configuration. For example, Square sends the invoice to the customer's email address… [POST /v2/invoices/{invoice_id}/publish]
Name on the gateway: square_api__publish_invoice · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
invoice_id required | string | The ID of the invoice to publish. |
version required | integer | The version of the invoice to publish. This must match the current version of… |
idempotency_key | string | A unique string that identifies the PublishInvoice request. If you do not… |
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__publish_invoice",
"arguments": {
"invoice_id": "…",
"version": 0
}
}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 publishinvoice tool with invoice_id set to ….