Endpoint operation.
Adds a workshop to the authenticated user's favorites.
Auth: Bearer token (`Authorization: Bearer <token>`)Source: CAROWNER-API-COMPLETE.md
Request Example
{
"org_nr": "999999999"
}
Response Example
{
"data": {
"message": "string_value"
}
}
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: "post",
url: BASE_URL + "/api/co/favorits",
headers: {
"Content-Type": "application/json",
Authorization: "Bearer " + ACCESS_TOKEN,
},
data: {
"org_nr": "999999999"
},
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 POST 'https://api.minbil.no/api/co/favorits'\
-H 'Accept: application/json'\
-H 'Authorization: Bearer <access-token>'\
-H 'Content-Type: application/json'\
-d '{"org_nr": "999999999"}'
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/favorits", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: "Bearer " + ACCESS_TOKEN,
},
body: JSON.stringify({
"org_nr": "999999999"
}),
});
const data = await response.json();
console.log(response.status, data);
GET/api/co/shops?org=string_value&q=string_value&workshop_category_id=string_value&service_category_id=string_valueEndpoint operation.
Lists workshops with filtering, pagination, and optional marketplace layout. Notes - `layout=market` returns `nearby_top` and `results`. - `workshop_category_id` and `service_category_id` accept CSV or repeated params. - If a Bearer token is provided, `is_favourite` is accurate.
Auth: None (public endpoint).Source: CAROWNER-API-COMPLETE.md
Response Example
{
"data": [
{
"org_nr": "921460929",
"name": "string_value",
"address_line": "string_value",
"city": "string_value",
"postal_code": "string_value",
"latitude": 499.0,
"longitude": 499.0,
"distance_km": 499.0,
"logo": [
{}
],
"categories": [
{}
],
"avg_rating": 499.0,
"total_reviews": 1,
"cheapest_service_price": 499.0,
"services_count": 1
}
],
"meta": {
"page": 1,
"page_size": 1,
"total": 1,
"total_pages": 1,
"has_next": true,
"has_prev": true,
"count": 1
},
"links": {
"self": "string_value",
"first": "string_value",
"prev": "string_value",
"next": "string_value",
"last": "string_value"
},
"facets": {}
}
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: "get",
url: BASE_URL + "/api/co/shops?org=string_value&q=string_value&workshop_category_id=string_value&service_category_id=string_value",
headers: {
"Content-Type": "application/json",
},
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 GET 'https://api.minbil.no/api/co/shops?org=string_value&q=string_value&workshop_category_id=string_value&service_category_id=string_value'\
-H 'Accept: application/json'
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/shops?org=string_value&q=string_value&workshop_category_id=string_value&service_category_id=string_value", {
method: "GET",
headers: {
"Content-Type": "application/json",
},
});
const data = await response.json();
console.log(response.status, data);