invoice_client_link_tenant
[REQUIRES APPROVAL] Asserts that a billing client IS an on-platform tenant (or pass counterparty_tenant_id null to unlink) and retro-stamps that client's existing invoices with the link in the same call — invoices_stamped in the result is the count. Linking requires the counterparty's 'cross_tenant_settlement' consent AND a live network relationship (an active match or a deal thread); unlinking passes neither gate, since it withdraws your own assertion rather than making a new one. NEXT: invoice_client_read to read back what linked.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"counterparty_tenant_id": "<counterparty_tenant_id>"
},
"name": "invoice_client_link_tenant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The invoice_client id (invoice_client_list shows them). | |
| name | No | ||
| No | |||
| notes | No | ||
| phone | No | ||
| address | No | ||
| company | No | ||
| client_id | No | Alias of id. | |
| contact_id | No | ||
| message_language | No | ||
| reminder_cadence | No | ||
| counterparty_tenant_id | Yes | The on-platform business this client IS (their tenant id). Pass null to unlink. |