Products

Propagate changes

Carries a Product change to the listings that use it.

POST
/v1/products/{productId}/propagations

Publish listing

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

Changing the Product does not change listings on its own. Propagation is an explicit command: you say which fields to carry and how (mode).

The targets are the marketplace products that have a variation linked to a Variant of this Product. marketplaceProductIds narrows the list; an id that is not a target gives 400 (marketplace_product_not_target) and nothing changes.

The three modes

  • inheriting_only: only touches a field the target inherits. If it has its own value (override), the field goes to skippedFields.
  • selected: same, but only on the targets in marketplaceProductIds (required, not empty).
  • force: removes the override so the field inherits from the Product again. It goes to clearedFields.

What counts as an override

fieldsOverride on the marketplace product and its variations
contenttitle, description, bullets
identitybrand and the variation gtin
attributesattributes of the product and of the variation
mediamedia of the product and of the variation
physical, fiscal, compliancenone: they always inherit

A partial override counts as an override of the whole field: a target that overrides only title keeps all of content in inheriting_only and selected. What counts is what GET …/resolved shows: whatever the marketplace product (or the variation) defines is an override. An empty bullets list is an override (the empty list is what goes out); an empty attributes or media list is not, because neither changes what resolves. condition, categoryId and productType are never touched.

Result per target

  • updated: at least one requested field was propagated. The target becomes dirty if what was propagated differs from what was published (otherwise it keeps its state), the marketplace_product.updated event is sent (behavior: propagated, with clearedFields if something was cleared) and a propagated activity is recorded.
  • skipped: every requested field kept an override and went to skippedFields. Nothing changes.

Publishing

With publish: true, each updated target gets a content publication request, and publicationJobId carries the Job (follow it in Jobs). If the Connection cannot publish (for example, it was revoked: publicationError.code is CONFLICT, with details.reason: connection_inactive, and no job is created), only that target carries a publicationError; the response is still 200 and the propagation happened.

The route never talks to the marketplace during the request. With publish: false (the default) nothing is published: use Publish content afterwards.

curl -X POST "$API/v1/products/$PRODUCT_ID/propagations" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "fields": ["media"], "mode": "force", "publish": true }'

See Set up catalog and stock.

Authorization

api_key
headerAuthorizationBearer <token>

API key (mk_...)

Path Parameters

productId*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

Header Parameters

Idempotency-Key?string

Optional. A unique value (for example a UUID), 1 to 255 characters, that makes the request safe to retry: repeating it with the same body within 24h returns the original response with Idempotency-Replayed: true instead of running the operation again. Scoped to your account. Reusing it with a different body returns 409.

Length1 <= length <= 255

Request Body

application/json
  1. body

Pushes product fields down to the marketplace products that sell its variants.

fields*array<>

Product fields to propagate. physical, fiscal and compliance are never overridden by a marketplace product, so they always inherit.

Items1 <= items
mode*string

inheriting_only skips a field the marketplace product overrides, selected does the same for the listed marketplace products only, and force removes the override so the field inherits again.

Value in"inheriting_only""selected""force"
marketplaceProductIds?array<>

Marketplace products to act on. Required, and not empty, in selected; a filter in the other modes. Each must be a target of the product.

Itemsitems <= 100
publish?boolean

Whether to request a content publication for each updated marketplace product.

Defaultfalse

Response Body

One entry per target. The request is 200 even when a target has a publicationError: the propagation itself happened.

application/json
  1. response

Outcome of a product propagation.

targets*array<>

One entry per marketplace product that was a target.

curl -X POST "https://example.com/v1/products/497f6eca-6276-4993-bfeb-53cbbbba6f08/propagations" \  -H "Content-Type: application/json" \  -d '{    "fields": [      "content",      "media"    ],    "mode": "inheriting_only"  }'
{  "targets": [    {      "marketplaceProductId": "1c1a3b0e-8f0f-4d6b-9a52-0a3c4a7f9d11",      "status": "updated",      "clearedFields": [        "media"      ],      "skippedFields": [        "content"      ],      "publicationJobId": null,      "publicationError": null    }  ]}