Marketplace products

Marketplace products

The content a marketplace shares across offers.

A MarketplaceProduct is the content of an item inside a Connection: title, description, attributes, media, category, and variations. It is what the marketplace displays and shares across offers. Each marketplace has its own name for it:

MarketplaceWhat the MarketplaceProduct is
Mercado LivreUser Product (family)
Amazonparent ASIN
Magaluproduct group

Price, inventory, and commercial rules do not live here. They live on the offer, the Listing.

Relation to Listing and binding

MarketplaceProduct ── 1:N ── Listing        (the offer)
        │                       │
 MarketplaceProductVariant ── ListingVariantBinding   (the offer line)
        │
     Variant (local catalog)
  • Every Listing points to one MarketplaceProduct (marketplaceProductId).
  • Each variation of the MarketplaceProduct (MarketplaceProductVariant) links a local Variant to what the marketplace shows.
  • The Listing binding points to a MarketplaceProduct variation.
  • A MarketplaceProduct does not have two variations with the same SKU (trimmed, case-insensitive): the write answers 409 marketplace_product_variant_sku_taken. The SKU may repeat across MarketplaceProducts.
  • Two Listings on the same MarketplaceProduct share the content and differ in the offer: that is a price A/B test.

You do not create a MarketplaceProduct on its own. It is born with the Listing, by clone with marketplaceProduct: "copy", or by import.

Content inheritance

Whatever you leave empty is inherited. From most specific to most general:

  • Content: MarketplaceProduct variation ← MarketplaceProduct ← Variant ← Product.
  • Offer: Listing line (binding) ← Listing.

Use resolved to see the final value and where it came from.

Changing the Product does not change the MarketplaceProduct by itself: Propagate changes carries the field forward (or, with force, removes the override so it inherits again). The media of the MarketplaceProduct and its variations is validated like the Product's: a ready asset of the same seller, with a type that suits its role. Items use the Product format, { assetId, role, position } (up to 100, position unique per role).

publicationState

Tells whether the local content has reached the marketplace: never_published, dirty (changed and not published), pending, clean, or failed. A PATCH, a variations replacement, or an edit of the Product, the Variant or the media (if it was clean) marks it dirty, and only while something differs from what was published: undoing the edit, or writing without changing anything, leaves it clean.

The marketplace may have a catalog product for the item. The MarketplaceProduct keeps the link (catalogReference) in three parts:

PartWhat it isWho writes it
desiredthe catalog product you wantyou (PUT and DELETE); the import, at creation
observedwhat the marketplace confirmedpublication and reads
eligibilitythe last check: eligible, not_eligible or unknownthe check Job
  • Linking is local until you publish. The PUT only writes desired and leaves the content dirty (if the link differs from the published one). The next publication carries the link, and observed then shows what the marketplace confirmed. The DELETE undoes the link on the next publication.
  • Imported content is born with desired equal to the link that was read, so the next publication does not undo what already exists there. After that, no read changes desired.
  • Finding the product: candidates by GTIN, by brand and model and by text.
  • Checking before you publish: the check is a Job. Changing the catalogProductId clears eligibility.

Today only mock offers these operations. Mercado Livre comes later. Reading the link works on any Connection.

Which routes call the marketplace

The routes in this group read and write only the local record, with three exceptions: content publication, catalog candidates (a live read) and the eligibility check (a Job). Content reaches the marketplace when you call the publish route (content only, no offer) or publish the Listing.

Read listing

  • MockDevelopment only
  • Mercado LivreSupported
  • MagaluPlanned
  • AmazonPlanned
  • TikTok ShopPlanned
  • ShopeePlanned