invoices_create
Create a new invoice in SyncroMSP. After creation, add line items using the invoices_add_line_item tool.
Instructions
Create a new invoice. Note: line_items in the create body are IGNORED by the API -- add line items via invoices_add_line_item after creation.
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": {
"customer_id": "<customer_id>"
},
"name": "invoices_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Invoice date | |
| note | No | Invoice note | |
| number | No | Invoice number | |
| due_date | No | Due date | |
| po_number | No | PO number | |
| ticket_id | No | Associated ticket ID | |
| contact_id | No | Contact ID | |
| line_items | No | Array of line item objects | |
| customer_id | Yes | Customer ID (required) | |
| location_id | No | Location ID | |
| hardwarecost | No | Hardware cost |