List offer issues
Lists what blocks the offer from being published or sold.
Lists what blocks the offer from being published or sold, and what the marketplace says about it. Use it before publishing and when a listing stalls. The route only reads: it does not call the marketplace and has no pagination, because the set is small.
curl "$BACKEND_URL/v1/listings/<listingId>/issues" \
-H "Authorization: Bearer mk_your_api_key"The order is fixed: local ones, then open conflicts, then the marketplace ones, then the validation ones (not sorted by severity). With no problem at all, issues is empty. Decide by code: the message is free text and can change.
path says where the problem is, on the Listing as GET /v1/listings/{listingId} returns it. bindings… are the offer lines and marketplaceProduct… is the MarketplaceProduct the offer sells. null means the offer as a whole: that is the case of capability_unsupported. open_conflict points at the group: desired.offer (offer) or marketplaceProduct.desired.content (content). The validation title_too_long sits at marketplaceProduct.desired.content.title.
Local issues
With source: local. They come from MarketAPI's own data.
code | severity | What to do |
|---|---|---|
listing_unlinked | error | No Variant linked (or an import matched more than one). Replace the bindings. |
binding_invalid | error | The binding's Variant, or its Product, is archived, or belongs to another seller. Change the link. |
price_missing | error | No price. Set desired.offer.priceInCents on the listing or on the line. |
outbound_disabled | error | Outbound is off. Turn it on in the sync policy. |
connection_inactive | error | The Connection is not active. The seller must reconnect. |
capability_unsupported | error | The marketplace does not publish listings, or the Connection lacks the scope. See the capabilities. |
last_publication_failed | error | The last publication failed. It carries the attempt's marketplaceCodes, and externalCode is the first. See the attempts and publish again. |
open_conflict | warning | A conflict is waiting. Resolve it. |
Marketplace issues
With source: marketplace. There is one item for each reason in statusReasons of the offer and of each line. The code is the normalized reason (out_of_stock, policy_violation…) and externalCode is the channel's own. severity is error when the marketplace says it cannot be bought (buyable: false) and warning otherwise.
Validation problems
With source: validation. They come from the last validation of the offer (code, path and externalCode say what to fix). It describes the offer as it was when the Job ran: after editing, validate again. The code is what the marketplace found, such as title_too_long (a title longer than it accepts). An offer never validated has none.
Every issue carries marketplaceCodes: the marketplace's refusal codes (at most 10, [] when none), never its message.
Codes that Mercado Livre's validation returns, besides price_missing, title_too_long and missing_information (a required attribute is missing):
code | severity | What to do |
|---|---|---|
media_format_unsupported | error | A picture is neither JPG nor PNG. Replace it. |
media_too_large | error | A picture is over 10 MB. |
too_many_pictures | error | More pictures than the category takes. |
media_video_unsupported | warning | The video is not sent. The publication goes on without it. |
size_chart_media_unsupported | warning | The size chart image is not sent. |
offer_field_not_supported | error | An offer field the marketplace does not take. The path says which. |
field_locked_after_sale | error | The field cannot change after the first sale. |
field_locked_after_creation | error | On Mercado Livre (UP), the title of an item that already exists does not change. Send the title on record; the message says which (The title on record is "X"). |
multiwarehouse_not_supported | error | The marketplace has a single stock. |
legacy_offer_per_line | error | An offer field (price, warranty…) that differs between the lines of a legacy item, which takes one offer. One issue per line and field, at bindings.<bindingId>.desired.offer.<field>. |
official_store_not_found | error | The official store id is not the seller's. |
marketplace_product_already_published | error | A new line for a product the marketplace already holds. |
variation_axes_incomplete | error | A variation with no value for an axis, two with the same values, or several with no axis. One issue per line. |
quantity_required | error | Creating an item on Mercado Livre needs a quantity: the Variant's inventoryAuthority is disabled or managed_externally. Use marketapi. |
listing_type_required | error | Creating an item on Mercado Livre needs marketplaceOptions.mercadolivre.listingTypeId. |
offer_group_taken | error | On Mercado Livre (UP), another offer of the same MarketplaceProduct already holds the group (listing type, with or without catalog). The message names the Listing. Choose another listingTypeId or use that Listing. |
description_not_plain_text | error | On Mercado Livre, the description (marketplaceProduct.desired.content.description) has an HTML tag, such as <p>, </p>, <br/> or <b class="x">. ML accepts plain text only: remove the tags (a line break is a line break, not <br>). A lone <, as in "a < b", is not a tag. |
marketplace_rejected | error | The marketplace refused the offer. See marketplaceCodes. |
Mercado Livre's details are in Publish on Mercado Livre.
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)$uuidThe issues of the offer; empty when there is none.
application/json- response
The issues of an offer. A small set calculated on read, so it has no pagination.
listingId*stringThe listing analyzed.
^([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)$uuidissues*array<>Every issue found: local causes first, then open conflicts, then what the marketplace says about the offer and its lines, then the last validation. Empty when there is none.
curl -X GET "https://example.com/v1/listings/497f6eca-6276-4993-bfeb-53cbbbba6f08/issues"{ "listingId": "0e2ce906-a6ab-4101-9461-4168c8b6b902", "issues": [ { "code": "price_missing", "severity": "error", "source": "local", "path": "desired.offer.priceInCents", "message": "The offer has no price.", "externalCode": null, "marketplaceCodes": [] } ]}