prime_create_ap_invoice
Create an accounts payable invoice for a job from a supplier, recording invoice number, dates, subtotal, tax, and total.
Instructions
Create an accounts payable invoice for a job from a supplier.
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": {
"job_id": "<job_id>",
"supplier_id": "<supplier_id>",
"status_id": "<status_id>",
"invoice_number": "<invoice_number>",
"invoice_date": "<invoice_date>",
"subtotal": "<subtotal>",
"total": "<total>"
},
"name": "prime_create_ap_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Internal notes | |
| total | Yes | Total invoice amount | |
| job_id | Yes | The job ID this invoice belongs to | |
| due_date | No | Payment due date (YYYY-MM-DD) | |
| subtotal | Yes | Invoice subtotal before tax | |
| status_id | Yes | Initial invoice status ID | |
| tax_amount | No | Tax amount | |
| description | No | Invoice description | |
| supplier_id | Yes | Supplier contact ID | |
| invoice_date | Yes | Invoice date (YYYY-MM-DD) | |
| allocation_id | No | Related allocation ID | |
| invoice_number | Yes | Supplier invoice number |