Subscribe on RapidAPI, copy your key, then send a customer inquiry together with the products it may match.
Replace YOUR_RAPIDAPI_KEY with your own subscriber key. Never place it in public browser code or commit it to source control.
curl --request POST --url https://quotematch.p.rapidapi.com/v1/catalog-audit --header 'content-type: application/json' --header 'x-rapidapi-host: quotematch.p.rapidapi.com' --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY' --data '{"catalog":[{"sku":"USB-C-BLK-1M","name":"USB-C Cable 1m Black","unit_price":8.5,"stock":40}]}'
curl --request POST \
--url https://quotematch.p.rapidapi.com/v1/quote-match \
--header 'content-type: application/json' \
--header 'x-rapidapi-host: quotematch.p.rapidapi.com' \
--header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY' \
--data '{
"inquiry": "Need 12 black USB-C cables",
"catalog": [{
"sku": "USB-C-BLK-1M",
"name": "USB-C Cable 1m Black",
"unit_price": 8.50,
"stock": 40
}],
"settings": { "currency": "USD", "tax_rate": 0.06 }
}'
const response = await fetch(
"https://quotematch.p.rapidapi.com/v1/quote-match",
{
method: "POST",
headers: {
"content-type": "application/json",
"x-rapidapi-host": "quotematch.p.rapidapi.com",
"x-rapidapi-key": process.env.RAPIDAPI_KEY
},
body: JSON.stringify({
inquiry: "Need 12 black USB-C cables",
catalog: [{
sku: "USB-C-BLK-1M",
name: "USB-C Cable 1m Black",
unit_price: 8.5,
stock: 40
}],
settings: { currency: "USD", tax_rate: 0.06 }
})
}
);
if (!response.ok) throw new Error(`QuoteMatch failed: ${response.status}`);
const quote = await response.json();
requires_review, warnings, quantities, prices, stock, tax and discount.