Skip to main content

Update Invoice Template

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

WRITEghl.update_invoice_template
  • Contract tier: agent_ready
  • Risk: write
  • Catalog version: 2026-07-12.2
  • Descriptor hash: acdd81ea6dfca1784f89990df50d4047b985a9b797322fa2a7b81c67ae8cec43

Update an existing invoice template GHL category: Payments. This writes to GoHighLevel and may change account data.

Request Body

{
"jsonrpc": "2.0",
"id": "ghl-update-invoice-template-example",
"method": "tools/call",
"params": {
"name": "ghl.update_invoice_template",
"arguments": {
"templateId": "templateId_123",
"name": "name_example",
"altId": "altId_123",
"items": [],
"title": "title_example",
"currency": "currency_example",
"discount": {},
"tenantId": "tenantId_123",
"businessDetails": {}
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"templateId"
],
"properties": {
"name": {
"type": "string",
"description": "Template name"
},
"altId": {
"type": "string",
"description": "Location ID"
},
"items": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
},
"description": "Non-empty invoice line items. Required by provider on template update."
},
"title": {
"type": "string",
"description": "Invoice title"
},
"currency": {
"type": "string",
"description": "Currency code"
},
"discount": {
"type": "object",
"description": "GHL discount object. Required by provider on template update.",
"additionalProperties": true
},
"tenantId": {
"type": "string",
"description": "Tenant ID from list_tenants."
},
"templateId": {
"type": "string",
"description": "Template ID"
},
"businessDetails": {
"type": "object",
"description": "GHL business details object. Required by provider on template update.",
"additionalProperties": true
}
}
}

Output Schema

{
"type": "object",
"required": [
"ok",
"data",
"error",
"meta"
],
"properties": {
"ok": {
"type": "boolean",
"description": "Whether the GHL MCP operation completed successfully."
},
"data": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "array",
"items": {}
},
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Tool-specific GHL or local navigation result when ok is true."
},
"meta": {
"type": "object",
"description": "Safe execution, routing, and timing metadata.",
"additionalProperties": true
},
"error": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"description": "Safe error details when ok is false; credential values are never returned."
}
},
"description": "Normalized GHL MCP response envelope.",
"additionalProperties": false
}

Code Examples

curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "ghl-update-invoice-template-example",
"method": "tools/call",
"params": {
"name": "ghl.update_invoice_template",
"arguments": {
"templateId": "templateId_123",
"name": "name_example",
"altId": "altId_123",
"items": [],
"title": "title_example",
"currency": "currency_example",
"discount": {},
"tenantId": "tenantId_123",
"businessDetails": {}
}
}
}'

Example Responses

{
"ok": true,
"message": "Tool ghl.update_invoice_template executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}