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

// Note: use an advanced api key (begins with TSC). Keep this secret!
const apikey = "TSC_xklAIE15WOnl12as11f467bk47asxn4LPazb";

const body = {
  "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(body),
  })

  if (!response.ok) {
    console.error("unexpected status: " + response.status);
  } else {
    console.log("success status: " + 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: