Update invoice assignee
update_invoice_assigneeAssigns the invoice to a team member, by userId from list_users or by email, or unassigns it with userId null. The assigned team member is notified, as when assigning in the app.
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": {
"organisationId": "<organisationId>",
"id": "<id>"
},
"name": "update_invoice_assignee"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Paidnice invoice id, from list_invoices. This is not the invoice number | |
| No | Email of the team member to assign, instead of userId. Case insensitive | ||
| userId | No | Id of the team member to assign, from list_users. Pass null to unassign. Send either userId or email, not both | |
| organisationId | Yes | Id of the organisation to act on, from list_organisations |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Paidnice invoice id. Use it with get_invoice and as invoiceId in list_notes and list_actions. Not the invoice number | |
| frozen | Yes | True when Paidnice is skipping the invoice, so its policies do not run on it | |
| number | No | Invoice number shown to the customer | |
| status | Yes | Invoice status in the accounting system, for example AUTHORISED or PAID | |
| dueDate | Yes | Date the invoice is due, as YYYY-MM-DD | |
| currency | Yes | Invoice currency (ISO 4217 code). The amounts are in this currency | |
| contactId | Yes | Paidnice id of the invoice's contact. Use it with get_contact | |
| dueAmount | Yes | Amount still owed, as a decimal in the invoice currency | |
| issueDate | Yes | Date the invoice was issued, as YYYY-MM-DD | |
| portalUrl | Yes | Link to the invoice in the Paidnice customer payment portal | |
| reference | No | The invoice reference from the accounting system, often a purchase order number | |
| taxAmount | Yes | Tax on the invoice, as a decimal in the invoice currency | |
| paidAmount | Yes | Amount paid so far, as a decimal in the invoice currency | |
| contactName | No | Name of the invoice's contact | |
| totalAmount | Yes | Invoice total including tax, as a decimal in the invoice currency | |
| assignedUser | Yes | The team member who owns the invoice, null when unassigned | |
| exchangeRate | Yes | Exchange rate Paidnice uses for the invoice, 1 when the invoice is in the base currency | |
| paymentPlans | No | Payment plans on the invoice, newest first. Only present with includePaymentPlans | |
| depositAmount | Yes | Deposit amount, as a decimal in the invoice currency. QuickBooks Online only, 0 otherwise | |
| creditedAmount | Yes | Total credited against the invoice, as a decimal in the invoice currency | |
| discountAmount | Yes | Total discount applied to the invoice, as a decimal in the invoice currency | |
| invoiceQueries | No | Queries on the invoice, newest first. Only present with includeInvoiceQueries | |
| lastSyncedDate | No | When Paidnice last synced a change to the invoice from the accounting system, as an ISO 8601 datetime | |
| sentToCustomer | Yes | True when the invoice has been sent to the customer | |
| subtotalAmount | Yes | Invoice total before tax, as a decimal in the invoice currency | |
| paymentPromises | No | Promises to pay on the invoice, newest first. Only present with includePaymentPromises | |
| accountingSystemId | Yes | The invoice's id in the connected accounting system | |
| accountingSystemOnlineUrl | No | Link to view the invoice online in the accounting system, when available | |
| accountingSystemExchangeRate | No | Exchange rate recorded on the invoice in the accounting system, when it has one |