Invoice not found
https://developer.hostup.se/errors/invoice_not_found {
"type": "https://developer.hostup.se/errors/invoice_not_found",
"title": "Invoice not found",
"status": 404,
"detail": "The requested invoice could not be found.",
"code": "invoice_not_found",
"instance": "/api/v2/...",
"requestId": "req_abc123",
"timestamp": "2026-04-27T12:00:00.000Z"
} /api/v2/billing/invoices/{id} Get invoice details POST /api/v2/billing/invoices/{id}/actions/apply-credit Apply account credit to invoice POST /api/v2/billing/invoices/{id}/actions/cancel Cancel invoice POST /api/v2/billing/invoices/{id}/actions/generate-payment-link Generate invoice payment link POST /api/v2/billing/invoices/{id}/actions/pay Pay invoice by saved card POST /api/v2/billing/invoices/{id}/actions/resend-email Resend invoice email GET /api/v2/billing/invoices/{id}/credit-note Get credit note PDF GET /api/v2/billing/invoices/{id}/email-info Get invoice email info GET /api/v2/billing/invoices/{id}/payment-link Get invoice payment link state GET /api/v2/billing/invoices/{id}/pdf Get invoice PDF const response = await fetch(url, options);
if (!response.ok) {
const problem = await response.json();
if (problem.code === "invoice_not_found") {
// Handle: Invoice not found
console.error(problem.detail);
}
}