Listings

List offer issues

Lists what blocks the offer from being published or sold.

GET
/v1/listings/{listingId}/issues

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.

codeseverityWhat to do
listing_unlinkederrorNo Variant linked (or an import matched more than one). Replace the bindings.
binding_invaliderrorThe binding's Variant, or its Product, is archived, or belongs to another seller. Change the link.
price_missingerrorNo price. Set desired.offer.priceInCents on the listing or on the line.
outbound_disablederrorOutbound is off. Turn it on in the sync policy.
connection_inactiveerrorThe Connection is not active. The seller must reconnect.
capability_unsupportederrorThe marketplace does not publish listings, or the Connection lacks the scope. See the capabilities.
last_publication_failederrorThe last publication failed. It carries the attempt's marketplaceCodes, and externalCode is the first. See the attempts and publish again.
open_conflictwarningA 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):

codeseverityWhat to do
media_format_unsupportederrorA picture is neither JPG nor PNG. Replace it.
media_too_largeerrorA picture is over 10 MB.
too_many_pictureserrorMore pictures than the category takes.
media_video_unsupportedwarningThe video is not sent. The publication goes on without it.
size_chart_media_unsupportedwarningThe size chart image is not sent.
offer_field_not_supportederrorAn offer field the marketplace does not take. The path says which.
field_locked_after_saleerrorThe field cannot change after the first sale.
field_locked_after_creationerrorOn 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_supportederrorThe marketplace has a single stock.
legacy_offer_per_lineerrorAn 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_founderrorThe official store id is not the seller's.
marketplace_product_already_publishederrorA new line for a product the marketplace already holds.
variation_axes_incompleteerrorA variation with no value for an axis, two with the same values, or several with no axis. One issue per line.
quantity_requirederrorCreating an item on Mercado Livre needs a quantity: the Variant's inventoryAuthority is disabled or managed_externally. Use marketapi.
listing_type_requirederrorCreating an item on Mercado Livre needs marketplaceOptions.mercadolivre.listingTypeId.
offer_group_takenerrorOn 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_texterrorOn 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_rejectederrorThe marketplace refused the offer. See marketplaceCodes.

Mercado Livre's details are in Publish on Mercado Livre.

Authorization

api_key
headerAuthorizationBearer <token>

API key (mk_...)

Path Parameters

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

Response Body

The issues of the offer; empty when there is none.

application/json
  1. response

The issues of an offer. A small set calculated on read, so it has no pagination.

listingId*string

The listing analyzed.

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
issues*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": []    }  ]}