#406 · Invoice without ticket
done Mon 16:00 · invoice 5951
Ledger row
policy v2
policy v2
- The call
- PUT /invoices/5951/hold
- Action, tier
- hold_invoice, tier 0
- Decided by
- rules: No matching job (job belongs to another vendor); hold it out of the payment run.
- Controller
- Allowed: hold_invoice is tier 0 (just do it); within budget (0 of 40 back-office actions this minute).authorityconditionscooldownbudget
- Definition
- invoice_without_ticket v2
- At stake
- 878 would go out in the next payment run (EUR 878)
- Outcome
- Invoice 5951 held; the vendor is asked for the job number.
- Undo
- Release the hold.
Undo
Restores the before-snapshot below and writes a new row.
Evidence
{
"amount": 878.39,
"amount_at_risk": 878.39,
"building_id": 98,
"currency": "EUR",
"invoice_id": 5951,
"reason": "job belongs to another vendor",
"reference": "Job 3002",
"referenced_ticket_exists": true,
"referenced_ticket_id": 3002,
"referenced_ticket_vendor_id": 223,
"stake_note": "878 would go out in the next payment run",
"started_at": "2026-11-02T15:46:12.693434",
"status": "received",
"trade": "roofing",
"vendor": "Riverside Roofing",
"vendor_id": 172
}Before and after
{
"after": {
"messages": [
{
"body": "Your invoice 'Job 3002' does not match a job we sent you. Please reply with the ticket number; the invoice is on hold until then.",
"created_at": "2026-11-02T16:00:00",
"id": 80,
"kind": "vendor_request",
"status": "outbox",
"subject": "Invoice 5951: job number needed",
"to_id": "172",
"to_name": "Riverside Roofing",
"to_type": "vendor"
}
],
"vendor_invoices": [
{
"held_at": "2026-11-02T16:00:00",
"id": 5951,
"paid_at": null,
"status": "held"
}
]
},
"before": {
"vendor_invoices": [
{
"held_at": null,
"id": 5951,
"paid_at": null,
"status": "received"
}
]
},
"endpoint": "PUT /invoices/5951/hold",
"note": "Invoice 5951 held; the vendor is asked for the job number.",
"ok": true,
"rollback_fn_name": "undo_hold_invoice"
}Arguments
{
"invoice_id": 5951
}