Skip to content
API

Upsert Products

PUT
/v1/catalog-search-service/catalogs/products

Upsert products.

Authentication

Topsort’s APIs are authenticated via bearer tokens. Requests must include an authorization header containing your private API key.

Don't have an API key yet? Learn how to generate one.

Authorization
required
string

The header containing a private API key. Format this header as follows:

Authorization: Bearer <YOUR-API-KEY>

Request Body

application/json
object
products
required

The products to create or substitute.

Array<object>
>= 1 items <= 500 items

A product is the minimum unit that can be sold within a marketplace catalog.

object
active

Products that exist in the catalog, whether they have stock or not. Change this to ‘false’ if you want to deactivate this product from the catalog. Soft-deleted products will be removed from active campaigns. Note: Any active products being upserted will be added to existing campaigns created through the Building Blocks service using the Promote My Shop feature.

boolean
default: true
brand

The product brand information.

object
id
required

The brand ID.

string
>= 1 characters
name
required

The brand name.

string
>= 1 characters
categories
required

The category IDs.

Array<string>
description

The product description.

string
>= 1 characters
ean

Thirteen digit EAN-13 code.

string
>= 13 characters <= 13 characters
id
required

The product ID.

string
>= 1 characters
imageURL

The product image URL. Its size should be between 250x250 and 600x600 pixels. This is recommended in case the Topsort UI will be used to manage campaigns.

string format: uri
>= 1 characters
name
required

The product name.

string
>= 1 characters
price

The product price in the configured currency.

number
quality_score

Marketplace’s internal quality score for the product. This in an optional advanced use case, for which we can provide some insights. Examples of metrics include the product’s rating, conversion rate, click through rate, combination of other metrics, etc.

number
<= 1
vendors
required

The vendor IDs.

Array<string>

Responses

Successful Response