JavaScript
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({productIds: ['<string>'], mode: 123})
};
fetch('https://app.facetflux.com/api/v1/pim/products/enrichment/estimate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));using RestSharp;
var options = new RestClientOptions("https://app.facetflux.com/api/v1/pim/products/enrichment/estimate");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"productIds\": [\n \"<string>\"\n ],\n \"mode\": 123\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);HttpResponse<String> response = Unirest.post("https://app.facetflux.com/api/v1/pim/products/enrichment/estimate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"productIds\": [\n \"<string>\"\n ],\n \"mode\": 123\n}")
.asString();{
"creditsRequired": 123,
"creditsAvailable": 123,
"canProceed": true,
"productCount": 123,
"creditsPerProduct": 123
}Enrichment
Post apiv1pimproductsenrichmentestimate
POST
/
api
/
v1
/
pim
/
products
/
enrichment
/
estimate
JavaScript
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({productIds: ['<string>'], mode: 123})
};
fetch('https://app.facetflux.com/api/v1/pim/products/enrichment/estimate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));using RestSharp;
var options = new RestClientOptions("https://app.facetflux.com/api/v1/pim/products/enrichment/estimate");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"productIds\": [\n \"<string>\"\n ],\n \"mode\": 123\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);HttpResponse<String> response = Unirest.post("https://app.facetflux.com/api/v1/pim/products/enrichment/estimate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"productIds\": [\n \"<string>\"\n ],\n \"mode\": 123\n}")
.asString();{
"creditsRequired": 123,
"creditsAvailable": 123,
"canProceed": true,
"productCount": 123,
"creditsPerProduct": 123
}Authorizations
Your FacetFlux API key, minted under Settings → API keys.
⌘I