Page Introduction

BookingStatus namespace

This namespace page is optimized for frontend implementation with endpoint index, request/response examples, and code snippets.

  • Use auth and summary fields to configure your API client.
  • Use code snippets as starter references, not production-ready final code.
  • Validate critical mutations in interactive console before release.

CarOwner Namespace

BookingStatus

Namespace details with request/response examples and code snippets.

1Endpoint methods

Endpoint Quick Index

Detailed Endpoints

PUT/api/co/bookings/123

Endpoint operation.

Updates a single booking line. Supported actions: - Reschedule by providing `service_start_time`. - Cancel by sending `status=CANCELLED`. - If policy blocks direct mutation, a change request is created. - Append messages/attachments without changing status.

Auth: Bearer token (`Authorization: Bearer <token>`)Source: CAROWNER-API-COMPLETE.md

Request Example

{
  "service_start_time": "2026-02-12T10:00:00Z",
  "status": "string_value",
  "cancellation_reason": 59.9139,
  "attachments": [
    {}
  ],
  "message": {}
}

Response Example

{
  "data": {},
  "meta": {
    "request_id": "f59ee325-0445-4bd0-9bf1-73edcd7da151",
    "generated_at": "2026-02-12T10:00:00Z"
  }
}
Node.js Axios example
import axios from "axios";

const BASE_URL = process.env.MINBIL_API_BASE_URL ?? "http://localhost:5000";
const API_KEY = process.env.MINBIL_API_KEY ?? "YOUR_API_KEY";
const ACCESS_TOKEN = process.env.MINBIL_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";

async function run() {
  const response = await axios({
    method: "put",
    url: BASE_URL + "/api/co/bookings/123",
    headers: {
      "Content-Type": "application/json",
      Authorization: "Bearer " + ACCESS_TOKEN,
    },
    data: {
        "service_start_time": "2026-02-12T10:00:00Z",
        "status": "string_value",
        "cancellation_reason": 59.9139,
        "attachments": [
            {}
        ],
        "message": {}
    },
    timeout: 20000,
  });
  console.log(response.status, response.data);
}

run().catch((error) => {
  console.error(error.response?.status, error.response?.data ?? error.message);
});
cURL example
curl -X PUT 'https://api.minbil.no/api/co/bookings/123'\
  -H 'Accept: application/json'\
  -H 'Authorization: Bearer <access-token>'\
  -H 'Content-Type: application/json'\
  -d '{"service_start_time": "2026-02-12T10:00:00Z", "status": "string_value", "cancellation_reason": 59.9139, "attachments": [{}], "message": {}}'
Fetch example
const BASE_URL = process.env.MINBIL_API_BASE_URL ?? "http://localhost:5000";
const API_KEY = process.env.MINBIL_API_KEY ?? "YOUR_API_KEY";
const ACCESS_TOKEN = process.env.MINBIL_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";

const response = await fetch(BASE_URL + "/api/co/bookings/123", {
  method: "PUT",
  headers: {
    "Content-Type": "application/json",
    Authorization: "Bearer " + ACCESS_TOKEN,
  },
  body: JSON.stringify({
    "service_start_time": "2026-02-12T10:00:00Z",
    "status": "string_value",
    "cancellation_reason": 59.9139,
    "attachments": [
      {}
    ],
    "message": {}
  }),
});
const data = await response.json();
console.log(response.status, data);