upstream_invoice_shape_invalid

HTTP 502

Invoice unavailable after payment

Type URL

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

Possible detail messages

Payment was accepted but the updated invoice could not be loaded. Refresh to view the new status.
Credit was applied but the updated invoice could not be loaded. Refresh to view the new state.

Example response

{
  "type": "https://developer.hostup.se/errors/upstream_invoice_shape_invalid",
  "title": "Invoice unavailable after payment",
  "status": 502,
  "detail": "Payment was accepted but the updated invoice could not be loaded. Refresh to view the new status.",
  "code": "upstream_invoice_shape_invalid",
  "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 === "upstream_invoice_shape_invalid") {
    // Handle: Invoice unavailable after payment
    console.error(problem.detail);
  }
}