Info
Welcome to the generated API reference. Get Postman Collection
general
Store a newly created resource in storage.
Example request:
curl -X POST \
"https://api.web-parts.com/api/v1/account" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/account"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/v1/account
Request reset password link.
Example request:
curl -X POST \
"https://api.web-parts.com/api/v1/account/recover" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/account/recover"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/v1/account/recover
Update password
Example request:
curl -X POST \
"https://api.web-parts.com/api/v1/account/reset" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/account/reset"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/v1/account/reset
Display a listing of the resource.
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/addresses" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/addresses"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"error": "An error occurred"
}
HTTP Request
GET api/v1/addresses
Store a newly created resource in storage.
Example request:
curl -X POST \
"https://api.web-parts.com/api/v1/addresses" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/addresses"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/v1/addresses
Display the specified resource.
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/addresses/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/addresses/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (404):
{
"status": "Not Found"
}
HTTP Request
GET api/v1/addresses/{address}
Update the specified resource in storage.
Example request:
curl -X PUT \
"https://api.web-parts.com/api/v1/addresses/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/addresses/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT api/v1/addresses/{address}
PATCH api/v1/addresses/{address}
Remove the specified resource from storage.
Example request:
curl -X DELETE \
"https://api.web-parts.com/api/v1/addresses/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/addresses/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
DELETE api/v1/addresses/{address}
Display a listing of the resource.
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/bestoffers/1/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/bestoffers/1/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"status": "success",
"data": [],
"links": {
"self": "link-value"
}
}
HTTP Request
GET api/v1/bestoffers/{countryCode}/{currencyCode}
Paginated list of brands
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/brands/ZA?letter=A&noOfItems=10" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/brands/ZA"
);
let params = {
"letter": "A",
"noOfItems": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"status": "success",
"data": [
{
"id": 346,
"title": "Zarges",
"code": "ZA",
"description_en": null,
"description_da": null,
"description_de": null,
"producerUrl": null,
"catalogUrl": null,
"themeColor": null
}
],
"links": {
"self": "link-value"
}
}
HTTP Request
GET api/v1/brands/{brandCode?}
URL Parameters
| Parameter | Status | Description |
|---|---|---|
brandCode |
optional | Brand code. |
Query Parameters
| Parameter | Status | Description |
|---|---|---|
letter |
optional | Filter by first letter. |
noOfItems |
optional | Number of items per page. |
Paginated list of brands where brand code or brand name is matching part of search string
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/brands/search/ZA?noOfItems=5" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/brands/search/ZA"
);
let params = {
"noOfItems": "5",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"status": "success",
"data": [
{
"id": 346,
"title": "Zarges",
"code": "ZA",
"description_en": null,
"description_da": null,
"description_de": null,
"producerUrl": null,
"catalogUrl": null,
"themeColor": null
}
],
"links": {
"self": "link-value",
"first": "http:\/\/localhost\/api\/v1\/brands\/search\/ZA?page=1",
"last": "http:\/\/localhost\/api\/v1\/brands\/search\/ZA?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "http:\/\/localhost\/api\/v1\/brands\/search\/ZA",
"per_page": "5",
"to": 1,
"total": 1
}
}
HTTP Request
GET api/v1/brands/search/{search}
URL Parameters
| Parameter | Status | Description |
|---|---|---|
search |
required | String to search for. |
Query Parameters
| Parameter | Status | Description |
|---|---|---|
noOfItems |
optional | Number of items per page. |
Display a listing of the resource.
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/cachestats/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/cachestats/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (500):
{
"message": "Server Error"
}
HTTP Request
GET api/v1/cachestats/{currencyCode}
Display a listing of the resource.
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/cache/clear/parts/retailer/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/cache/clear/parts/retailer/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"status": "cleared",
"data": {
"type": "parts\/retailer",
"retailerId": 1
}
}
HTTP Request
GET api/v1/cache/clear/parts/retailer/{retailerId}
Display a listing of the resource.
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/campaigns" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/campaigns"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"status": "success",
"data": [
{
"id": 3405679,
"part_number": "AL5044968",
"retailer_id": 139,
"name": "Alo kobling f. multikobling",
"price": 312,
"obsolete_number": 0,
"currency_code": "DKK",
"quantity": 44,
"specification": null,
"catalog_link": null,
"brand_code": 15,
"description1": "Alo kobling f. multikobling",
"description2": "",
"image": null,
"has_image": 0,
"last_changed": "2020-03-17 11:06:05",
"uploaded": 1,
"price_campaign": "250.00",
"part_type": 0,
"image_id": null,
"stored_quantity": "0.00",
"discount_percent": 80
}
],
"links": {
"self": "link-value"
}
}
HTTP Request
GET api/v1/campaigns
Display a listing of the resource.
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/countries" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/countries"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"status": "success",
"data": [
{
"country_code": "ae",
"name": "United Arab Emirates",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "AED",
"created_at": null,
"updated_at": null
},
{
"country_code": "AR",
"name": "Argentina",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "AT",
"name": "Austria",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "25.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "AU",
"name": "Australia",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "BE",
"name": "Belgium",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "25.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "bg",
"name": "Bulgaria",
"timezone_offset": "+0200",
"timezone": "Europe\/Sofia",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "25.00",
"currency_code": "BGN",
"created_at": null,
"updated_at": null
},
{
"country_code": "BR",
"name": "Brazil",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "BY",
"name": "Belarus",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "CA",
"name": "Canada",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "CH",
"name": "Schweiz",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "CN",
"name": "China",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "CR",
"name": "Costa RIca",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "cy",
"name": "Cyprus",
"timezone_offset": "+0200",
"timezone": "Europe\/Nicosia",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "25.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "cz",
"name": "Czech Republic",
"timezone_offset": "+0100",
"timezone": "Europe\/Prague",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "25.00",
"currency_code": "CZK",
"created_at": null,
"updated_at": null
},
{
"country_code": "de",
"name": "Germany",
"timezone_offset": "+0100",
"timezone": "Europe\/Berlin",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "19.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "dk",
"name": "Denmark",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 1,
"VAT1": "25.00",
"VAT2": "25.00",
"currency_code": "DKK",
"created_at": null,
"updated_at": null
},
{
"country_code": "DO",
"name": "Dominicana Rep.",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "USD",
"created_at": null,
"updated_at": null
},
{
"country_code": "DZ",
"name": "Algeria",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "ee",
"name": "Estonia",
"timezone_offset": "+0200",
"timezone": "Europe\/Tallinn",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "25.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "EG",
"name": "Egypt",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "EL",
"name": "Greece",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "25.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "es",
"name": "Spain",
"timezone_offset": "+0200",
"timezone": "Europe\/Madrid",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "25.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "fi",
"name": "Finland",
"timezone_offset": "+0200",
"timezone": "Europe\/Helsinki",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "25.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "fr",
"name": "France",
"timezone_offset": "+0100",
"timezone": "Europe\/Paris",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "25.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "gb",
"name": "United Kingdom",
"timezone_offset": "+0000",
"timezone": "Europe\/London",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "20.00",
"currency_code": "GBP",
"created_at": null,
"updated_at": null
},
{
"country_code": "GE",
"name": "Georgia",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "gl",
"name": "Greenland",
"timezone_offset": "-0200",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "DKK",
"created_at": null,
"updated_at": null
},
{
"country_code": "HR",
"name": "Croatia",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "25.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "hu",
"name": "Hungary",
"timezone_offset": "+0100",
"timezone": "Europe\/Budapest",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "25.00",
"currency_code": "HUF",
"created_at": null,
"updated_at": null
},
{
"country_code": "IE",
"name": "Ireland",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "25.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "IL",
"name": "Israel",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "IN",
"name": "India",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "IQ",
"name": "Iraq",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "IS",
"name": "Iceland",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "it",
"name": "Italy",
"timezone_offset": "+0100",
"timezone": "Europe\/Rome",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "25.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "JP",
"name": "Japan",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "KR",
"name": "South Korea",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "KV",
"name": "Kosovo",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "KW",
"name": "Kuwait",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "lt",
"name": "Lithuania",
"timezone_offset": "+0200",
"timezone": "Europe\/Vilnius",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "25.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "LU",
"name": "Luxembourg",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "25.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "lv",
"name": "Latvia",
"timezone_offset": "+0200",
"timezone": "Europe\/Riga",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "25.00",
"currency_code": "LVL",
"created_at": null,
"updated_at": null
},
{
"country_code": "MD",
"name": "Moldova",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "MK",
"name": "Morocco",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "MN",
"name": "Mongoliet",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "NC",
"name": "New Caledonia",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "nl",
"name": "Nederland",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "21.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "no",
"name": "Norway",
"timezone_offset": "+0100",
"timezone": "Europe\/Oslo",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "NOK",
"created_at": null,
"updated_at": null
},
{
"country_code": "NZ",
"name": "New Zealand",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "USD",
"created_at": null,
"updated_at": null
},
{
"country_code": "PE",
"name": "Peru",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "PF",
"name": "Tahiti",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "PG",
"name": "Papua New Guinea",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "pl",
"name": "Poland",
"timezone_offset": "+0100",
"timezone": "Europe\/Warsaw",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "25.00",
"currency_code": "PLN",
"created_at": null,
"updated_at": null
},
{
"country_code": "PT",
"name": "Portugal",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "25.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "PY",
"name": "Paraguay",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "USD",
"created_at": null,
"updated_at": null
},
{
"country_code": "QA",
"name": "Qatar",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "ro",
"name": "Romania",
"timezone_offset": "+0200",
"timezone": "Europe\/Bucharest",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "25.00",
"currency_code": "RON",
"created_at": null,
"updated_at": null
},
{
"country_code": "RU",
"name": "Russia",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "RUB",
"created_at": null,
"updated_at": null
},
{
"country_code": "se",
"name": "Sweden",
"timezone_offset": "+0100",
"timezone": "Europe\/Stockholm",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "25.00",
"currency_code": "SEK",
"created_at": null,
"updated_at": null
},
{
"country_code": "si",
"name": "Slovenia",
"timezone_offset": "+0100",
"timezone": "Europe\/Ljubljana",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "25.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "sk",
"name": "Slovakia",
"timezone_offset": "+0100",
"timezone": "Europe\/Bratislava",
"EUMember": 1,
"VAT1": "0.00",
"VAT2": "25.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "TR",
"name": "Turkey",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "TW",
"name": "Taiwan",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "EUR",
"created_at": null,
"updated_at": null
},
{
"country_code": "UA",
"name": "Ukraine",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "UAH",
"created_at": null,
"updated_at": null
},
{
"country_code": "US",
"name": "USA",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "USD",
"created_at": null,
"updated_at": null
},
{
"country_code": "ZA",
"name": "South Africa",
"timezone_offset": "+0100",
"timezone": "Europe\/Copenhagen",
"EUMember": 0,
"VAT1": "0.00",
"VAT2": "0.00",
"currency_code": "USD",
"created_at": null,
"updated_at": null
}
],
"links": {
"self": "link-value"
}
}
HTTP Request
GET api/v1/countries
Store a newly created resource in storage.
Example request:
curl -X POST \
"https://api.web-parts.com/api/v1/companies" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/companies"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/v1/companies
Update the specified resource in storage.
Example request:
curl -X PUT \
"https://api.web-parts.com/api/v1/companies/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/companies/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT api/v1/companies/{id}
Display a listing of the resource.
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/companies" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/companies"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"status": "Unauthorized"
}
HTTP Request
GET api/v1/companies
Display the specified resource.
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/companies/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/companies/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"status": "Unauthorized"
}
HTTP Request
GET api/v1/companies/{id}
Store a newly created resource in storage.
Example request:
curl -X POST \
"https://api.web-parts.com/api/v1/companies/logo" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/companies/logo"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/v1/companies/logo
Remove the specified resource from storage.
Example request:
curl -X POST \
"https://api.web-parts.com/api/v1/companies/vat" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/companies/vat"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/v1/companies/vat
Display a listing of the resource.
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/currencies" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/currencies"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"status": "success",
"data": [
{
"code": "AED",
"title": "AED",
"conversion_rate": "1.676754",
"created_at": null,
"updated_at": "2020-12-07T10:09:39.000000Z"
},
{
"code": "AUD",
"title": "AUD",
"conversion_rate": "1.000000",
"created_at": "2020-11-20T11:29:12.000000Z",
"updated_at": "2020-11-20T11:29:12.000000Z"
},
{
"code": "BGN",
"title": "BGN",
"conversion_rate": "3.804788",
"created_at": null,
"updated_at": "2020-12-07T10:09:39.000000Z"
},
{
"code": "cod",
"title": "AED",
"conversion_rate": "0.000000",
"created_at": null,
"updated_at": null
},
{
"code": "CZK",
"title": "CZK",
"conversion_rate": "0.280508",
"created_at": null,
"updated_at": "2020-12-07T10:09:39.000000Z"
},
{
"code": "DKK",
"title": "DKK",
"conversion_rate": "1.000000",
"created_at": null,
"updated_at": "2020-12-07T10:09:39.000000Z"
},
{
"code": "EUR",
"title": "EUR",
"conversion_rate": "7.443329",
"created_at": null,
"updated_at": "2020-12-07T10:09:40.000000Z"
},
{
"code": "GBP",
"title": "GBP",
"conversion_rate": "8.162972",
"created_at": null,
"updated_at": "2020-12-07T10:09:40.000000Z"
},
{
"code": "HUF",
"title": "HUF",
"conversion_rate": "0.020674",
"created_at": null,
"updated_at": "2020-12-07T10:09:40.000000Z"
},
{
"code": "LEU",
"title": "LEU",
"conversion_rate": "1.000000",
"created_at": "2020-11-20T11:48:32.000000Z",
"updated_at": "2020-11-20T11:48:32.000000Z"
},
{
"code": "LVL",
"title": "LVL",
"conversion_rate": "10.177885",
"created_at": null,
"updated_at": "2020-12-07T10:09:41.000000Z"
},
{
"code": "NOK",
"title": "NOK",
"conversion_rate": "0.694237",
"created_at": null,
"updated_at": "2020-12-07T10:09:41.000000Z"
},
{
"code": "PLN",
"title": "PLN",
"conversion_rate": "1.664800",
"created_at": null,
"updated_at": "2020-12-07T10:09:42.000000Z"
},
{
"code": "RON",
"title": "RON",
"conversion_rate": "1.527541",
"created_at": null,
"updated_at": "2020-12-07T10:09:42.000000Z"
},
{
"code": "RUB",
"title": "RUB",
"conversion_rate": "0.082781",
"created_at": null,
"updated_at": "2020-12-07T10:09:42.000000Z"
},
{
"code": "SEK",
"title": "SEK",
"conversion_rate": "0.724211",
"created_at": null,
"updated_at": "2020-12-07T10:09:43.000000Z"
},
{
"code": "UAH",
"title": "UAH",
"conversion_rate": "0.217065",
"created_at": null,
"updated_at": "2020-12-07T10:09:43.000000Z"
},
{
"code": "USD",
"title": "USD",
"conversion_rate": "6.157898",
"created_at": null,
"updated_at": "2020-12-07T10:09:43.000000Z"
}
],
"links": {
"self": "link-value"
}
}
HTTP Request
GET api/v1/currencies
Display a listing of the resource.
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/discounts" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/discounts"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"status": "Unauthorized"
}
HTTP Request
GET api/v1/discounts
Store a newly created resource in storage.
Example request:
curl -X POST \
"https://api.web-parts.com/api/v1/discounts" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/discounts"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/v1/discounts
Display the specified resource.
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/discounts/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/discounts/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"status": "Unauthorized"
}
HTTP Request
GET api/v1/discounts/{discount}
Update the specified resource in storage.
Example request:
curl -X PUT \
"https://api.web-parts.com/api/v1/discounts/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/discounts/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT api/v1/discounts/{discount}
PATCH api/v1/discounts/{discount}
Remove the specified resource from storage.
Example request:
curl -X DELETE \
"https://api.web-parts.com/api/v1/discounts/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/discounts/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
DELETE api/v1/discounts/{discount}
api/v1/email/verify/{id}
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/email/verify/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/email/verify/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"status": "Unauthorized"
}
HTTP Request
GET api/v1/email/verify/{id}
api/v1/email/resend/{id}
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/email/resend/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/email/resend/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (500):
{
"message": "Server Error"
}
HTTP Request
GET api/v1/email/resend/{id}
Display a listing of the resource.
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/obsoletes" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/obsoletes"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"status": "Unauthorized"
}
HTTP Request
GET api/v1/obsoletes
Display the specified resource.
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/obsoletes/1/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/obsoletes/1/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"status": "Unauthorized"
}
HTTP Request
GET api/v1/obsoletes/{companyId}/{obsoleteNumber}
Store a newly created resource in storage.
Example request:
curl -X POST \
"https://api.web-parts.com/api/v1/obsoletes" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/obsoletes"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/v1/obsoletes
Update the specified resource in storage.
Example request:
curl -X PUT \
"https://api.web-parts.com/api/v1/obsoletes/1/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/obsoletes/1/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT api/v1/obsoletes/{companyId}/{obsoleteNumber}
Remove the specified resource from storage.
Example request:
curl -X DELETE \
"https://api.web-parts.com/api/v1/obsoletes/1/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/obsoletes/1/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
DELETE api/v1/obsoletes/{companyId}/{obsoleteNumber}
Add OrderItem to Order. If no Order Exists, create it first. If the OrderItem is allready in the order, the quantity will be updated.
Admins cannot make orders
Example request:
curl -X POST \
"https://api.web-parts.com/api/v1/orders" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/orders"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/v1/orders
Update the specified resource in storage.
Example request:
curl -X PUT \
"https://api.web-parts.com/api/v1/orders" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/orders"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT api/v1/orders
Display a listing of the resource.
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/orders" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/orders"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"status": "Unauthorized"
}
HTTP Request
GET api/v1/orders
Display the specified resource.
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/orders/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/orders/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"status": "Unauthorized"
}
HTTP Request
GET api/v1/orders/{id}
Update the specified resource in storage.
Example request:
curl -X POST \
"https://api.web-parts.com/api/v1/orders/receipt/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/orders/receipt/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/v1/orders/receipt/{id}
Pageinated list of parts
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/parts/1?noOfItems=3" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/parts/1"
);
let params = {
"noOfItems": "3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (500):
{
"message": "Server Error"
}
HTTP Request
GET api/v1/parts/{currencyCode}
Query Parameters
| Parameter | Status | Description |
|---|---|---|
noOfItems |
optional | Number of items per page. |
Paginated list of parts of a specific brand, including available countries for the brand and for each part
May be filtered by country
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/parts/search/1/EUR?sort=part_number&sortDirection=desc&countryCode=de&noOfItems=14" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/parts/search/1/EUR"
);
let params = {
"sort": "part_number",
"sortDirection": "desc",
"countryCode": "de",
"noOfItems": "14",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"status": "success",
"data": [
{
"part_number": "ZU140",
"best_price_retailer_id": 2317,
"name": "MEMBRANE D-LL P70 \/ P150 M. BEFESTIGUNG",
"price": "2.89",
"price_discount": "2.89",
"price_discount_percentage": "0",
"obsolete_number": 0,
"quantity": 4,
"brand_code": 329,
"description1": "MEMBRANE D-LL P70 \/ P150 M. BEFESTIGUNG",
"availableCountries": {
"de": "Germany"
},
"created_at": "2020-08-10T01:52:24.000000Z",
"updated_at": "2020-08-10T01:52:24.000000Z"
},
{
"part_number": "ZU137",
"best_price_retailer_id": 2317,
"name": "VENTIL H KPL.",
"price": "1.69",
"price_discount": "1.69",
"price_discount_percentage": "0",
"obsolete_number": 0,
"quantity": 4,
"brand_code": 329,
"description1": "VENTIL H KPL.",
"availableCountries": {
"de": "Germany"
},
"created_at": "2020-08-10T01:52:24.000000Z",
"updated_at": "2020-08-10T01:52:24.000000Z"
},
{
"part_number": "ZU 80200110",
"best_price_retailer_id": 1213,
"name": "Schalter Heben-Senken Fronthydraulik",
"price": "5.48",
"price_discount": "5.48",
"price_discount_percentage": "0",
"obsolete_number": 0,
"quantity": 1,
"brand_code": 329,
"description1": "Schalter Heben-Senken Fronthydraulik",
"availableCountries": {
"de": "Germany"
},
"created_at": "2020-08-10T01:48:07.000000Z",
"updated_at": "2020-08-10T01:48:07.000000Z"
},
{
"part_number": "ZS12X30",
"best_price_retailer_id": 1213,
"name": "Zylinderschraube 84",
"price": "0.05",
"price_discount": "0.05",
"price_discount_percentage": "0",
"obsolete_number": 0,
"quantity": 148,
"brand_code": 329,
"description1": "Zylinderschraube 84",
"availableCountries": {
"de": "Germany"
},
"created_at": "2020-08-10T01:48:07.000000Z",
"updated_at": "2020-08-10T01:48:07.000000Z"
},
{
"part_number": "ZR18800F",
"best_price_retailer_id": 2317,
"name": "WARNTAFELSATZ FENDT",
"price": "52.19",
"price_discount": "52.19",
"price_discount_percentage": "0",
"obsolete_number": 0,
"quantity": 1,
"brand_code": 329,
"description1": "WARNTAFELSATZ FENDT",
"availableCountries": {
"de": "Germany"
},
"created_at": "2020-08-10T01:52:24.000000Z",
"updated_at": "2020-08-10T01:52:24.000000Z"
},
{
"part_number": "ZP1927576",
"best_price_retailer_id": 1213,
"name": "PIN",
"price": "10.00",
"price_discount": "10.00",
"price_discount_percentage": "0",
"obsolete_number": 0,
"quantity": 3,
"brand_code": 329,
"description1": "PIN",
"availableCountries": {
"de": "Germany"
},
"created_at": "2020-08-10T02:08:19.000000Z",
"updated_at": "2020-08-10T02:08:19.000000Z"
},
{
"part_number": "ZP0750101017",
"best_price_retailer_id": 1213,
"name": "PRESSBUCHSE",
"price": "8.79",
"price_discount": "8.79",
"price_discount_percentage": "0",
"obsolete_number": 0,
"quantity": 3,
"brand_code": 329,
"description1": "PRESSBUCHSE",
"availableCountries": {
"de": "Germany"
},
"created_at": "2020-08-10T01:48:07.000000Z",
"updated_at": "2020-08-10T01:48:07.000000Z"
},
{
"part_number": "ZF961",
"best_price_retailer_id": 1213,
"name": "FEDERELEMENT KPL.",
"price": "0.38",
"price_discount": "0.38",
"price_discount_percentage": "0",
"obsolete_number": 0,
"quantity": 15,
"brand_code": 329,
"description1": "FEDERELEMENT KPL.",
"availableCountries": {
"de": "Germany"
},
"created_at": "2020-08-10T01:48:07.000000Z",
"updated_at": "2020-08-10T01:48:07.000000Z"
},
{
"part_number": "ZF721",
"best_price_retailer_id": 1213,
"name": "REGELVENTIL (ELEKT.1 1\/4ZOLL) ON-OFF 7 S",
"price": "15.40",
"price_discount": "15.40",
"price_discount_percentage": "0",
"obsolete_number": 0,
"quantity": 1,
"brand_code": 329,
"description1": "REGELVENTIL (ELEKT.1 1\/4ZOLL) ON-OFF 7 S",
"availableCountries": {
"de": "Germany"
},
"created_at": "2020-08-10T02:08:19.000000Z",
"updated_at": "2020-08-10T02:08:19.000000Z"
},
{
"part_number": "ZF691",
"best_price_retailer_id": 1213,
"name": "DUESENHALTER 1-FACH",
"price": "0.56",
"price_discount": "0.56",
"price_discount_percentage": "0",
"obsolete_number": 0,
"quantity": 7,
"brand_code": 329,
"description1": "DUESENHALTER 1-FACH",
"availableCountries": {
"de": "Germany"
},
"created_at": "2020-08-10T01:48:06.000000Z",
"updated_at": "2020-08-10T01:52:24.000000Z"
},
{
"part_number": "ZF618",
"best_price_retailer_id": 1213,
"name": "SCHALTHEBEL KH KPL.",
"price": "1.42",
"price_discount": "1.42",
"price_discount_percentage": "0",
"obsolete_number": 0,
"quantity": 1,
"brand_code": 329,
"description1": "SCHALTHEBEL KH KPL.",
"availableCountries": {
"de": "Germany"
},
"created_at": "2020-08-10T01:48:06.000000Z",
"updated_at": "2020-08-10T01:48:06.000000Z"
},
{
"part_number": "ZF491",
"best_price_retailer_id": 2317,
"name": "BAJONETTKAPPE SW 8 - BLAU MIT DICHTUNG",
"price": "0.16",
"price_discount": "0.16",
"price_discount_percentage": "0",
"obsolete_number": 0,
"quantity": 15,
"brand_code": 329,
"description1": "BAJONETTKAPPE SW 8 - BLAU MIT DICHTUNG",
"availableCountries": {
"de": "Germany",
"dk": "Denmark"
},
"created_at": "2020-08-09T23:16:11.000000Z",
"updated_at": "2020-08-10T01:52:24.000000Z"
},
{
"part_number": "ZF481",
"best_price_retailer_id": 2317,
"name": "DRUCKFILTEREINSATZ 100 MASCHEN",
"price": "4.16",
"price_discount": "4.16",
"price_discount_percentage": "0",
"obsolete_number": 0,
"quantity": 5,
"brand_code": 329,
"description1": "DRUCKFILTEREINSATZ 100 MASCHEN",
"availableCountries": {
"de": "Germany",
"dk": "Denmark"
},
"created_at": "2020-08-09T23:16:06.000000Z",
"updated_at": "2020-08-10T01:52:24.000000Z"
},
{
"part_number": "ZF281",
"best_price_retailer_id": 1213,
"name": "FILTER 200 (32 MASCHEN) FARBE ROT",
"price": "2.13",
"price_discount": "2.13",
"price_discount_percentage": "0",
"obsolete_number": 0,
"quantity": 2,
"brand_code": 329,
"description1": "FILTER 200 (32 MASCHEN) FARBE ROT",
"availableCountries": {
"de": "Germany"
},
"created_at": "2020-08-10T01:48:06.000000Z",
"updated_at": "2020-08-10T01:48:06.000000Z"
}
],
"links": {
"self": "link-value",
"first": "http:\/\/localhost\/api\/v1\/parts\/search\/1\/EUR?page=1",
"last": "http:\/\/localhost\/api\/v1\/parts\/search\/1\/EUR?page=1970",
"prev": null,
"next": "http:\/\/localhost\/api\/v1\/parts\/search\/1\/EUR?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1970,
"path": "http:\/\/localhost\/api\/v1\/parts\/search\/1\/EUR",
"per_page": 14,
"to": 14,
"total": 27572
}
}
HTTP Request
GET api/v1/parts/search/{searchQuery}/{currencyCode}
URL Parameters
| Parameter | Status | Description |
|---|---|---|
brandCode |
required | Brand code. |
currencyCode |
required | Currency code. |
Query Parameters
| Parameter | Status | Description |
|---|---|---|
sort |
optional | Field to sort by. Valid fields are: part_number, brand_code, price, quantity, description1. |
sortDirection |
optional | Sort direction. Valid values are: asc, desc: |
countryCode |
optional | Country code. Valid codes are found in countries table. |
noOfItems |
optional | Number of items per page |
Paginated list of parts of a specific brand, including available countries for the brand and for each part
May be filtered by country
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/parts/brand/ag/EUR?sort=part_number&sortDirection=desc&countryCode=de&noOfItems=9" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/parts/brand/ag/EUR"
);
let params = {
"sort": "part_number",
"sortDirection": "desc",
"countryCode": "de",
"noOfItems": "9",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"status": "success",
"data": [
{
"part_number": "AGW74900",
"best_price_retailer_id": 2317,
"name": "LUFTFILTEREINSATZ",
"price": "6.28",
"price_discount": "6.28",
"price_discount_percentage": "0",
"obsolete_number": 0,
"quantity": 1,
"brand_code": 6,
"description1": "LUFTFILTEREINSATZ",
"availableCountries": {
"de": "Germany"
},
"created_at": "2020-08-10T01:51:13.000000Z",
"updated_at": "2020-08-10T01:51:13.000000Z"
},
{
"part_number": "AGW20074",
"best_price_retailer_id": 2317,
"name": "KEILRIEMEN 10X650 LI",
"price": "3.76",
"price_discount": "3.76",
"price_discount_percentage": "0",
"obsolete_number": 0,
"quantity": 1,
"brand_code": 6,
"description1": "KEILRIEMEN 10X650 LI",
"availableCountries": {
"de": "Germany"
},
"created_at": "2020-08-10T01:51:13.000000Z",
"updated_at": "2020-08-10T01:51:13.000000Z"
},
{
"part_number": "AG722601",
"best_price_retailer_id": 8255,
"name": "VALVE",
"price": "89.48",
"price_discount": "89.48",
"price_discount_percentage": "0",
"obsolete_number": 0,
"quantity": 1,
"brand_code": 6,
"description1": "VALVE",
"availableCountries": {
"de": "Germany"
},
"created_at": "2020-08-10T01:53:24.000000Z",
"updated_at": "2020-08-10T01:53:24.000000Z"
},
{
"part_number": "AG691893",
"best_price_retailer_id": 8255,
"name": "PUMP-MANURE,FLA1540",
"price": "888.72",
"price_discount": "0.81",
"price_discount_percentage": "0",
"obsolete_number": 0,
"quantity": 1,
"brand_code": 6,
"description1": "PUMP-MANURE,FLA1540",
"availableCountries": {
"de": "Germany"
},
"created_at": "2020-08-10T01:53:24.000000Z",
"updated_at": "2020-08-10T01:53:24.000000Z"
},
{
"part_number": "AG625455",
"best_price_retailer_id": 8255,
"name": "MOTOR",
"price": "450.34",
"price_discount": "0.40",
"price_discount_percentage": "0",
"obsolete_number": 0,
"quantity": 1,
"brand_code": 6,
"description1": "MOTOR",
"availableCountries": {
"de": "Germany"
},
"created_at": "2020-08-10T01:53:24.000000Z",
"updated_at": "2020-08-10T01:53:24.000000Z"
},
{
"part_number": "AG617124",
"best_price_retailer_id": 8255,
"name": "PUMP",
"price": "216.84",
"price_discount": "0.13",
"price_discount_percentage": "0",
"obsolete_number": 0,
"quantity": 1,
"brand_code": 6,
"description1": "PUMP",
"availableCountries": {
"de": "Germany"
},
"created_at": "2020-08-10T01:53:24.000000Z",
"updated_at": "2020-08-10T01:53:24.000000Z"
},
{
"part_number": "AG616994",
"best_price_retailer_id": 8255,
"name": "PUMP",
"price": "431.66",
"price_discount": "0.40",
"price_discount_percentage": "0",
"obsolete_number": 0,
"quantity": 1,
"brand_code": 6,
"description1": "PUMP",
"availableCountries": {
"de": "Germany"
},
"created_at": "2020-08-10T01:53:24.000000Z",
"updated_at": "2020-08-10T01:53:24.000000Z"
},
{
"part_number": "AG523053",
"best_price_retailer_id": 8255,
"name": "HYDRAULIC MOTOR",
"price": "517.11",
"price_discount": "0.40",
"price_discount_percentage": "0",
"obsolete_number": 0,
"quantity": 1,
"brand_code": 6,
"description1": "HYDRAULIC MOTOR",
"availableCountries": {
"de": "Germany"
},
"created_at": "2020-08-10T01:53:24.000000Z",
"updated_at": "2020-08-10T01:53:24.000000Z"
},
{
"part_number": "AG423437",
"best_price_retailer_id": 8255,
"name": "MOTOR",
"price": "1421.41",
"price_discount": "1.34",
"price_discount_percentage": "0",
"obsolete_number": 0,
"quantity": 1,
"brand_code": 6,
"description1": "MOTOR",
"availableCountries": {
"de": "Germany"
},
"created_at": "2020-08-10T01:53:24.000000Z",
"updated_at": "2020-08-10T01:53:24.000000Z"
}
],
"links": {
"self": "link-value",
"first": "http:\/\/localhost\/api\/v1\/parts\/brand\/ag\/EUR?page=1",
"last": "http:\/\/localhost\/api\/v1\/parts\/brand\/ag\/EUR?page=2",
"prev": null,
"next": "http:\/\/localhost\/api\/v1\/parts\/brand\/ag\/EUR?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 2,
"path": "http:\/\/localhost\/api\/v1\/parts\/brand\/ag\/EUR",
"per_page": 9,
"to": 9,
"total": 17
},
"availableCountries": {
"dk": "Denmark",
"nl": "Nederland",
"de": "Germany"
}
}
HTTP Request
GET api/v1/parts/brand/{brandCode}/{currencyCode}
URL Parameters
| Parameter | Status | Description |
|---|---|---|
brandCode |
required | Brand code. |
currencyCode |
required | Currency code. |
Query Parameters
| Parameter | Status | Description |
|---|---|---|
sort |
optional | Field to sort by. Valid fields are: part_number, brand_code, price, quantity, description1. |
sortDirection |
optional | Sort direction. Valid values are: asc, desc: |
countryCode |
optional | Country code. Valid codes are found in countries table. |
noOfItems |
optional | Number of items per page |
Paginated list of parts of a specific retailer, including available countries for the brand and for each part
May be filtered by country
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/parts/retailer/4640/EUR?sort=part_number&sortDirection=desc&noOfItems=6" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/parts/retailer/4640/EUR"
);
let params = {
"sort": "part_number",
"sortDirection": "desc",
"noOfItems": "6",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"status": "success",
"data": [
{
"id": 4629431,
"part_number": "ZB75008330",
"retailer_id": 4640,
"name": "Møtrik f\/liftarm",
"price": "6.31",
"obsolete_number": 30,
"currency_code": "DKK",
"quantity": 1,
"specification": null,
"catalog_link": null,
"brand_code": 1,
"description1": "Møtrik f\/liftarm",
"description2": "",
"image": null,
"has_image": 0,
"last_changed": "2020-03-19 03:36:27",
"uploaded": 1,
"price_campaign": null,
"part_type": 0,
"image_id": null,
"stored_quantity": "0.00"
},
{
"id": 4629430,
"part_number": "ZB20044060",
"retailer_id": 4640,
"name": "Bolt f\/liftarm",
"price": "28.21",
"obsolete_number": 30,
"currency_code": "DKK",
"quantity": 1,
"specification": null,
"catalog_link": null,
"brand_code": 1,
"description1": "Bolt f\/liftarm",
"description2": "",
"image": null,
"has_image": 0,
"last_changed": "2020-03-19 03:36:27",
"uploaded": 1,
"price_campaign": null,
"part_type": 0,
"image_id": null,
"stored_quantity": "0.00"
},
{
"id": 4629429,
"part_number": "Z991650KR",
"retailer_id": 4640,
"name": "Kuglebolt 16 x 50 mm",
"price": "10.96",
"obsolete_number": 0,
"currency_code": "DKK",
"quantity": 2,
"specification": null,
"catalog_link": null,
"brand_code": 1,
"description1": "Kuglebolt 16 x 50 mm",
"description2": "",
"image": null,
"has_image": 0,
"last_changed": "2020-03-19 03:36:27",
"uploaded": 1,
"price_campaign": null,
"part_type": 0,
"image_id": null,
"stored_quantity": "0.00"
},
{
"id": 4629428,
"part_number": "Z516098KR",
"retailer_id": 4640,
"name": "Trækbolt 16x112mm m\/kæde",
"price": "3.55",
"obsolete_number": 0,
"currency_code": "DKK",
"quantity": 0,
"specification": null,
"catalog_link": null,
"brand_code": 329,
"description1": "Trækbolt 16x112mm m\/kæde",
"description2": "",
"image": null,
"has_image": 0,
"last_changed": "2020-03-19 03:36:27",
"uploaded": 0,
"price_campaign": null,
"part_type": 0,
"image_id": null,
"stored_quantity": "0.00"
},
{
"id": 4629427,
"part_number": "Z422287KR",
"retailer_id": 4640,
"name": "Redskabsbolt 7\/8\"x1.1\/8\". Replaces item",
"price": "9.67",
"obsolete_number": 0,
"currency_code": "DKK",
"quantity": 2,
"specification": null,
"catalog_link": null,
"brand_code": 1,
"description1": "Redskabsbolt 7\/8\"x1.1\/8\". Replaces item",
"description2": "",
"image": null,
"has_image": 0,
"last_changed": "2020-03-19 03:36:27",
"uploaded": 1,
"price_campaign": null,
"part_type": 0,
"image_id": null,
"stored_quantity": "0.00"
},
{
"id": 4629426,
"part_number": "Z332125KR",
"retailer_id": 4640,
"name": "Topstangsbolt 32x125mm",
"price": "9.38",
"obsolete_number": 0,
"currency_code": "DKK",
"quantity": 0,
"specification": null,
"catalog_link": null,
"brand_code": 329,
"description1": "Topstangsbolt 32x125mm",
"description2": "",
"image": null,
"has_image": 0,
"last_changed": "2020-03-19 03:36:27",
"uploaded": 0,
"price_campaign": null,
"part_type": 0,
"image_id": null,
"stored_quantity": "0.00"
}
],
"links": {
"self": "link-value",
"first": "http:\/\/localhost\/api\/v1\/parts\/retailer\/4640\/EUR?page=1",
"last": "http:\/\/localhost\/api\/v1\/parts\/retailer\/4640\/EUR?page=1729",
"prev": null,
"next": "http:\/\/localhost\/api\/v1\/parts\/retailer\/4640\/EUR?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1729,
"path": "http:\/\/localhost\/api\/v1\/parts\/retailer\/4640\/EUR",
"per_page": 6,
"to": 6,
"total": 10370
}
}
HTTP Request
GET api/v1/parts/retailer/{retailerId}/{currencyCode}
URL Parameters
| Parameter | Status | Description |
|---|---|---|
retailerId |
required | Retailer id. |
currencyCode |
required | Currency code. |
Query Parameters
| Parameter | Status | Description |
|---|---|---|
sort |
optional | Field to sort by. Valid fields are: part_number, brand_code, price, quantity, description1. |
sortDirection |
optional | Sort direction. Valid values are: asc, desc: |
noOfItems |
optional | Number of items per page |
Display a listing of the resource.
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/retailers" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/retailers"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"status": "success",
"data": [
{
"id": 3,
"title": "Traktor & Høstspecialisten A\/S, Hinnerup",
"title_slug": "traktor-hostspecialisten-as-hinnerup",
"company_type_id": 1,
"retailerGUID": "4EB9F624-F4C8-48D6-9043-7AD2C66B0BC1",
"country_code": "dk",
"vat_number": "25324943",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": null,
"vat_validated_at": "2020-08-18 10:48:42",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:29.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 6,
"title": "Johannes Mertz A\/S, Maribo",
"title_slug": "johannes-mertz-as-maribo",
"company_type_id": 1,
"retailerGUID": "",
"country_code": "dk",
"vat_number": "70190028",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": null,
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-08-03T20:30:11.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 7,
"title": "Karl Mertz A\/S, Sakskøbing",
"title_slug": "karl-mertz-as-sakskobing",
"company_type_id": 1,
"retailerGUID": "1DEF0DEC-8A16-4C26-AE54-717161C97117",
"country_code": "dk",
"vat_number": "",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": null,
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:29.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 10,
"title": "Anker Bjerre A\/S",
"title_slug": "anker-bjerre-as",
"company_type_id": 1,
"retailerGUID": "528D3EF5-C9A8-4C1A-AA0F-7F17F079913A",
"country_code": "dk",
"vat_number": "20200472",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": null,
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:29.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 13,
"title": "Ringe Maskinforretning A\/S",
"title_slug": "ringe-maskinforretning-as",
"company_type_id": 1,
"retailerGUID": "078A1523-018B-403D-8222-39616F42FB77",
"country_code": "dk",
"vat_number": "20910585",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": null,
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:30.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 14,
"title": "Vemas A\/S",
"title_slug": "vemas-as",
"company_type_id": 1,
"retailerGUID": "7ED281DD-BA10-48DF-9436-F9876A5656C4",
"country_code": "dk",
"vat_number": "37188328",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": null,
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:30.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 16,
"title": "Almas Agro A\/S, Ålestrup",
"title_slug": null,
"company_type_id": 1,
"retailerGUID": "",
"country_code": "",
"vat_number": "43925318",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": "\/storage\/img\/company\/logo\/5cab4df8f29a1.jpg",
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-06-03T20:30:02.000000Z",
"updated_at": "2020-06-03T20:30:02.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 17,
"title": "Maskinland Vittarp A\/S",
"title_slug": "maskinland-vittarp-as",
"company_type_id": 1,
"retailerGUID": "282D3C88-5A7B-4F51-A952-C9D6E58DA2E0",
"country_code": "dk",
"vat_number": "18072343",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": null,
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:30.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 22,
"title": "Røstofte Maskiner A\/S",
"title_slug": "rostofte-maskiner-as",
"company_type_id": 1,
"retailerGUID": "BF2AA4FC-7DF4-4EAB-ABD5-AD7CB249AD1C",
"country_code": "dk",
"vat_number": "",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": null,
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:30.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 24,
"title": "Johannes Mertz A\/S, Faxe",
"title_slug": "johannes-mertz-as-faxe",
"company_type_id": 1,
"retailerGUID": "",
"country_code": "dk",
"vat_number": "70190028",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": null,
"vat_validated_at": "2020-10-08 11:34:47",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:30.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 26,
"title": "Maskinland Grindsted A\/S",
"title_slug": "maskinland-grindsted-as",
"company_type_id": 1,
"retailerGUID": "0B71F200-F81F-4BD8-A296-C210DDCC6193",
"country_code": "dk",
"vat_number": "18072343",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": null,
"vat_validated_at": "2020-11-20 10:05:17",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:30.000000Z",
"valid_vat_number": true,
"address": null
},
{
"id": 28,
"title": "Askildrup Agro A\/S",
"title_slug": "askildrup-agro-as",
"company_type_id": 1,
"retailerGUID": "951BFCEC-CC78-40DD-A917-CCE5FCCBD506",
"country_code": "dk",
"vat_number": "",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": null,
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:30.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 29,
"title": "Karl Mertz A\/S, Nykøbing F",
"title_slug": "karl-mertz-as-nykobing-f",
"company_type_id": 1,
"retailerGUID": "",
"country_code": "dk",
"vat_number": "",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": null,
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:31.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 30,
"title": "Karl Mertz A\/S, Nakskov",
"title_slug": "karl-mertz-as-nakskov",
"company_type_id": 1,
"retailerGUID": "",
"country_code": "dk",
"vat_number": "",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": null,
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:31.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 31,
"title": "Røstofte Maskiner A\/S, afd. Sakskøbing",
"title_slug": "rostofte-maskiner-as-afd-sakskobing",
"company_type_id": 1,
"retailerGUID": "",
"country_code": "dk",
"vat_number": "",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": null,
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:31.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 32,
"title": "Herborg Smede- & Maskinforretning A\/S - Videbæk",
"title_slug": "herborg-smede-maskinforretning-as-videbaek",
"company_type_id": 1,
"retailerGUID": "7BD0A69B-EA1C-4C2A-BFA1-2084A381F2BA",
"country_code": "dk",
"vat_number": "",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": null,
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:31.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 33,
"title": "Herborg Smede- & Maskinforretning A\/S - Give",
"title_slug": "herborg-smede-maskinforretning-as-give",
"company_type_id": 1,
"retailerGUID": "3F5DC21A-9567-E111-9C57-0026B98BEB67",
"country_code": "dk",
"vat_number": "",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": null,
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:31.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 34,
"title": "Herborg Smede- & Maskinforretning A\/S - Struer",
"title_slug": "herborg-smede-maskinforretning-as-struer",
"company_type_id": 1,
"retailerGUID": "",
"country_code": "dk",
"vat_number": "",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": null,
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:31.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 35,
"title": "Brdr. Holst Sørensen A\/S",
"title_slug": "brdr-holst-sorensen-as",
"company_type_id": 1,
"retailerGUID": "6EC2AF76-C1BD-4641-A3DB-A782B6E66A2B",
"country_code": "dk",
"vat_number": "47807417",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": null,
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:32.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 36,
"title": "Ingemann Larsen A\/S",
"title_slug": "ingemann-larsen-as",
"company_type_id": 1,
"retailerGUID": "2725DA6A-729D-4317-B2A4-B0D3C498380C",
"country_code": "dk",
"vat_number": "55227012",
"currency_code": "DKK",
"image_url_pattern": "http:\/\/www.web-parts.com\/files\/images-uploads\/ingemann\/{PartNumber}.jpg",
"logo": "\/storage\/img\/company\/logo\/5c63c8327878e.jpg",
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:32.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 37,
"title": "Lyngfeldt A\/S",
"title_slug": "lyngfeldt-as",
"company_type_id": 1,
"retailerGUID": "984BEA1F-8AF2-43BB-8EBA-4D8BC05594CD",
"country_code": "dk",
"vat_number": "24211177",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": "\/storage\/img\/company\/logo\/5774b4f6649ff.jpg",
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:32.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 40,
"title": "J. Hundahl, Thisted",
"title_slug": "j-hundahl-thisted",
"company_type_id": 1,
"retailerGUID": "DFFF232F-85FE-48EC-B747-6D7368344D58",
"country_code": "dk",
"vat_number": "76539111",
"currency_code": "DKK",
"image_url_pattern": "http:\/\/www.web-parts.com\/files\/images-uploads\/X25081\/'{PartNumber}'.jpg",
"logo": null,
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:32.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 41,
"title": "J. Hundahl, Skive",
"title_slug": "j-hundahl-skive",
"company_type_id": 1,
"retailerGUID": "056FEE81-6EC5-4398-9DC9-BABC33044E84",
"country_code": "dk",
"vat_number": "76539111",
"currency_code": "DKK",
"image_url_pattern": "http:\/\/www.web-parts.com\/files\/images-uploads\/X25081\/{PartNumber}.jpg",
"logo": null,
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:32.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 49,
"title": "Valtec Skanderborg (TBS)",
"title_slug": "valtec-skanderborg-tbs",
"company_type_id": 1,
"retailerGUID": "53E6CF5C-55B2-4543-91E0-EF24D57C6CE4",
"country_code": "dk",
"vat_number": "39006979",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": "\/storage\/img\/company\/logo\/5e39198db496e.jpg",
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:32.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 97,
"title": "Brovig Maskiner ApS",
"title_slug": "brovig-maskiner-aps",
"company_type_id": 1,
"retailerGUID": "8F0E3412-C94E-4DB9-92D5-A81E34992C38",
"country_code": "dk",
"vat_number": "54617828",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": null,
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:33.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 98,
"title": "Farmas A\/S - Farsoe",
"title_slug": "farmas-as-farsoe",
"company_type_id": 1,
"retailerGUID": "257C6E45-AEB3-46D1-B1EE-7DB2DC23231B",
"country_code": "dk",
"vat_number": "36232315",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": null,
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:33.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 99,
"title": "Farmas A\/S - Viborg",
"title_slug": "farmas-as-viborg",
"company_type_id": 1,
"retailerGUID": "DEB4B64F-1DFE-E411-B872-00155DB62B6F",
"country_code": "dk",
"vat_number": "",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": null,
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:33.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 100,
"title": "Præstbro Maskiner A\/S",
"title_slug": "praestbro-maskiner-as",
"company_type_id": 1,
"retailerGUID": "",
"country_code": "dk",
"vat_number": "11556779",
"currency_code": "DKK",
"image_url_pattern": "http:\/\/www.prastbro.dk\/parts\/{PartNumber}.JPG",
"logo": "\/storage\/img\/company\/logo\/57591da66a2ed.jpg",
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:33.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 101,
"title": "Sørensen og Lynggaard A\/S",
"title_slug": "sorensen-og-lynggaard-as",
"company_type_id": 1,
"retailerGUID": "0A521374-6DE3-4C63-B2C1-54AEFB5CD13D",
"country_code": "dk",
"vat_number": "",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": null,
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:33.000000Z",
"valid_vat_number": false,
"address": null
},
{
"id": 102,
"title": "WIMA\/SOLUS A\/S",
"title_slug": "wimasolus-as",
"company_type_id": 1,
"retailerGUID": "",
"country_code": "dk",
"vat_number": "12378939",
"currency_code": "DKK",
"image_url_pattern": "",
"logo": "\/storage\/img\/company\/logo\/57b2d72505e6f.jpg",
"vat_validated_at": "0000-00-00 00:00:00",
"created_at": "2020-03-26T10:15:25.000000Z",
"updated_at": "2020-12-07T12:39:33.000000Z",
"valid_vat_number": false,
"address": null
}
],
"links": {
"self": "link-value",
"first": "http:\/\/localhost\/api\/v1\/retailers?page=1",
"last": "http:\/\/localhost\/api\/v1\/retailers?page=17",
"prev": null,
"next": "http:\/\/localhost\/api\/v1\/retailers?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 17,
"path": "http:\/\/localhost\/api\/v1\/retailers",
"per_page": "30",
"to": 30,
"total": 498
}
}
HTTP Request
GET api/v1/retailers
api/v1/retailers/topten
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/retailers/topten" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/retailers/topten"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"status": "success",
"data": [
{
"total": "18885.77",
"retailer_id": 999,
"title": "Sjørup Group A\/S"
},
{
"total": "7019.87",
"retailer_id": 10759,
"title": "Lantmännen Maskin AB"
},
{
"total": "4893.78",
"retailer_id": 37,
"title": "Lyngfeldt A\/S"
},
{
"total": "4798.01",
"retailer_id": 2567,
"title": "SCHRØDERS EFTF. M.P. MASKINCENTER A\/S"
},
{
"total": "2337.50",
"retailer_id": 10353,
"title": "Rainer Merckelbach GmbH"
},
{
"total": "2306.40",
"retailer_id": 102,
"title": "WIMA\/SOLUS A\/S"
},
{
"total": "2198.36",
"retailer_id": 1213,
"title": "Eggers Landmaschinen GmbH & Co.KG"
},
{
"total": "2106.72",
"retailer_id": 302,
"title": "Stenderup A\/S"
},
{
"total": "2056.27",
"retailer_id": 6,
"title": "Johannes Mertz A\/S, Maribo"
},
{
"total": "1661.51",
"retailer_id": 614,
"title": "Kort Mechanisatie BV"
}
],
"links": {
"self": "link-value"
}
}
HTTP Request
GET api/v1/retailers/topten
Display the specified resource.
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/retailers/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/retailers/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (404):
{
"status": "Not Found"
}
HTTP Request
GET api/v1/retailers/{id}
Display a listing of the resource.
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/users" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/users"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"status": "Unauthorized"
}
HTTP Request
GET api/v1/users
Store a newly created resource in storage.
Example request:
curl -X POST \
"https://api.web-parts.com/api/v1/users" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/users"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/v1/users
Display the specified resource.
Example request:
curl -X GET \
-G "https://api.web-parts.com/api/v1/users/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/users/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"status": "Unauthorized"
}
HTTP Request
GET api/v1/users/{user}
Update the specified resource in storage.
Example request:
curl -X PUT \
"https://api.web-parts.com/api/v1/users/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/users/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT api/v1/users/{user}
PATCH api/v1/users/{user}
Remove the specified resource from storage.
Example request:
curl -X DELETE \
"https://api.web-parts.com/api/v1/users/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/users/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
DELETE api/v1/users/{user}
Get a JWT via given credentials.
Example request:
curl -X POST \
"https://api.web-parts.com/api/v1/auth/login" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/auth/login"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/v1/auth/login
Log the user out (Invalidate the token).
Example request:
curl -X POST \
"https://api.web-parts.com/api/v1/auth/logout" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/auth/logout"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/v1/auth/logout
Refresh a token.
Example request:
curl -X POST \
"https://api.web-parts.com/api/v1/auth/refresh" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/auth/refresh"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/v1/auth/refresh
Get the authenticated User.
Example request:
curl -X POST \
"https://api.web-parts.com/api/v1/auth/me" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://api.web-parts.com/api/v1/auth/me"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/v1/auth/me