Skip to main content

Create Invoice

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

WRITEghl.create_invoice
  • Contract tier: agent_ready
  • Risk: write
  • Catalog version: 2026-07-12.2
  • Descriptor hash: 2c2d717dd3d3e3d8908efabc59fec36b9c74209ea0ab94645c1a1da43e3a1d65

Create a new invoice GHL category: Payments. This writes to GoHighLevel and may change account data.

Request Body

{
"jsonrpc": "2.0",
"id": "ghl-create-invoice-example",
"method": "tools/call",
"params": {
"name": "ghl.create_invoice",
"arguments": {
"contactId": "contactId_123",
"title": "title_example",
"altId": "altId_123",
"items": [],
"dueDate": "dueDate_example",
"currency": "currency_example",
"tenantId": "tenantId_123",
"issueDate": "issueDate_example"
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"contactId",
"title"
],
"properties": {
"altId": {
"type": "string",
"description": "Location ID"
},
"items": {
"type": "array",
"description": "Invoice items"
},
"title": {
"type": "string",
"description": "Invoice title"
},
"dueDate": {
"type": "string",
"description": "Due date"
},
"currency": {
"type": "string",
"description": "Currency code"
},
"tenantId": {
"type": "string",
"description": "Tenant ID from list_tenants."
},
"contactId": {
"type": "string",
"description": "Contact ID"
},
"issueDate": {
"type": "string",
"description": "Issue date"
}
}
}

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-create-invoice-example",
"method": "tools/call",
"params": {
"name": "ghl.create_invoice",
"arguments": {
"contactId": "contactId_123",
"title": "title_example",
"altId": "altId_123",
"items": [],
"dueDate": "dueDate_example",
"currency": "currency_example",
"tenantId": "tenantId_123",
"issueDate": "issueDate_example"
}
}
}'

Example Responses

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