Ranked private-network suppliers for a location and problem type
curl --request GET \
--url https://api.useopenwrench.com/api/external/v1/buyer/private_network/buyer_supplier_relationships/ranked/{locationId}/{problemTypeId} \
--header 'OW-KEY: <api-key>' \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.useopenwrench.com/api/external/v1/buyer/private_network/buyer_supplier_relationships/ranked/{locationId}/{problemTypeId}"
headers = {
"X-API-KEY": "<api-key>",
"OW-KEY": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>', 'OW-KEY': '<api-key>'}};
fetch('https://api.useopenwrench.com/api/external/v1/buyer/private_network/buyer_supplier_relationships/ranked/{locationId}/{problemTypeId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.useopenwrench.com/api/external/v1/buyer/private_network/buyer_supplier_relationships/ranked/{locationId}/{problemTypeId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"OW-KEY: <api-key>",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.useopenwrench.com/api/external/v1/buyer/private_network/buyer_supplier_relationships/ranked/{locationId}/{problemTypeId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("OW-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.useopenwrench.com/api/external/v1/buyer/private_network/buyer_supplier_relationships/ranked/{locationId}/{problemTypeId}")
.header("X-API-KEY", "<api-key>")
.header("OW-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.useopenwrench.com/api/external/v1/buyer/private_network/buyer_supplier_relationships/ranked/{locationId}/{problemTypeId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
request["OW-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"type": "<string>",
"data": [
{
"buyerCompanyId": 123,
"supplierFacilityId": 123,
"supplierFacilityAlias": "<string>",
"isInternalTech": true,
"isTrusted": true,
"relationshipStatus": "<string>",
"isDeleted": true,
"supplierFacility": {
"name": "<string>",
"displayName": "<string>",
"status": "<string>",
"currencyId": "<string>",
"supplierCompanyId": 123,
"isLandlord": true,
"id": 123,
"isClaimed": true,
"about": "<string>",
"isNationalSupplier": true,
"operatingHours": {
"timeZoneId": "<string>",
"timeZoneName": "<string>",
"Monday": {},
"Tuesday": {},
"Wednesday": {},
"Thursday": {},
"Friday": {},
"Saturday": {},
"Sunday": {}
},
"w9": {
"fileName": "<string>",
"fileId": "<string>"
},
"verifications": [
{}
],
"licenses": [
{}
],
"certifications": [
{}
],
"insurances": [
{}
],
"faqs": [
{}
],
"isWomenOwned": true,
"isMinorityOwned": true,
"isVeteranOwned": true,
"isDisabledOwned": true,
"isLgbtOwned": true,
"isSmallBusinessEnterprise": true,
"categoryIds": [
123
],
"categoryNames": "<string>",
"duns": "<string>",
"taxId": "<string>",
"corporateURL": "<string>",
"storefrontURL": "<string>",
"logoURL": "<string>",
"poMethod": "<string>",
"poChangeMethod": "<string>",
"poEmail": "<string>",
"website": "<string>",
"primaryContactEmail": "<string>",
"primaryPhone": "<string>",
"primaryAddress": {},
"remitToAddress": {},
"latitude": 123,
"longitude": 123,
"radiusOfServiceInMiles": 123,
"serviceAreaSelfPerforming": [
"<string>"
],
"serviceAreaNotSelfPerforming": [
"<string>"
],
"averageRating": 123,
"numRatings": 123
},
"supplierCode": "<string>",
"vendorCode": "<string>",
"supplierTierClassification": "<string>",
"internalBuyerNotes": "<string>",
"internalBuyerAttachments": [
{
"fileName": "<string>",
"fileId": "<string>"
}
],
"pointsOfContactForSupplier": [
"<string>"
],
"pointsOfContactForSupplierContacts": [
{
"email": "<string>",
"nameGiven": "<string>",
"nameFamily": "<string>",
"contactType": "<string>",
"title": "<string>",
"department": "<string>",
"facilityId": 123,
"isSharedContact": true,
"readOnlyAccess": true,
"invitedByEmail": "<string>",
"invitedAt": "2023-11-07T05:31:56Z",
"invitedByName": "<string>",
"epaCertificationType": "<string>",
"epaCertificationNumber": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"workOrdersRoutedTo": [
"<string>"
],
"requestForProposalRoutedTo": [
"<string>"
],
"supplierAccountEmails": [
"<string>"
],
"supplierAccountContacts": [
{
"email": "<string>",
"nameGiven": "<string>",
"nameFamily": "<string>",
"contactType": "<string>",
"title": "<string>",
"department": "<string>",
"facilityId": 123,
"isSharedContact": true,
"readOnlyAccess": true,
"invitedByEmail": "<string>",
"invitedAt": "2023-11-07T05:31:56Z",
"invitedByName": "<string>",
"epaCertificationType": "<string>",
"epaCertificationNumber": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"supplierPhoneNumbers": [
"<string>"
],
"problemTypeIds": [
123
],
"problemTypeHierarchyNames": [
"<string>"
],
"locationIds": [
123
],
"locationNames": [
"<string>"
],
"averageRating": 123,
"numRatings": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}
],
"count": 123,
"status": "ok"
}{
"message": "<string>",
"type": "<string>",
"status": "error",
"traceId": "<string>"
}{
"message": "<string>",
"type": "<string>",
"status": "error",
"traceId": "<string>"
}{
"message": "<string>",
"type": "<string>",
"status": "error",
"traceId": "<string>"
}Supplier Network
Ranked private-network suppliers for a location and problem type
Ranked private-network supplier relationships for a (location, problemType) pair, each hydrated with the buyer’s relationship details (contacts, routing emails). Rank is conveyed by array order — any caller-supplied sort_by is dropped so array order always equals rank. Paginated (default page size 10, max 25).
GET
/
v1
/
buyer
/
private_network
/
buyer_supplier_relationships
/
ranked
/
{locationId}
/
{problemTypeId}
Ranked private-network suppliers for a location and problem type
curl --request GET \
--url https://api.useopenwrench.com/api/external/v1/buyer/private_network/buyer_supplier_relationships/ranked/{locationId}/{problemTypeId} \
--header 'OW-KEY: <api-key>' \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.useopenwrench.com/api/external/v1/buyer/private_network/buyer_supplier_relationships/ranked/{locationId}/{problemTypeId}"
headers = {
"X-API-KEY": "<api-key>",
"OW-KEY": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>', 'OW-KEY': '<api-key>'}};
fetch('https://api.useopenwrench.com/api/external/v1/buyer/private_network/buyer_supplier_relationships/ranked/{locationId}/{problemTypeId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.useopenwrench.com/api/external/v1/buyer/private_network/buyer_supplier_relationships/ranked/{locationId}/{problemTypeId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"OW-KEY: <api-key>",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.useopenwrench.com/api/external/v1/buyer/private_network/buyer_supplier_relationships/ranked/{locationId}/{problemTypeId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("OW-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.useopenwrench.com/api/external/v1/buyer/private_network/buyer_supplier_relationships/ranked/{locationId}/{problemTypeId}")
.header("X-API-KEY", "<api-key>")
.header("OW-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.useopenwrench.com/api/external/v1/buyer/private_network/buyer_supplier_relationships/ranked/{locationId}/{problemTypeId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
request["OW-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"type": "<string>",
"data": [
{
"buyerCompanyId": 123,
"supplierFacilityId": 123,
"supplierFacilityAlias": "<string>",
"isInternalTech": true,
"isTrusted": true,
"relationshipStatus": "<string>",
"isDeleted": true,
"supplierFacility": {
"name": "<string>",
"displayName": "<string>",
"status": "<string>",
"currencyId": "<string>",
"supplierCompanyId": 123,
"isLandlord": true,
"id": 123,
"isClaimed": true,
"about": "<string>",
"isNationalSupplier": true,
"operatingHours": {
"timeZoneId": "<string>",
"timeZoneName": "<string>",
"Monday": {},
"Tuesday": {},
"Wednesday": {},
"Thursday": {},
"Friday": {},
"Saturday": {},
"Sunday": {}
},
"w9": {
"fileName": "<string>",
"fileId": "<string>"
},
"verifications": [
{}
],
"licenses": [
{}
],
"certifications": [
{}
],
"insurances": [
{}
],
"faqs": [
{}
],
"isWomenOwned": true,
"isMinorityOwned": true,
"isVeteranOwned": true,
"isDisabledOwned": true,
"isLgbtOwned": true,
"isSmallBusinessEnterprise": true,
"categoryIds": [
123
],
"categoryNames": "<string>",
"duns": "<string>",
"taxId": "<string>",
"corporateURL": "<string>",
"storefrontURL": "<string>",
"logoURL": "<string>",
"poMethod": "<string>",
"poChangeMethod": "<string>",
"poEmail": "<string>",
"website": "<string>",
"primaryContactEmail": "<string>",
"primaryPhone": "<string>",
"primaryAddress": {},
"remitToAddress": {},
"latitude": 123,
"longitude": 123,
"radiusOfServiceInMiles": 123,
"serviceAreaSelfPerforming": [
"<string>"
],
"serviceAreaNotSelfPerforming": [
"<string>"
],
"averageRating": 123,
"numRatings": 123
},
"supplierCode": "<string>",
"vendorCode": "<string>",
"supplierTierClassification": "<string>",
"internalBuyerNotes": "<string>",
"internalBuyerAttachments": [
{
"fileName": "<string>",
"fileId": "<string>"
}
],
"pointsOfContactForSupplier": [
"<string>"
],
"pointsOfContactForSupplierContacts": [
{
"email": "<string>",
"nameGiven": "<string>",
"nameFamily": "<string>",
"contactType": "<string>",
"title": "<string>",
"department": "<string>",
"facilityId": 123,
"isSharedContact": true,
"readOnlyAccess": true,
"invitedByEmail": "<string>",
"invitedAt": "2023-11-07T05:31:56Z",
"invitedByName": "<string>",
"epaCertificationType": "<string>",
"epaCertificationNumber": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"workOrdersRoutedTo": [
"<string>"
],
"requestForProposalRoutedTo": [
"<string>"
],
"supplierAccountEmails": [
"<string>"
],
"supplierAccountContacts": [
{
"email": "<string>",
"nameGiven": "<string>",
"nameFamily": "<string>",
"contactType": "<string>",
"title": "<string>",
"department": "<string>",
"facilityId": 123,
"isSharedContact": true,
"readOnlyAccess": true,
"invitedByEmail": "<string>",
"invitedAt": "2023-11-07T05:31:56Z",
"invitedByName": "<string>",
"epaCertificationType": "<string>",
"epaCertificationNumber": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"supplierPhoneNumbers": [
"<string>"
],
"problemTypeIds": [
123
],
"problemTypeHierarchyNames": [
"<string>"
],
"locationIds": [
123
],
"locationNames": [
"<string>"
],
"averageRating": 123,
"numRatings": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}
],
"count": 123,
"status": "ok"
}{
"message": "<string>",
"type": "<string>",
"status": "error",
"traceId": "<string>"
}{
"message": "<string>",
"type": "<string>",
"status": "error",
"traceId": "<string>"
}{
"message": "<string>",
"type": "<string>",
"status": "error",
"traceId": "<string>"
}Autorizaciones
OpenWrench shared secret. Required on every request alongside X-API-KEY; issued together with your API key.
Parámetros de consulta
Number of records to skip.
Rango requerido:
x >= 0Page size. Default 10, maximum 25.
Rango requerido:
1 <= x <= 25