Marketplace products

Find catalog candidates

Catalog products that match the content.

GET
/v1/marketplace-products/{marketplaceProductId}/catalog-candidates
  • MockDevelopment only
  • Mercado LivreSupported
  • MagaluPlanned
  • AmazonPlanned
  • TikTok ShopPlanned
  • ShopeePlanned

Searches the marketplace catalog for products that may fit this content. It is a live, paginated read, with no Job.

Each candidate says how it matched in matchedBy, strongest first:

  1. gtin: the GTIN of a variation, the same one publishing sends (the desired.gtin of the MarketplaceProduct variation wins over the Variant one). matchedVariantIds lists which ones.
  2. brand_model: the brand and model of the Product.
  3. text: the title.

A product that matches in more than one way appears once, with the strongest way. The page comes in that order. With no GTIN, no brand and model and no title, the page is empty and the marketplace is not called.

Pick one and link it with Set link. Today only mock offers the search.

Authorization

api_key
headerAuthorizationBearer <token>

API key (mk_...)

Path Parameters

marketplaceProductId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Query Parameters

page?integer

Page number, starting at 1. Defaults to 1. A page beyond pagination.totalPages is not an error: it returns empty data.

Range1 <= value <= 9007199254740991
Default1
pageSize?integer

Items per page, from 1 to 100. Defaults to 20.

Range1 <= value <= 100
Default20

Response Body

One page of candidates, strongest match first (gtin, brand_model, text), with no repeated catalog product. A product with nothing to search by (no GTIN, no brand and model, no title) gives an empty page.

application/json
  1. response

One page of catalog candidates for a marketplace product.

data*array<>

The candidates of this page, ordered by matchedBy: gtin, then brand_model, then text, with no repeated catalog product.

pagination*

Where this page sits in the whole listing: the totals and whether there are pages before and after it.

curl -X GET "https://example.com/v1/marketplace-products/497f6eca-6276-4993-bfeb-53cbbbba6f08/catalog-candidates"
{  "data": [    {      "id": "mock-catalog-phone-1",      "name": "Acme Phone One",      "brand": "Acme",      "categoryId": "mock-cellphones",      "productType": "CELLULAR_PHONE",      "identifiers": [        {          "type": "GTIN",          "value": "7890000000017"        }      ],      "pictures": [        {          "url": "https://example.com/pictures/acme-phone-one.jpg"        }      ],      "marketplaceData": {},      "matchedBy": "gtin",      "matchedVariantIds": [        "5b2d7e9a-1c4f-4e6b-8a3d-2f9c0b7e6d41"      ]    }  ],  "pagination": {    "page": 1,    "pageSize": 20,    "totalItems": 57,    "totalPages": 3,    "hasNext": true,    "hasPrev": false  }}