pending_orders

HTTP 409

Pending orders present

Type URL

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

Detail message

Finish or cancel pending orders before changing currency. A currency switch while an order is pending can change the total you are billed.

Example response

{
  "type": "https://developer.hostup.se/errors/pending_orders",
  "title": "Pending orders present",
  "status": 409,
  "detail": "Finish or cancel pending orders before changing currency. A currency switch while an order is pending can change the total you are billed.",
  "code": "pending_orders",
  "instance": "/api/v2/...",
  "requestId": "req_abc123",
  "timestamp": "2026-04-27T12:00:00.000Z"
}

Handling this error

const response = await fetch(url, options);

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

  if (problem.code === "pending_orders") {
    // Handle: Pending orders present
    console.error(problem.detail);
  }
}