Update marketplace options
Merges the listing's marketplace-specific options.
This is the door for marketplaceOptions after creation: the Listing PATCH returns 400 if it receives that field. Send a map by namespace, with at least one namespace.
The merge is key by key inside the namespace: updating one key preserves the others in that namespace. The response is the whole map. It never calls the marketplace; the Listing becomes dirty when the offer comes to differ from what was published (if the option goes back to the published value, or does not change, it stays clean) and emits listing.updated. The options are part of the offer group: the PATCH can open a local_edit conflict on marketplaceOptions.<key> (sale terms on marketplaceOptions.saleTerms.<id>) and is recorded in the activity with groups: ["offer"].
At Mercado Livre the mercadolivre namespace is closed: a key that does not exist returns 400. The keys are in the body below and the guide says how each one applies (Publish on Mercado Livre).
Only the namespace of the Connection's marketplace is valid. A namespace from another marketplace, a URL, or a credential key returns 400 VALIDATION_ERROR with details.field equal to marketplaceOptions.
For an exception in a single publication, use oneTimeMarketplaceOptions in publish.
api_keyAuthorizationBearer <token>API key (mk_...)
listingId*string^([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)$uuidapplication/json- body
Options to merge, under the connected marketplace namespace. Each key replaces the same key of the stored options; other keys stay. This operation never publishes.
mock?Options of the mock namespace: a free-form object until the marketplace declares its own.
mercadolivre?Options of the Mercado Livre namespace of marketplaceOptions. An unknown key is refused.
magalu?Options of the magalu namespace: a free-form object until the marketplace declares its own.
amazon?Options of the amazon namespace: a free-form object until the marketplace declares its own.
tiktok?Options of the tiktok namespace: a free-form object until the marketplace declares its own.
shopee?Options of the shopee namespace: a free-form object until the marketplace declares its own.
Every option after the merge. The listing becomes dirty; nothing is published.
application/json- response
Namespaced persistent options validated against the connected marketplace capability.
mock?Options of the mock namespace: a free-form object until the marketplace declares its own.
mercadolivre?Options of the Mercado Livre namespace of marketplaceOptions. An unknown key is refused.
magalu?Options of the magalu namespace: a free-form object until the marketplace declares its own.
amazon?Options of the amazon namespace: a free-form object until the marketplace declares its own.
tiktok?Options of the tiktok namespace: a free-form object until the marketplace declares its own.
shopee?Options of the shopee namespace: a free-form object until the marketplace declares its own.
curl -X PATCH "https://example.com/v1/listings/497f6eca-6276-4993-bfeb-53cbbbba6f08/marketplace-options" \ -H "Content-Type: application/json" \ -d '{ "mercadolivre": { "listingTypeId": "gold_special", "saleTerms": { "WARRANTY_TYPE": "2230280" } } }'{ "mercadolivre": { "listingTypeId": "gold_special", "saleTerms": { "WARRANTY_TYPE": "2230280" } }}