Skip to content

Developer documentation

Develop and scale an auction-based advertising platform in your marketplace.

Two integration paths - Mix and match as necessary.

Try it out

const apikey = "TSC_mykey";
const catalog = {
  products: [
    {
      active: true,
      categories: ["soft-drinks"],
      id: "example-product-coca-cola",
      imageURL:
      "https://intl.cokestore.com/media/catalog/product/1/6/16181_squeeze-ko-can-maria-2.png",
      name: "Coca Cola can",
      price: "9.99",
      vendors: ["coca-cola"],
    },
  ],
};

try {
  const response = await fetch("https://api.topsort.com/public/v1/catalog-search-service/catalogs/products", {
    method: "PUT",
    mode: "cors",
    headers: {
      Authorization: `Bearer ${apikey}`,
      "Content-Type": "application/json; charset=utf-8",
    },
    body: JSON.stringify(catalog),
  })

  if (!response.ok) return { stderr: response.status };
  return { stdout: response.status };
} catch (error) {
  console.error(error);
}
output
 

Client libraries

We provide client libraries to help you get started quickly:

Learn more

Not sure where to begin? Learn about the fundamental components: