credit_note_unavailable

HTTP 409

Credit note unavailable

Type URL

https://developer.hostup.se/errors/credit_note_unavailable

Detail message

A credit note is only available for refunded or cancelled invoices. Current invoice status: ${status}.

Example response

{
  "type": "https://developer.hostup.se/errors/credit_note_unavailable",
  "title": "Credit note unavailable",
  "status": 409,
  "detail": "A credit note is only available for refunded or cancelled invoices. Current invoice status: ${status}.",
  "code": "credit_note_unavailable",
  "instance": "/api/v2/...",
  "requestId": "req_abc123",
  "timestamp": "2026-04-27T12:00:00.000Z"
}

Endpoints that may return this error

Handling this error

const response = await fetch(url, options);

if (!response.ok) {
  const problem = await response.json();

  if (problem.code === "credit_note_unavailable") {
    // Handle: Credit note unavailable
    console.error(problem.detail);
  }
}