API Documentation

In-depth reference documentation for iQmetrix API's.

NAV

OVERVIEW

ENDPOINTS

Sandbox: https://costdemo.iqmetrix.net/v1
Production: https://cost.iqmetrix.net/v1

RESOURCES

SupplierCost

{
    "Id": "6a1cab8e-59bd-4a14-a22d-911dcf421861",
    "SupplierId": 14107,
    "Sku": "SKU-TEST",
    "CompanyId": 14146,
    "Cost": 1.99
}
Name Description
Id (GUID) Identifier
SupplierId (Integer) Identifier for a Supplier
Sku (String) Sku
CompanyId (Integer) Identifier for a Company
Cost (Integer) Cost

REQUESTS

GET Supplier Cost

Request

POST /Suppliers({SupplierId})/SupplierCosts

Example Request

POST /Suppliers(14107)/SupplierCosts
Authorization: Bearer (Access Token)
Accept: application/json
Content-Type: application/json

{
    "Sku": "SKU-TEST",
    "CompanyId": 14146,
    "Cost": 1.99
}
curl -X POST "https://costdemo.iqmetrix.net/v1/Suppliers(14107)/SupplierCosts" -H "Authorization: Bearer (Access Token)" -H "Accept: application/json" -H "Content-Type: application/json" -d '{
    "Sku": "SKU-TEST",
    "CompanyId": 14146,
    "Cost": 1.99
}'
static IRestResponse GettingSupplierCost()
{
    var client = new RestClient("https://costdemo.iqmetrix.net/v1/Suppliers(14107)/SupplierCosts");
    var request = new RestRequest(Method.POST);
     
    request.AddHeader("Authorization", "Bearer (Access Token)"); 
    request.AddHeader("Accept", "application/json"); 
    request.AddHeader("Content-Type", "application/json"); 

     request.AddParameter("application/json", "{\"Sku\":\"SKU-TEST\",\"CompanyId\":14146,\"Cost\":1.99}", ParameterType.RequestBody);

    return client.Execute(request);
}
import org.apache.http.entity.StringEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import java.io.IOException;

public static CloseableHttpResponse GettingSupplierCost() throws IOException {
    CloseableHttpClient httpClient = HttpClients.createDefault();
    HttpPost request = new HttpPost("https://costdemo.iqmetrix.net/v1/Suppliers(14107)/SupplierCosts");
     
    request.addHeader("Authorization", "Bearer (Access Token)"); 
    request.addHeader("Accept", "application/json"); 
    request.addHeader("Content-Type", "application/json"); 
    StringEntity body = new StringEntity("{\"Sku\":\"SKU-TEST\",\"CompanyId\":14146,\"Cost\":1.99}");
    request.setEntity(body);
    
    return httpClient.execute(request);
}
require 'rest-client'

body = "{\"Sku\":\"SKU-TEST\",\"CompanyId\":14146,\"Cost\":1.99}";

response = RestClient.post 'https://costdemo.iqmetrix.net/v1/Suppliers(14107)/SupplierCosts', body, {
     :'Authorization' => 'Bearer (Access Token)',
     :'Accept' => 'application/json',
     :'Content-Type' => 'application/json',
    } 

puts response

URI Parameters

Request Parameters

Response Parameters

Example Response

HTTP 201 Content-Type: application/json
{
    "Id": "6a1cab8e-59bd-4a14-a22d-911dcf421861",
    "SupplierId": 14107,
    "Sku": "SKU-TEST",
    "CompanyId": 14146,
    "Cost": 1.99
}

SupplierCost

GET a Supplier Cost

Request

GET /Suppliers({SupplierId})/SupplierCosts({SupplierCostId})

Example Request

GET /Suppliers(14107)/SupplierCosts(276b9f1e-6cee-4810-ad4b-18f0fe34a744)
Authorization: Bearer (Access Token)
Accept: application/json

curl -X GET "https://costdemo.iqmetrix.net/v1/Suppliers(14107)/SupplierCosts(276b9f1e-6cee-4810-ad4b-18f0fe34a744)" -H "Authorization: Bearer (Access Token)" -H "Accept: application/json"
static IRestResponse GettingASupplierCost()
{
    var client = new RestClient("https://costdemo.iqmetrix.net/v1/Suppliers(14107)/SupplierCosts(276b9f1e-6cee-4810-ad4b-18f0fe34a744)");
    var request = new RestRequest(Method.GET);
     
    request.AddHeader("Authorization", "Bearer (Access Token)"); 
    request.AddHeader("Accept", "application/json"); 

    

    return client.Execute(request);
}

import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import java.io.IOException;

public static CloseableHttpResponse GettingASupplierCost() throws IOException {
    CloseableHttpClient httpClient = HttpClients.createDefault();
    HttpGet request = new HttpGet("https://costdemo.iqmetrix.net/v1/Suppliers(14107)/SupplierCosts(276b9f1e-6cee-4810-ad4b-18f0fe34a744)");
     
    request.addHeader("Authorization", "Bearer (Access Token)"); 
    request.addHeader("Accept", "application/json"); 
    
    return httpClient.execute(request);
}
require 'rest-client'



response = RestClient.get 'https://costdemo.iqmetrix.net/v1/Suppliers(14107)/SupplierCosts(276b9f1e-6cee-4810-ad4b-18f0fe34a744)', {
     :'Authorization' => 'Bearer (Access Token)',
     :'Accept' => 'application/json',
    } 

puts response

URI Parameters

Response Parameters

Example Response

HTTP 200 Content-Type: application/json
{
    "Id": "6a1cab8e-59bd-4a14-a22d-911dcf421861",
    "SupplierId": 14107,
    "Sku": "SKU-TEST",
    "CompanyId": 14146,
    "Cost": 1.99
}

SupplierCost

GET Supplier Cost by SKU

Request

GET /Suppliers({SupplierId})/SupplierCosts?$filter=Sku eq '{Sku}'

Example Request

GET /Suppliers(14107)/SupplierCosts?$filter=Sku eq 'B00LAOKN4S'
Authorization: Bearer (Access Token)
Accept: application/json

curl -X GET "https://costdemo.iqmetrix.net/v1/Suppliers(14107)/SupplierCosts?$filter=Sku eq 'B00LAOKN4S'" -H "Authorization: Bearer (Access Token)" -H "Accept: application/json"
static IRestResponse GettingSupplierCostBySku()
{
    var client = new RestClient("https://costdemo.iqmetrix.net/v1/Suppliers(14107)/SupplierCosts?$filter=Sku eq 'B00LAOKN4S'");
    var request = new RestRequest(Method.GET);
     
    request.AddHeader("Authorization", "Bearer (Access Token)"); 
    request.AddHeader("Accept", "application/json"); 

    

    return client.Execute(request);
}

import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import java.io.IOException;

public static CloseableHttpResponse GettingSupplierCostBySku() throws IOException {
    CloseableHttpClient httpClient = HttpClients.createDefault();
    HttpGet request = new HttpGet("https://costdemo.iqmetrix.net/v1/Suppliers(14107)/SupplierCosts?$filter=Sku eq 'B00LAOKN4S'");
     
    request.addHeader("Authorization", "Bearer (Access Token)"); 
    request.addHeader("Accept", "application/json"); 
    
    return httpClient.execute(request);
}
require 'rest-client'



response = RestClient.get 'https://costdemo.iqmetrix.net/v1/Suppliers(14107)/SupplierCosts?$filter=Sku eq 'B00LAOKN4S'', {
     :'Authorization' => 'Bearer (Access Token)',
     :'Accept' => 'application/json',
    } 

puts response

URI Parameters

Response Parameters

Example Response

HTTP 200 Content-Type: application/json
[
    {
        "Id": "6a1cab8e-59bd-4a14-a22d-911dcf421861",
        "SupplierId": 14107,
        "Sku": "SKU-TEST",
        "CompanyId": 14146,
        "Cost": 1.99
    }
]

Array[SupplierCost]

Was this page helpful?