curl --request PUT \
--url https://api.topsort.com/public/v1/catalog-search-service/catalogs/vendors \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"vendors": [
{
"id": "<string>",
"name": "<string>",
"imageURL": "https://cdn.example.com/logos/9SiwYqqL8vdG.jpg",
"vendor_role": "admin",
"merchant_center_id": 1456723,
"globalId": "vendor_group_123"
}
]
}
'{}Upsert vendors.
curl --request PUT \
--url https://api.topsort.com/public/v1/catalog-search-service/catalogs/vendors \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"vendors": [
{
"id": "<string>",
"name": "<string>",
"imageURL": "https://cdn.example.com/logos/9SiwYqqL8vdG.jpg",
"vendor_role": "admin",
"merchant_center_id": 1456723,
"globalId": "vendor_group_123"
}
]
}
'{}A valid API key generated in Topsort's UI.
Create or replace one or more vendors in the catalog.
1 - 500 elementsShow child attributes
Unique ID of the vendor. Topsort treats IDs as strings, choose any format as long as it is unique within the catalog.
1Name of the Vendor. Shown in Topsort UI.
1URL of the vendor image. This image will be displayed in the Topsort UI along with the name of the vendor. Image dimensions between 250x250 and 600x600 pixels are recommended for the best performance of the Topsort UI.
1"https://cdn.example.com/logos/9SiwYqqL8vdG.jpg"
Role of the vendor in the Topsort UI. Defaults to admin. Vendors with the admin role have full control to manage and set up their own campaigns. Vendors with the analytics role have read-only access to campaigns and reporting but require the marketplace admin to manage their campaigns.
admin, analytics The Google Merchant Center ID.
1456723
Global identifier for grouping vendors across marketplaces.
255"vendor_group_123"
Successful Response
Was this page helpful?