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:
| Marketplace | What the MarketplaceProduct is |
|---|---|
| Mercado Livre | User Product (family) |
| Amazon | parent ASIN |
| Magalu | product 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
409marketplace_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.
Catalog link
The marketplace may have a catalog product for the item. The MarketplaceProduct keeps the link (catalogReference) in three parts:
| Part | What it is | Who writes it |
|---|---|---|
desired | the catalog product you want | you (PUT and DELETE); the import, at creation |
observed | what the marketplace confirmed | publication and reads |
eligibility | the last check: eligible, not_eligible or unknown | the check Job |
- Linking is local until you publish. The
PUTonly writesdesiredand leaves the contentdirty(if the link differs from the published one). The next publication carries the link, andobservedthen shows what the marketplace confirmed. TheDELETEundoes the link on the next publication. - Imported content is born with
desiredequal to the link that was read, so the next publication does not undo what already exists there. After that, no read changesdesired. - Finding the product: candidates by GTIN, by brand and model and by text.
- Checking before you publish: the check is a Job. Changing the
catalogProductIdclearseligibility.
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