Resolve conflict
Pick the side that wins, local or marketplace.
Picks the side that wins in an open conflict. It only changes the local desired: resolving never publishes. No Job is created and nothing goes to the marketplace. To send it, publish afterwards.
curl -X POST "$BACKEND_URL/v1/listings/<listingId>/conflicts/<conflictId>/resolve" \
-H "Authorization: Bearer mk_your_api_key" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"resolution":"manual","value":{"priceInCents":479900}}'The response is the conflict, with status: "resolved".
The four resolutions
resolution | What it does to desired | Afterwards |
|---|---|---|
keep_local | Nothing: your value stays. | The group stays pending_publication. |
accept_external | Each conflicting path takes the value the marketplace has (for title, the external title becomes the desired one; your local pictures stay, because the picture the marketplace holds is the one you sent). | The group goes back to in_sync. Nothing to publish. |
inherit | Removes your override of each path. The field inherits again (in content, from Variant and Product). | It becomes dirty: publish for the marketplace to follow. |
manual | Each path takes what you send in value. | It becomes dirty: publish. |
dirty applies to the Listing (group offer) or to the MarketplaceProduct (group content), and only if the result still differs from what was published: an inherit or manual that gives back the published value leaves it clean.
value is required with manual and not accepted with the others. Its keys are exactly the paths of the conflict (priceInCents, or attributes.<key> in content). The four resolutions also work on option paths (marketplaceOptions.<key>, marketplaceOptions.saleTerms.<id>): accept_external writes the marketplace's value (or removes the option if it has none), inherit removes the option (an option has nothing to inherit from) and manual writes the value.
A line path, lines.<bindingId>.<key>: the line's item holds another value. inherit removes the line's override and the next publication sends the Listing's value to the item again. accept_external and manual give the line an own value (the marketplace's, or your value). Each path writes where it points: lines.<bindingId>.<key> the line's own value, <key> the Listing's. A line inherits a key only when it has no own value, even if its own equals the Listing's. For a line's option (lines.<bindingId>.marketplaceOptions.<key>), only inherit and keep_local work.
In all of them, the outside change now counts as seen: the diff stops treating it as new.
accept_external adopts only the conflict's paths. A local value outside it that was never published (a line's own value, for example) stays pending_publication, with its path in the diff.
You cannot send agreed. It is the resolution the API applies by itself when both sides come to the same value on every path: see List conflicts. Sending agreed to resolve returns 400.
Watch out
accept_externalormanualon alines.<bindingId>.marketplaceOptions.*path returns400withdetails.reason: "line_options_not_own": a line holds no options of its own. Resolve it withinherit.inheriton the price gives400: the price has nothing to inherit from. The result must stay valid for the group.- Resolving
contentchanges the MarketplaceProduct, and applies to all of its offers. - Events:
listing.conflict_resolved. Whendesiredchanges,listing.updated(offer) ormarketplace_product.updated(content) also arrives. - Resolving again gives
409 CONFLICTwithdetails.reason: "conflict_not_open". A conflict of another offer or another account gives404. - Does the resolved value cite an Asset? It is validated. In
manualandaccept_external, anassetIdinmedia(or in a document) must beready, belong to the same seller and have an accepted type. Inmanual,mediais the list of{ assetId, role, position }items, and the type is checked against therole. Otherwise:400withdetails.reasonasset_not_found,asset_seller_mismatch,asset_not_product_mediaorasset_type_mismatch, or409 asset_not_ready. The conflict stays open. Once resolved, the asset counts as in use: deleting it gives409 asset_in_use.
api_keyAuthorizationBearer <token>API key (mk_...)
listingId*stringThe listing the conflict is on.
^([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)$uuidconflictId*stringThe conflict to resolve.
^([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)$uuidIdempotency-Key?stringOptional. 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.
1 <= length <= 255application/json- body
How to resolve a conflict. It changes only the local desired data: it never publishes and never creates a Job.
resolution*stringHow to resolve it. keep_local: your value stays, and the offer waits to be published. accept_external: the marketplace value of each conflicting path becomes your local value. inherit: your override of each conflicting path goes away and the field inherits again. manual: you send the value in value. A path lines.<bindingId>.marketplaceOptions.<key> (or ….saleTerms.<id>) says a line's item holds another option than the listing's; a line holds no options of its own, so only inherit resolves it (the item takes the listing's option at the next publication) and keep_local leaves it; accept_external and manual answer 400. None of them publishes.
"keep_local""accept_external""inherit""manual"value?The new local value of each conflicting path, by path. Required, and not empty, with manual; refused with any other resolution.
The conflict, now resolved.
application/json- response
A group that changed on the marketplace while it had local changes not yet published. Your local value is kept until you resolve it.
id*stringIdentifier of the conflict.
^([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)$uuidlistingId*stringThe listing the conflict is on.
^([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)$uuidgroup*stringThe group that changed on both sides. content belongs to the marketplace product this offer sells; offer belongs to the listing itself.
"content""offer"paths*array<string>Paths inside the group where your value and the marketplace value differ: the top-level keys of the value, attributes.<key> in content and, in offer, lines.<bindingId>.<key>, marketplaceOptions.<key>, marketplaceOptions.saleTerms.<id>, lines.<bindingId>.marketplaceOptions.<key> and lines.<bindingId>.marketplaceOptions.saleTerms.<id>. title is listed only when the two titles differ by the list of words.
desired*unknownSnapshot of your value of the group when the conflict was detected. In offer, lines holds each offer line by bindingId. It does not follow later local edits.
observed*unknownSnapshot of the marketplace value of the group. In offer, lines holds each offer line by bindingId. While the conflict is open it follows new external changes on the same group.
status*stringopen: waiting for a resolution. resolved: closed by POST …/resolve, or closed as agreed when a read of the marketplace, or your own edit, left the two sides equal.
"open""resolved"resolution*|How it was resolved: keep_local, accept_external, inherit or manual, the resolution you sent; or agreed, when the marketplace value and your local value became equal on every path, and the conflict closed with nothing left to resolve: a read of the marketplace (a notification, a reconciliation, a refresh, an import or the offer a job got back) brought your value, or your own edit (PATCH) set the marketplace value. null while it is open.
"keep_local""accept_external""inherit""manual""agreed"nullresolvedValue*|By path: the values written to the local desired, for accept_external and manual; the value both sides agreed on, for agreed (null at a path that neither side has). null for keep_local and inherit, which write none, and while it is open.
source*stringWhat detected it. inbound: a marketplace notification. reconciliation: the periodic reconciliation. refresh: a read you asked for. marketplace_action: the offer as the marketplace returned it after a status action (pause, activate, close). inventory_published: the offer as the marketplace returned it after a quantity publication. published: the content as the marketplace returned it after a publication of the offer or of the marketplace product. imported: your import of the connection's listings. local_edit: your own change to a group the marketplace had already changed.
"inbound""reconciliation""refresh""marketplace_action""inventory_published""published""imported""local_edit"detectedAt*stringWhen the conflict was detected, in ISO-8601 (UTC).
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$date-timeresolvedAt*|When it was resolved, in ISO-8601 (UTC). null while it is open.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$date-timecurl -X POST "https://example.com/v1/listings/0e2ce906-a6ab-4101-9461-4168c8b6b902/conflicts/9d2f4b6a-1c3e-4a58-b7d9-e0f1a2b3c4d5/resolve" \ -H "Content-Type: application/json" \ -d '{ "resolution": "manual", "value": { "priceInCents": 479900 } }'{ "id": "9d2f4b6a-1c3e-4a58-b7d9-e0f1a2b3c4d5", "listingId": "0e2ce906-a6ab-4101-9461-4168c8b6b902", "group": "offer", "paths": [ "priceInCents" ], "desired": { "priceInCents": 489900, "currency": "BRL" }, "observed": { "priceInCents": 459900, "currency": "BRL" }, "status": "open", "resolution": null, "resolvedValue": null, "source": "inbound", "detectedAt": "2026-10-19T12:00:00.000Z", "resolvedAt": null}