#363 · Invoice without ticket
done Mon 10:00 · invoice 5351
Ledger row
policy v2
policy v2
- The call
- PUT /invoices/5351/hold
- Action, tier
- hold_invoice, tier 0
- Decided by
- rules: No matching job (job number does not exist); hold it out of the payment run.
- Controller
- Allowed: hold_invoice is tier 0 (just do it); within budget (2 of 40 back-office actions this minute).authorityconditionscooldownbudget
- Definition
- invoice_without_ticket v2
- At stake
- 674 would go out in the next payment run (EUR 674)
- Outcome
- Invoice 5351 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": 673.71,
"amount_at_risk": 673.71,
"building_id": 11,
"currency": "EUR",
"invoice_id": 5351,
"reason": "job number does not exist",
"reference": "T-13317",
"referenced_ticket_exists": false,
"referenced_ticket_id": 13317,
"referenced_ticket_vendor_id": null,
"stake_note": "674 would go out in the next payment run",
"started_at": "2026-11-02T09:41:42.781063",
"status": "received",
"trade": "general",
"vendor": "Lowland Building Repairs",
"vendor_id": 206
}Before and after
{
"after": {
"messages": [
{
"body": "Your invoice 'T-13317' 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-02T10:00:00",
"id": 57,
"kind": "vendor_request",
"status": "outbox",
"subject": "Invoice 5351: job number needed",
"to_id": "206",
"to_name": "Lowland Building Repairs",
"to_type": "vendor"
}
],
"vendor_invoices": [
{
"held_at": "2026-11-02T10:00:00",
"id": 5351,
"paid_at": null,
"status": "held"
}
]
},
"before": {
"vendor_invoices": [
{
"held_at": null,
"id": 5351,
"paid_at": null,
"status": "received"
}
]
},
"endpoint": "PUT /invoices/5351/hold",
"note": "Invoice 5351 held; the vendor is asked for the job number.",
"ok": true,
"rollback_fn_name": "undo_hold_invoice"
}Arguments
{
"invoice_id": 5351
}